From: "Radim Krčmář" <rkrcmar@redhat.com>
To: "K. Y. Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Stephen Hemminger <sthemmin@microsoft.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>
Cc: Roman Kagan <rkagan@virtuozzo.com>,
kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>,
"Denis V. Lunev" <den@openvz.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
David Hildenbrand <david@redhat.com>
Subject: Re: [PATCH v9 2/2] kvm: x86: hyperv: guest->host event signaling via eventfd
Date: Thu, 1 Feb 2018 15:56:45 +0100 [thread overview]
Message-ID: <20180201145645.GC26932@flask> (raw)
In-Reply-To: <20180201134832.17259-3-rkagan@virtuozzo.com>
2018-02-01 16:48+0300, Roman Kagan:
> In Hyper-V, the fast guest->host notification mechanism is the
> SIGNAL_EVENT hypercall, with a single parameter of the connection ID to
> signal.
>
> Currently this hypercall incurs a user exit and requires the userspace
> to decode the parameters and trigger the notification of the potentially
> different I/O context.
>
> To avoid the costly user exit, process this hypercall and signal the
> corresponding eventfd in KVM, similar to ioeventfd. The association
> between the connection id and the eventfd is established via the newly
> introduced KVM_HYPERV_EVENTFD ioctl, and maintained in an
> (srcu-protected) IDR.
>
> Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
> Reviewed-by: David Hildenbrand <david@redhat.com>
> ---
> Documentation/virtual/kvm/api.txt | 31 +++++++++++
> arch/x86/include/asm/kvm_host.h | 2 +
> arch/x86/include/uapi/asm/hyperv.h | 2 +
> arch/x86/kvm/hyperv.h | 1 +
> include/uapi/linux/kvm.h | 13 +++++
> arch/x86/kvm/hyperv.c | 103 ++++++++++++++++++++++++++++++++++++-
> arch/x86/kvm/x86.c | 10 ++++
> 7 files changed, 161 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h
> index 1a5bfead93b4..f9ed479d479c 100644
> --- a/arch/x86/include/uapi/asm/hyperv.h
> +++ b/arch/x86/include/uapi/asm/hyperv.h
> @@ -276,7 +276,9 @@ enum HV_GENERIC_SET_FORMAT {
> #define HV_STATUS_INVALID_HYPERCALL_CODE 2
> #define HV_STATUS_INVALID_HYPERCALL_INPUT 3
> #define HV_STATUS_INVALID_ALIGNMENT 4
> +#define HV_STATUS_INVALID_PARAMETER 5
> #define HV_STATUS_INSUFFICIENT_MEMORY 11
> +#define HV_STATUS_INVALID_PORT_ID 17
> #define HV_STATUS_INVALID_CONNECTION_ID 18
> #define HV_STATUS_INSUFFICIENT_BUFFERS 19
>
x86/hyperv maintainers,
are you ok with this hunk going through the kvm tree?
Thanks.
next prev parent reply other threads:[~2018-02-01 14:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-01 13:48 [PATCH v9 0/2] kvm: x86: hyperv: guest->host event signaling via eventfd Roman Kagan
2018-02-01 13:48 ` [PATCH v9 1/2] kvm: x86: factor out kvm.arch.hyperv (de)init Roman Kagan
2018-02-01 13:48 ` [PATCH v9 2/2] kvm: x86: hyperv: guest->host event signaling via eventfd Roman Kagan
2018-02-01 14:52 ` Radim Krčmář
2018-02-01 14:56 ` Radim Krčmář [this message]
2018-02-01 19:19 ` KY Srinivasan
2018-02-01 13:51 ` [PATCH v9 0/2] " David Hildenbrand
2018-02-01 13:53 ` David Hildenbrand
2018-02-01 14:08 ` David Hildenbrand
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=20180201145645.GC26932@flask \
--to=rkrcmar@redhat.com \
--cc=david@redhat.com \
--cc=den@openvz.org \
--cc=haiyangz@microsoft.com \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=kys@microsoft.com \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=rkagan@virtuozzo.com \
--cc=sthemmin@microsoft.com \
--cc=tglx@linutronix.de \
--cc=vkuznets@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox