summaryrefslogtreecommitdiffstats
path: root/target/i386
diff options
context:
space:
mode:
authorRoman Kagan2018-09-21 10:22:16 +0200
committerPaolo Bonzini2018-10-19 13:44:14 +0200
commit76036a5fc7ca632f805748aeef416355b1d212a3 (patch)
tree88ecf75fe76e18d8bdd4f13f206236b97fc36b63 /target/i386
parenthyperv: add support for KVM_HYPERV_EVENTFD (diff)
downloadqemu-76036a5fc7ca632f805748aeef416355b1d212a3.tar.gz
qemu-76036a5fc7ca632f805748aeef416355b1d212a3.tar.xz
qemu-76036a5fc7ca632f805748aeef416355b1d212a3.zip
hyperv: process POST_MESSAGE hypercall
Add handling of POST_MESSAGE hypercall. For that, add an interface to regsiter a handler for the messages arrived from the guest on a particular connection id (IOW set up a message connection in Hyper-V speak). Signed-off-by: Roman Kagan <rkagan@virtuozzo.com> Message-Id: <20180921082217.29481-10-rkagan@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r--target/i386/hyperv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/hyperv.c b/target/i386/hyperv.c
index 96b3b5ad7f..b264a28620 100644
--- a/target/i386/hyperv.c
+++ b/target/i386/hyperv.c
@@ -84,6 +84,9 @@ int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exit *exit)
uint64_t param = exit->u.hcall.params[0];
switch (code) {
+ case HV_POST_MESSAGE:
+ exit->u.hcall.result = hyperv_hcall_post_message(param, fast);
+ break;
case HV_SIGNAL_EVENT:
exit->u.hcall.result = hyperv_hcall_signal_event(param, fast);
break;