Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

QEMU TCG doesn't support VMX #2

Closed
ghost opened this issue May 22, 2019 · 3 comments
Closed

QEMU TCG doesn't support VMX #2

ghost opened this issue May 22, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented May 22, 2019

ZeldaOS is used QEMU TCG as accelerator but TCG doesn't support VMX. That's why I've changed accelerator as enable-kvm.
Issue for TCG:
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]

Command line:
qemu-system-x86_64 -enable-kvm -cpu host,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+vmx -drive file=Zelda64.img,if=ide -smp 4 -m 1024 -serial stdio -monitor null -nographic

@chillancezen
Copy link
Owner

please find a linux host with vt-x enabled in bios. cat /proc/cpuinfo|grep vmx, and enable nested virtualization:

#/etc/modprobe.d/kvm-nested.conf
options kvm-intel nested=1
options kvm-intel enable_shadow_vmcs=1
options kvm-intel enable_apicv=1
options kvm-intel ept=1
// and then reload these two modules: kvm and kvm_intel.

if you don not want to run any vmx related features, do not specify any options related to kvm, my kernel will avoid running them when it does not detect vmx feature. please refer to the command in top level makefile.

@chillancezen
Copy link
Owner

note the hypervisor is incomplete, nothing to play with at all.

@ghost
Copy link
Author

ghost commented May 23, 2019

This problem is related to accelerator, I don't need any of VMX features (shadow vmcs, apic emulation). I've solved this problem with KVM variable. Thank you!

@ghost ghost closed this as completed May 23, 2019
@ghost ghost mentioned this issue Aug 8, 2019
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant