From: "Radim Krčmář" <rkrcmar@redhat.com>
To: Li Zhijian <zhijianx.li@intel.com>
Cc: kvm@vger.kernel.org, "Li, Philip" <philip.li@intel.com>
Subject: Re: [kvm-unit-tests] warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
Date: Tue, 15 Aug 2017 17:34:56 +0200 [thread overview]
Message-ID: <20170815153456.GB6408@flask> (raw)
In-Reply-To: <85823374-fbe4-50cd-060d-e0ebca4bd026@intel.com>
2017-08-15 16:39+0800, Li Zhijian:
> Hi guys
>
> i encountered a problem when i test vmx related cases
>
> the test log like below
> [adam@skylake kvm-unit-tests]$ ./run_tests.sh
> SKIP vmx_null (0 tests)
> [adam@skylake kvm-unit-tests]$ cat logs/
> SUMMARY vmx_null.log
> [adam@skylake kvm-unit-tests]$ cat logs/vmx_null.log
> warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
> timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel x86/vmx.flat -smp 1 -cpu host,+vmx -append null # -initrd /tmp/tmp.wTXf483ild
> enabling apic
> paging enabled
> cr0 = 80010011
> cr3 = 469000
> cr4 = 20
> WARNING: vmx not supported, add '-cpu host'
> SUMMARY: 0 tests
>
> why the test output this warning, my skylake i5-6500 machine can support vmx feature, and how i can fix it.
The warning means that KVM doesn't allow the guest to see the vmx
feature. You are most likely without nested vmx, because it is disabled
by default:
% cat /sys/module/kvm_intel/parameters/nested
N
In order to turn it on, reload the "kvm_intel" module with "nested=Y"
parameter.
modprobe -r kvm_intel; modprobe kvm_intel nested=y
If you want to have this automatically, add
options kvm_intel nested=1
to /etc/modprobe.d/kvm.conf.
> i tried the same test at my another haswell(i7-4790) machine(has the same kernel) doesn't occur this issue.
Not sure why it works on the other machine -- is it a different distro?
Thanks.
next prev parent reply other threads:[~2017-08-15 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-15 8:39 [kvm-unit-tests] warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] Li Zhijian
2017-08-15 15:34 ` Radim Krčmář [this message]
2017-08-21 5:38 ` Li Zhijian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170815153456.GB6408@flask \
--to=rkrcmar@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=philip.li@intel.com \
--cc=zhijianx.li@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox