All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers
@ 2016-01-21 14:04 ` Andrey Smetanin
  0 siblings, 0 replies; 12+ messages in thread
From: Andrey Smetanin @ 2016-01-21 14:04 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
	Andreas Färber, Marcelo Tosatti, Roman Kagan,
	Denis V. Lunev, kvm

Add Hyper-V VMBus hypercalls blank handlers which
just returns error code - HV_STATUS_INVALID_HYPERCALL_CODE.

Changes v2:
* use KVM_EXIT_HYPERV exit type

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Richard Henderson <rth@twiddle.net>
CC: Eduardo Habkost <ehabkost@redhat.com>
CC: "Andreas Färber" <afaerber@suse.de>
CC: Marcelo Tosatti <mtosatti@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: kvm@vger.kernel.org

---
 target-i386/hyperv.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/target-i386/hyperv.c b/target-i386/hyperv.c
index e79b173..d3f3059 100644
--- a/target-i386/hyperv.c
+++ b/target-i386/hyperv.c
@@ -43,6 +43,18 @@ int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exit *exit)
             return -1;
         }
         return 0;
+    case KVM_EXIT_HYPERV_HCALL: {
+        uint16_t code;
+
+        code  = exit->u.hcall.input & 0xffff;
+        switch (code) {
+        case HV_X64_HCALL_POST_MESSAGE:
+        case HV_X64_HCALL_SIGNAL_EVENT:
+        default:
+            exit->u.hcall.result = HV_STATUS_INVALID_HYPERCALL_CODE;
+            return 0;
+        }
+    }
     default:
         return -1;
     }
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-02-24 10:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-21 14:04 [PATCH v2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers Andrey Smetanin
2016-01-21 14:04 ` [Qemu-devel] " Andrey Smetanin
2016-01-23 15:20 ` Eduardo Habkost
2016-01-23 15:20   ` Eduardo Habkost
2016-01-23 17:20   ` Paolo Bonzini
2016-01-23 17:20     ` Paolo Bonzini
2016-02-23 14:39 ` Paolo Bonzini
2016-02-23 14:39   ` [Qemu-devel] " Paolo Bonzini
2016-02-24 10:22   ` [PATCH v3 1/2] headers: KVM Hyper-V VMBus hypercalls defines and exit Andrey Smetanin
2016-02-24 10:22     ` [Qemu-devel] " Andrey Smetanin
2016-02-24 10:22     ` [PATCH v3 2/2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers Andrey Smetanin
2016-02-24 10:22       ` [Qemu-devel] " Andrey Smetanin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.