From: Paolo Bonzini <pbonzini@redhat.com>
To: Andrey Smetanin <asmetanin@virtuozzo.com>, qemu-devel@nongnu.org
Cc: "Eduardo Habkost" <ehabkost@redhat.com>,
kvm@vger.kernel.org, "Marcelo Tosatti" <mtosatti@redhat.com>,
"Roman Kagan" <rkagan@virtuozzo.com>,
"Denis V. Lunev" <den@openvz.org>,
"Andreas Färber" <afaerber@suse.de>,
"Richard Henderson" <rth@twiddle.net>
Subject: Re: [PATCH v2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers
Date: Tue, 23 Feb 2016 15:39:02 +0100 [thread overview]
Message-ID: <56CC6F06.8030106@redhat.com> (raw)
In-Reply-To: <1453385060-14945-1-git-send-email-asmetanin@virtuozzo.com>
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.
>
> 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;
> }
>
This is okay BTW, but I'm waiting for the header file update.
Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Andrey Smetanin <asmetanin@virtuozzo.com>, qemu-devel@nongnu.org
Cc: "Eduardo Habkost" <ehabkost@redhat.com>,
kvm@vger.kernel.org, "Marcelo Tosatti" <mtosatti@redhat.com>,
"Roman Kagan" <rkagan@virtuozzo.com>,
"Denis V. Lunev" <den@openvz.org>,
"Andreas Färber" <afaerber@suse.de>,
"Richard Henderson" <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers
Date: Tue, 23 Feb 2016 15:39:02 +0100 [thread overview]
Message-ID: <56CC6F06.8030106@redhat.com> (raw)
In-Reply-To: <1453385060-14945-1-git-send-email-asmetanin@virtuozzo.com>
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.
>
> 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;
> }
>
This is okay BTW, but I'm waiting for the header file update.
Paolo
next prev parent reply other threads:[~2016-02-23 14:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-02-23 14:39 ` 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56CC6F06.8030106@redhat.com \
--to=pbonzini@redhat.com \
--cc=afaerber@suse.de \
--cc=asmetanin@virtuozzo.com \
--cc=den@openvz.org \
--cc=ehabkost@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rkagan@virtuozzo.com \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.