Issue
can KVM be enabled (-enable-kvm) when running qemu without -cpu host ? e.g.
qemu-system-x86_64 \
-boot c -m 16G -vnc :0 -enable-kvm \
-cpu qemu64,avx,pdpe1gb,check,enforce \
...
Does QEMU use the KVM when running virtual QEMU64 CPU ? I always thought that this option can be enabled ONLY when using qemu with -cpu host...
Solution
Yes, running a guest with KVM acceleration (-enable-kvm
option in qemu command line) can be done without -cpu host
.
In the case of -cpu qemu64,avx,pdpe1gb,check,enforce
qemu will set the union of the virtual qemu64
cpu and avx,pdpe1gb,check,enforce
features as cpu features for this guest. This is done by calling KVM's KVM_SET_CPUID2
ioctl.
When the guest will ask for cpu features, it will receive these from KVM.
Answered By - nevilad
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.