Nested kvm-svm does not work since f5cc5a5c
Host environment
- Operating system: Debian 10
- OS/kernel version: Linux 5.8.0-3-amd64 #1 SMP Debian 5.8.14-1 (2020-10-10) x86_64 GNU/Linux
- Architecture: x86_64
- QEMU flavor: qemu-system-x86_64
- QEMU version: 6.0.50
- QEMU command line:
./qemu-system-x86_64 -accel kvm -cpu host -m 1G ~/Downloads/debian-live-10.9.0-i386-xfce.iso
Emulated/Virtualized environment
- Operating system: Debian Linux
- OS/kernel version: 4.19 (Same problem on a 5.9 Kernel I built myself)
- Architecture: x86_64
Description of problem
Nested SVM virtualization seems to not work. I bisected this to f5cc5a5c.
Steps to reproduce
- Boot up a Linux guest such as the Debian Live CD with -accel kvm -cpu host
-
dmesg | grep kvm; ls /dev/kvm
; # Shows that KVM is disabled within the guest
Additional information
Details about my AMD host:
model name : AMD Ryzen 5 2600 Six-Core Processor
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca