The patch implements userspace exit 'KVM_EXIT_HYPERV' for Hyper-V VMBus hypercalls(postmsg, signalevent) to handle these hypercalls by QEMU. Changes v3: * use vcpu->arch.complete_userspace_io to setup hypercall result * rebase for 'next-20160211' Changes v2: * use KVM_EXIT_HYPERV for hypercalls Signed-off-by: Andrey Smetanin <asmetanin@xxxxxxxxxxxxx> Reviewed-by: Roman Kagan <rkagan@xxxxxxxxxxxxx> CC: Gleb Natapov <gleb@xxxxxxxxxx> CC: Paolo Bonzini <pbonzini@xxxxxxxxxx> CC: Joerg Roedel <joro@xxxxxxxxxx> CC: "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx> CC: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> CC: Roman Kagan <rkagan@xxxxxxxxxxxxx> CC: Denis V. Lunev <den@xxxxxxxxxx> CC: qemu-devel@xxxxxxxxxx Andrey Smetanin (5): kvm/x86: Rename Hyper-V long spin wait hypercall drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header kvm/x86: Pass return code of kvm_emulate_hypercall kvm/x86: Reject Hyper-V hypercall continuation kvm/x86: Hyper-V VMBus hypercall userspace exit Documentation/virtual/kvm/api.txt | 6 +++++ arch/x86/include/uapi/asm/hyperv.h | 4 ++- arch/x86/kvm/hyperv.c | 50 +++++++++++++++++++++++++++++++------- arch/x86/kvm/svm.c | 3 +-- arch/x86/kvm/vmx.c | 3 +-- drivers/hv/connection.c | 2 +- drivers/hv/hv.c | 2 +- drivers/hv/hyperv_vmbus.h | 6 ----- include/uapi/linux/kvm.h | 6 +++++ 9 files changed, 60 insertions(+), 22 deletions(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html