qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] i386/kvm: fix build with CONFIG_HYPERV=n
@ 2019-06-24 12:49 Vitaly Kuznetsov
  0 siblings, 0 replies; only message in thread
From: Vitaly Kuznetsov @ 2019-06-24 12:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Roman Kagan, Alex Bennée, Eduardo Habkost,
	Richard Henderson

When switching from boolean properties to bits to represent Hyper-V
enlightenments we forgot to update hyperv-stub.c for CONFIG_HYPERV=n
builds.

Reported-by: Alex Bennée <alex.bennee@linaro.org>
Fixes: 2d384d7c8361 ("i386/kvm: convert hyperv enlightenments properties from bools to bits")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
 target/i386/hyperv-stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/i386/hyperv-stub.c b/target/i386/hyperv-stub.c
index fe548cbae2..0028527e79 100644
--- a/target/i386/hyperv-stub.c
+++ b/target/i386/hyperv-stub.c
@@ -15,7 +15,7 @@ int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exit *exit)
 {
     switch (exit->type) {
     case KVM_EXIT_HYPERV_SYNIC:
-        if (!cpu->hyperv_synic) {
+        if (!hyperv_feat_enabled(cpu, HYPERV_FEAT_SYNIC)) {
             return -1;
         }
 
-- 
2.20.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-24 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24 12:49 [Qemu-devel] [PATCH] i386/kvm: fix build with CONFIG_HYPERV=n Vitaly Kuznetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).