Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
repro for kvm gvisor
rm .config
make tinyconfig
make kvm_guest.config
make kvmconfig
./scripts/config \
-e EARLY_PRINTK \
-e 64BIT \
-e BPF -d EMBEDDED -d EXPERT \
-e INOTIFY_USER
./scripts/config \
-e VIRTIO -e VIRTIO_PCI -e VIRTIO_MMIO \
-e NET -e NET_CORE -e NETDEVICES -e NETWORK_FILESYSTEMS \
-e INET -e NET_9P -e NET_9P_VIRTIO -e 9P_FS \
-e VIRTIO_NET -e VIRTIO_CONSOLE \
-e DEVTMPFS -e SCSI_VIRTIO -e BINFMT_SCRIPT -e TMPFS \
-e UNIX -e TTY -e VT -e UNIX98_PTYS -e WATCHDOG -e WATCHDOG_CORE \
-e I6300ESB_WDT \
-e BLOCK -e SCSI_LOWLEVEL -e SCSI -e SCSI_VIRTIO \
-e BLK_DEV_SD -e BLK_DEV_INITRD \
-e VIRTIO_BALLOON \
-d CMDLINE_OVERRIDE \
-d UEVENT_HELPER \
-d EMBEDDED -d EXPERT \
-d MODULE_SIG_FORCE \
-e SMP
./scripts/config \
-e CGROUPS -e BLK_CGROUP -e CGROUP_SCHED \
-e CGROUP_PIDS -e CGROUP_RDMA -e CGROUP_FREEZER \
-e CGROUP_DEVICE -e CGROUP_CPUACCT -e CGROUP_PERF \
-e CGROUP_NET_PRIO -e CGROUP_NET_CLASSID \
-e BLK_CGROUP_IOLATENCY -e BLK_CGROUP_IOCOST \
-e MEMCG -e CPUSETS -e USER_NS \
-e SYSVIPC -e SECCOMP \
-e HUGETLBFS -e CGROUP_HUGETLB \
-e MAGIC_SYSRQ \
-e KVM_INTEL -e KVM_AMD -e KVM -e IA32_FEAT_CTL -e X86_LOCAL_APIC -e HIGH_RES_TIMERS
make olddefconfig
make bzImage -j16
#!/bin/sh
umount /sys/fs/cgroup/unified
for t in blkio 'cpu,cpuacct' cpuset devices freezer hugetlb memory 'net_cls,net_prio' perf_event pids rdma; do
mkdir /sys/fs/cgroup/$t
mount -t cgroup -o $t cgroup /sys/fs/cgroup/$t
done
ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpu
ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpuacct
ln -s /sys/fs/cgroup/net_cls,net_prio /sys/fs/cgroup/net_cls
ln -s /sys/fs/cgroup/net_cls,net_prio /sys/fs/cgroup/net_prio
echo '**** runsc --platform=kvm do echo hello world'
while [ 1 ]; do
/home/marek/runsc --platform=kvm do echo hello world
S=$?
echo "***** $S"
if [ "$S" = "128" ]; then
break
fi
done
echo b > /proc/sysrq-trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment