From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqeRa-0001LP-Sn for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqeRW-0003Dl-RK for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:51:58 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:24000 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqeRW-0003Da-CG for qemu-devel@nongnu.org; Mon, 26 Oct 2015 05:51:54 -0400 From: Andrey Smetanin Date: Mon, 26 Oct 2015 12:50:58 +0300 Message-Id: <1445853060-24201-6-git-send-email-asmetanin@virtuozzo.com> In-Reply-To: <1445853060-24201-1-git-send-email-asmetanin@virtuozzo.com> References: <1445853060-24201-1-git-send-email-asmetanin@virtuozzo.com> Subject: [Qemu-devel] [PATCH 5/7] linux-headers/kvm: KVM_EXIT_HYPERV type and struct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Gleb Natapov , virtualization@lists.linux-foundation.org, Roman Kagan , Paolo Bonzini , "Denis V. Lunev" , Vitaly Kuznetsov , "K. Y. Srinivasan" Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Vitaly Kuznetsov CC: "K. Y. Srinivasan" CC: Gleb Natapov CC: Paolo Bonzini CC: Roman Kagan CC: Denis V. Lunev CC: kvm@vger.kernel.org CC: virtualization@lists.linux-foundation.org --- linux-headers/linux/kvm.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 0bff588..4e20262 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -154,6 +154,20 @@ struct kvm_s390_skeys { __u32 flags; __u32 reserved[9]; }; + +struct kvm_hyperv_exit { +#define KVM_EXIT_HYPERV_SYNIC 1 + __u32 type; + union { + struct { + __u32 msr; + __u64 control; + __u64 evt_page; + __u64 msg_page; + } synic; + } u; +}; + #define KVM_S390_GET_SKEYS_NONE 1 #define KVM_S390_SKEYS_MAX 1048576 @@ -184,6 +198,7 @@ struct kvm_s390_skeys { #define KVM_EXIT_SYSTEM_EVENT 24 #define KVM_EXIT_S390_STSI 25 #define KVM_EXIT_IOAPIC_EOI 26 +#define KVM_EXIT_HYPERV 27 /* For KVM_EXIT_INTERNAL_ERROR */ /* Emulate instruction failed. */ @@ -338,6 +353,8 @@ struct kvm_run { struct { __u8 vector; } eoi; + /* KVM_EXIT_HYPERV */ + struct kvm_hyperv_exit hyperv; /* Fix the size of the union. */ char padding[256]; }; -- 2.4.3