From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers Date: Tue, 23 Feb 2016 15:39:02 +0100 Message-ID: <56CC6F06.8030106@redhat.com> References: <1453385060-14945-1-git-send-email-asmetanin@virtuozzo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Eduardo Habkost , kvm@vger.kernel.org, Marcelo Tosatti , Roman Kagan , "Denis V. Lunev" , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Richard Henderson To: Andrey Smetanin , qemu-devel@nongnu.org Return-path: In-Reply-To: <1453385060-14945-1-git-send-email-asmetanin@virtuozzo.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On 21/01/2016 15:04, Andrey Smetanin wrote: > Add Hyper-V VMBus hypercalls blank handlers which > just returns error code - HV_STATUS_INVALID_HYPERCALL_CODE. >=20 > Changes v2: > * use KVM_EXIT_HYPERV exit type >=20 > Signed-off-by: Andrey Smetanin > Reviewed-by: Roman Kagan > CC: Paolo Bonzini > CC: Richard Henderson > CC: Eduardo Habkost > CC: "Andreas F=C3=A4rber" > CC: Marcelo Tosatti > CC: Roman Kagan > CC: Denis V. Lunev > CC: kvm@vger.kernel.org >=20 > --- > target-i386/hyperv.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > 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_hyper= v_exit *exit) > return -1; > } > return 0; > + case KVM_EXIT_HYPERV_HCALL: { > + uint16_t code; > + > + code =3D exit->u.hcall.input & 0xffff; > + switch (code) { > + case HV_X64_HCALL_POST_MESSAGE: > + case HV_X64_HCALL_SIGNAL_EVENT: > + default: > + exit->u.hcall.result =3D HV_STATUS_INVALID_HYPERCALL_CODE; > + return 0; > + } > + } > default: > return -1; > } >=20 This is okay BTW, but I'm waiting for the header file update. Paolo From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYE7M-00035P-1x for qemu-devel@nongnu.org; Tue, 23 Feb 2016 09:39:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYE7I-0005gV-Rc for qemu-devel@nongnu.org; Tue, 23 Feb 2016 09:39:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYE7I-0005gP-Mn for qemu-devel@nongnu.org; Tue, 23 Feb 2016 09:39:08 -0500 References: <1453385060-14945-1-git-send-email-asmetanin@virtuozzo.com> From: Paolo Bonzini Message-ID: <56CC6F06.8030106@redhat.com> Date: Tue, 23 Feb 2016 15:39:02 +0100 MIME-Version: 1.0 In-Reply-To: <1453385060-14945-1-git-send-email-asmetanin@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Smetanin , qemu-devel@nongnu.org Cc: Eduardo Habkost , kvm@vger.kernel.org, Marcelo Tosatti , Roman Kagan , "Denis V. Lunev" , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Richard Henderson On 21/01/2016 15:04, Andrey Smetanin wrote: > Add Hyper-V VMBus hypercalls blank handlers which > just returns error code - HV_STATUS_INVALID_HYPERCALL_CODE. >=20 > Changes v2: > * use KVM_EXIT_HYPERV exit type >=20 > Signed-off-by: Andrey Smetanin > Reviewed-by: Roman Kagan > CC: Paolo Bonzini > CC: Richard Henderson > CC: Eduardo Habkost > CC: "Andreas F=C3=A4rber" > CC: Marcelo Tosatti > CC: Roman Kagan > CC: Denis V. Lunev > CC: kvm@vger.kernel.org >=20 > --- > target-i386/hyperv.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > 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_hyper= v_exit *exit) > return -1; > } > return 0; > + case KVM_EXIT_HYPERV_HCALL: { > + uint16_t code; > + > + code =3D exit->u.hcall.input & 0xffff; > + switch (code) { > + case HV_X64_HCALL_POST_MESSAGE: > + case HV_X64_HCALL_SIGNAL_EVENT: > + default: > + exit->u.hcall.result =3D HV_STATUS_INVALID_HYPERCALL_CODE; > + return 0; > + } > + } > default: > return -1; > } >=20 This is okay BTW, but I'm waiting for the header file update. Paolo