From mboxrd@z Thu Jan 1 00:00:00 1970
From: Pavel Fedin
Subject: RE: [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit
Date: Thu, 14 Jan 2016 11:30:43 +0300
Message-ID: <009401d14ea5$dc8cf250$95a6d6f0$@samsung.com>
References: <1452595842-20880-1-git-send-email-asmetanin@virtuozzo.com>
<1452595842-20880-5-git-send-email-asmetanin@virtuozzo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Cc: 'Gleb Natapov' ,
'Paolo Bonzini' ,
'Joerg Roedel' ,
"'K. Y. Srinivasan'" ,
'Haiyang Zhang' ,
'Roman Kagan' ,
"'Denis V. Lunev'" , qemu-devel@nongnu.org
To: 'Andrey Smetanin' , kvm@vger.kernel.org
Return-path:
Received: from mailout3.w1.samsung.com ([210.118.77.13]:12008 "EHLO
mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1750768AbcANIar (ORCPT );
Thu, 14 Jan 2016 03:30:47 -0500
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014))
with ESMTP id <0O0X00FO8OZ88R00@mailout3.w1.samsung.com> for
kvm@vger.kernel.org; Thu, 14 Jan 2016 08:30:45 +0000 (GMT)
In-reply-to: <1452595842-20880-5-git-send-email-asmetanin@virtuozzo.com>
Content-language: ru
Sender: kvm-owner@vger.kernel.org
List-ID:
Hello!
> --- a/Documentation/virtual/kvm/api.txt
> +++ b/Documentation/virtual/kvm/api.txt
> @@ -3359,6 +3359,14 @@ Hyper-V SynIC state change. Notification is used to remap SynIC
> event/message pages and to enable/disable SynIC messages/events processing
> in userspace.
>
> + /* KVM_EXIT_HYPERV_HCALL */
> + struct {
> + __u64 input;
> + __u64 params[2];
> + __u64 result;
> + } hv_hcall;
> +Indicates that the VCPU exits into userspace to process some guest
> +Hyper-V hypercalls.
Why introducing this? We already have KVM_EXIT_HYPERCALL, which is exactly the same. AFAIK it's not used at the moment.
Additionally, in theory we could have hypercalls handled in userspace for something else except HyperV. And not only for x86.
Kind regards,
Pavel Fedin
Senior Engineer
Samsung Electronics Research center Russia
From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39379)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1aJdIz-0007vu-OK
for qemu-devel@nongnu.org; Thu, 14 Jan 2016 03:30:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1aJdIw-0003jD-Gh
for qemu-devel@nongnu.org; Thu, 14 Jan 2016 03:30:53 -0500
Received: from mailout3.w1.samsung.com ([210.118.77.13]:12012)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1aJdIw-0003iz-AJ
for qemu-devel@nongnu.org; Thu, 14 Jan 2016 03:30:50 -0500
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0O0X00FO8OZ88R00@mailout3.w1.samsung.com> for
qemu-devel@nongnu.org; Thu, 14 Jan 2016 08:30:44 +0000 (GMT)
From: Pavel Fedin
References: <1452595842-20880-1-git-send-email-asmetanin@virtuozzo.com>
<1452595842-20880-5-git-send-email-asmetanin@virtuozzo.com>
In-reply-to: <1452595842-20880-5-git-send-email-asmetanin@virtuozzo.com>
Date: Thu, 14 Jan 2016 11:30:43 +0300
Message-id: <009401d14ea5$dc8cf250$95a6d6f0$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Content-language: ru
Subject: Re: [Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall
userspace exit
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: 'Andrey Smetanin' , kvm@vger.kernel.org
Cc: 'Gleb Natapov' , 'Joerg Roedel' , qemu-devel@nongnu.org, 'Roman Kagan' , "'Denis V. Lunev'" , 'Paolo Bonzini' , "'K. Y. Srinivasan'" , 'Haiyang Zhang'
Hello!
> --- a/Documentation/virtual/kvm/api.txt
> +++ b/Documentation/virtual/kvm/api.txt
> @@ -3359,6 +3359,14 @@ Hyper-V SynIC state change. Notification is used to remap SynIC
> event/message pages and to enable/disable SynIC messages/events processing
> in userspace.
>
> + /* KVM_EXIT_HYPERV_HCALL */
> + struct {
> + __u64 input;
> + __u64 params[2];
> + __u64 result;
> + } hv_hcall;
> +Indicates that the VCPU exits into userspace to process some guest
> +Hyper-V hypercalls.
Why introducing this? We already have KVM_EXIT_HYPERCALL, which is exactly the same. AFAIK it's not used at the moment.
Additionally, in theory we could have hypercalls handled in userspace for something else except HyperV. And not only for x86.
Kind regards,
Pavel Fedin
Senior Engineer
Samsung Electronics Research center Russia