[Bug??] qemu: can't use pdpe1gb even though cpu supports it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
to be honest I'm not sure if this is a bug and if yes, whether this is kernel or userspace related, please help: I'm running Vmware ESXi 6.7 on my server and installed a Linux VM (http://eve-ng.com/index.php/community) on it and I try to run another vm inside this. I know this is nested virtualization and not the best idea.

Everything is fine, except, that I need for the specific VM the pdpe1gb feature, so I start it with:
root@eve-ng:~# cat start-vfp.sh
sudo /opt/qemu-2.12.0/bin/qemu-system-x86_64 -drive if=ide,file=./hda.qcow2 \
--enable-kvm -cpu host,+pdpe1gb,check,enforce \
-m 5120 -numa node,memdev=mem \
-smp 3,sockets=1,cores=3,threads=1 \
-object memory-backend-file,id=mem,size=5120M,mem-path=/hugepages,share=on \
-nographic

root@eve-ng:~# bash start-vfp.sh
WARNING: Image format was not specified for './hda.qcow2' and probing guessed raw.          Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.pdpe1gb [bit 26]
qemu-system-x86_64: Host doesn't support requested features

so qemu is reporting that pdpe1gb is not supported by my VM, but feature is in cpuinfo:

root@eve-ng:~# cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 63
model name    : Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
stepping    : 2
microcode    : 0x3c
cpu MHz        : 2398.122
cache size    : 15360 KB
physical id    : 0
siblings    : 6
core id        : 0
cpu cores    : 6
apicid        : 0
initial apicid    : 0
fpu        : yes
fpu_exception    : yes
cpuid level    : 15
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid xsaveopt arat
bugs        :
bogomips    : 4798.60
clflush size    : 64
cache_alignment    : 64
address sizes    : 43 bits physical, 48 bits virtual
power management:
<<CUT CPU 1-11>
root@eve-ng:~# hugeadm --pool-list
      Size  Minimum  Current  Maximum  Default
1073741824       32       32       32        *
root@eve-ng:~# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.9.40-eve-ng-ukms-2+ root=/dev/mapper/eve--ng--vg-root ro net.ifnames=0 default_hugepagesz=1G hugepagesz=1G hugepages=32 intel_iommu=on quiet splash vga=788 From my understanding qemu version 2.12.0 should passthrough the hugepages, but it doesn't work. Is this a qemu/kvm bug or is it because of nested virtualization inside vmware? What output do you need?
kind regards
Torben Viets



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux