[PATCH kvm-unit-tests] x86/hyperv: pass hv_vpindex cpu flag along with hv_synic

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

 



Since Qemu commit 9b4cf107b09d ("hyperv: only add SynIC in compatible
 configurations") hv_vpindex flag is mandatory if hv_synic is used:

$ qemu-system-x86_64 -nodefaults -cpu kvm64,hv_time,hv_synic,hv_stimer  \
     -device hyperv-testdev -device pc-testdev -device isa-debug-exit,  \
     iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev \
     -machine accel=kvm -kernel x86/hyperv_stimer.flat

Results in:

Hyper-V SynIC (requested by 'hv-synic' cpu flag) requires Hyper-V VP_INDEX
 ('hv-vpindex')
qemu-system-x86_64: kvm_init_vcpu failed: Function not implemented

Fix the configuration.

Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
---
 x86/unittests.cfg | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 3b21a85..c744a6d 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -620,19 +620,19 @@ arch = x86_64
 [hyperv_synic]
 file = hyperv_synic.flat
 smp = 2
-extra_params = -cpu kvm64,hv_synic -device hyperv-testdev
+extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
 groups = hyperv
 
 [hyperv_connections]
 file = hyperv_connections.flat
 smp = 2
-extra_params = -cpu kvm64,hv_synic -device hyperv-testdev
+extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
 groups = hyperv
 
 [hyperv_stimer]
 file = hyperv_stimer.flat
 smp = 2
-extra_params = -cpu kvm64,hv_time,hv_synic,hv_stimer -device hyperv-testdev
+extra_params = -cpu kvm64,hv_vpindex,hv_time,hv_synic,hv_stimer -device hyperv-testdev
 groups = hyperv
 
 [hyperv_clock]
-- 
2.17.2




[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