All of lore.kernel.org
 help / color / mirror / Atom feed
From: KY Srinivasan <kys@microsoft.com>
To: Andrey Smetanin <asmetanin@virtuozzo.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Cc: Gleb Natapov <gleb@kernel.org>, Joerg Roedel <joro@8bytes.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Roman Kagan <rkagan@virtuozzo.com>,
	"Denis V. Lunev" <den@openvz.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Haiyang Zhang <haiyangz@microsoft.com>
Subject: Re: [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header
Date: Wed, 20 Jan 2016 15:04:47 +0000	[thread overview]
Message-ID: <BY2PR0301MB1654CB7CA6A0243FEB31228FA0C20@BY2PR0301MB1654.namprd03.prod.outlook.com> (raw)
In-Reply-To: <1452595842-20880-3-git-send-email-asmetanin@virtuozzo.com>



> -----Original Message-----
> From: Andrey Smetanin [mailto:asmetanin@virtuozzo.com]
> Sent: Tuesday, January 12, 2016 2:51 AM
> To: kvm@vger.kernel.org
> Cc: Gleb Natapov <gleb@kernel.org>; Paolo Bonzini
> <pbonzini@redhat.com>; Joerg Roedel <joro@8bytes.org>; KY Srinivasan
> <kys@microsoft.com>; Haiyang Zhang <haiyangz@microsoft.com>; Roman
> Kagan <rkagan@virtuozzo.com>; Denis V. Lunev <den@openvz.org>; qemu-
> devel@nongnu.org
> Subject: [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-
> V UAPI header
> 
> VMBus hypercall codes inside Hyper-V UAPI header will
> be used by QEMU to implement VMBus host devices support.
> 
> Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
> CC: Gleb Natapov <gleb@kernel.org>
> CC: Paolo Bonzini <pbonzini@redhat.com>
> CC: Joerg Roedel <joro@8bytes.org>
> CC: "K. Y. Srinivasan" <kys@microsoft.com>
> CC: Haiyang Zhang <haiyangz@microsoft.com>
> CC: Roman Kagan <rkagan@virtuozzo.com>
> CC: Denis V. Lunev <den@openvz.org>
> CC: qemu-devel@nongnu.org

Acked-by: K. Y. Srinivasan <kys@microsoft.com>

> 
> ---
>  arch/x86/include/uapi/asm/hyperv.h | 2 ++
>  drivers/hv/hv.c                    | 5 +++--
>  drivers/hv/hyperv_vmbus.h          | 6 ------
>  3 files changed, 5 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/x86/include/uapi/asm/hyperv.h
> b/arch/x86/include/uapi/asm/hyperv.h
> index 0c50fab..bc1c8a9 100644
> --- a/arch/x86/include/uapi/asm/hyperv.h
> +++ b/arch/x86/include/uapi/asm/hyperv.h
> @@ -227,6 +227,8 @@
> 
>  /* Declare the various hypercall operations. */
>  #define HV_X64_HCALL_NOTIFY_LONG_SPIN_WAIT		0x0008
> +#define HV_X64_HCALL_POST_MESSAGE			0x005c
> +#define HV_X64_HCALL_SIGNAL_EVENT			0x005d
> 
>  #define HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE		0x00000001
>  #define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT	12
> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
> index 6341be8..56437d5 100644
> --- a/drivers/hv/hv.c
> +++ b/drivers/hv/hv.c
> @@ -329,7 +329,7 @@ int hv_post_message(union hv_connection_id
> connection_id,
>  	aligned_msg->payload_size = payload_size;
>  	memcpy((void *)aligned_msg->payload, payload, payload_size);
> 
> -	status = do_hypercall(HVCALL_POST_MESSAGE, aligned_msg, NULL)
> +	status = do_hypercall(HV_X64_HCALL_POST_MESSAGE,
> aligned_msg, NULL)
>  		& 0xFFFF;
> 
>  	put_cpu();
> @@ -347,7 +347,8 @@ u16 hv_signal_event(void *con_id)
>  {
>  	u16 status;
> 
> -	status = (do_hypercall(HVCALL_SIGNAL_EVENT, con_id, NULL) &
> 0xFFFF);
> +	status = (do_hypercall(HV_X64_HCALL_SIGNAL_EVENT, con_id,
> NULL)
> +		  & 0xFFFF);
> 
>  	return status;
>  }
> diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
> index 678663e..36cad1f 100644
> --- a/drivers/hv/hyperv_vmbus.h
> +++ b/drivers/hv/hyperv_vmbus.h
> @@ -251,12 +251,6 @@ struct hv_monitor_page {
>  	u8 rsvdz4[1984];
>  };
> 
> -/* Declare the various hypercall operations. */
> -enum hv_call_code {
> -	HVCALL_POST_MESSAGE	= 0x005c,
> -	HVCALL_SIGNAL_EVENT	= 0x005d,
> -};
> -
>  /* Definition of the hv_post_message hypercall input structure. */
>  struct hv_input_post_message {
>  	union hv_connection_id connectionid;
> --
> 2.4.3

WARNING: multiple messages have this Message-ID (diff)
From: KY Srinivasan <kys@microsoft.com>
To: Andrey Smetanin <asmetanin@virtuozzo.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Cc: Gleb Natapov <gleb@kernel.org>, Joerg Roedel <joro@8bytes.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Roman Kagan <rkagan@virtuozzo.com>,
	"Denis V. Lunev" <den@openvz.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Haiyang Zhang <haiyangz@microsoft.com>
Subject: Re: [Qemu-devel] [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header
Date: Wed, 20 Jan 2016 15:04:47 +0000	[thread overview]
Message-ID: <BY2PR0301MB1654CB7CA6A0243FEB31228FA0C20@BY2PR0301MB1654.namprd03.prod.outlook.com> (raw)
In-Reply-To: <1452595842-20880-3-git-send-email-asmetanin@virtuozzo.com>



> -----Original Message-----
> From: Andrey Smetanin [mailto:asmetanin@virtuozzo.com]
> Sent: Tuesday, January 12, 2016 2:51 AM
> To: kvm@vger.kernel.org
> Cc: Gleb Natapov <gleb@kernel.org>; Paolo Bonzini
> <pbonzini@redhat.com>; Joerg Roedel <joro@8bytes.org>; KY Srinivasan
> <kys@microsoft.com>; Haiyang Zhang <haiyangz@microsoft.com>; Roman
> Kagan <rkagan@virtuozzo.com>; Denis V. Lunev <den@openvz.org>; qemu-
> devel@nongnu.org
> Subject: [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-
> V UAPI header
> 
> VMBus hypercall codes inside Hyper-V UAPI header will
> be used by QEMU to implement VMBus host devices support.
> 
> Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
> CC: Gleb Natapov <gleb@kernel.org>
> CC: Paolo Bonzini <pbonzini@redhat.com>
> CC: Joerg Roedel <joro@8bytes.org>
> CC: "K. Y. Srinivasan" <kys@microsoft.com>
> CC: Haiyang Zhang <haiyangz@microsoft.com>
> CC: Roman Kagan <rkagan@virtuozzo.com>
> CC: Denis V. Lunev <den@openvz.org>
> CC: qemu-devel@nongnu.org

Acked-by: K. Y. Srinivasan <kys@microsoft.com>

> 
> ---
>  arch/x86/include/uapi/asm/hyperv.h | 2 ++
>  drivers/hv/hv.c                    | 5 +++--
>  drivers/hv/hyperv_vmbus.h          | 6 ------
>  3 files changed, 5 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/x86/include/uapi/asm/hyperv.h
> b/arch/x86/include/uapi/asm/hyperv.h
> index 0c50fab..bc1c8a9 100644
> --- a/arch/x86/include/uapi/asm/hyperv.h
> +++ b/arch/x86/include/uapi/asm/hyperv.h
> @@ -227,6 +227,8 @@
> 
>  /* Declare the various hypercall operations. */
>  #define HV_X64_HCALL_NOTIFY_LONG_SPIN_WAIT		0x0008
> +#define HV_X64_HCALL_POST_MESSAGE			0x005c
> +#define HV_X64_HCALL_SIGNAL_EVENT			0x005d
> 
>  #define HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE		0x00000001
>  #define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT	12
> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
> index 6341be8..56437d5 100644
> --- a/drivers/hv/hv.c
> +++ b/drivers/hv/hv.c
> @@ -329,7 +329,7 @@ int hv_post_message(union hv_connection_id
> connection_id,
>  	aligned_msg->payload_size = payload_size;
>  	memcpy((void *)aligned_msg->payload, payload, payload_size);
> 
> -	status = do_hypercall(HVCALL_POST_MESSAGE, aligned_msg, NULL)
> +	status = do_hypercall(HV_X64_HCALL_POST_MESSAGE,
> aligned_msg, NULL)
>  		& 0xFFFF;
> 
>  	put_cpu();
> @@ -347,7 +347,8 @@ u16 hv_signal_event(void *con_id)
>  {
>  	u16 status;
> 
> -	status = (do_hypercall(HVCALL_SIGNAL_EVENT, con_id, NULL) &
> 0xFFFF);
> +	status = (do_hypercall(HV_X64_HCALL_SIGNAL_EVENT, con_id,
> NULL)
> +		  & 0xFFFF);
> 
>  	return status;
>  }
> diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
> index 678663e..36cad1f 100644
> --- a/drivers/hv/hyperv_vmbus.h
> +++ b/drivers/hv/hyperv_vmbus.h
> @@ -251,12 +251,6 @@ struct hv_monitor_page {
>  	u8 rsvdz4[1984];
>  };
> 
> -/* Declare the various hypercall operations. */
> -enum hv_call_code {
> -	HVCALL_POST_MESSAGE	= 0x005c,
> -	HVCALL_SIGNAL_EVENT	= 0x005d,
> -};
> -
>  /* Definition of the hv_post_message hypercall input structure. */
>  struct hv_input_post_message {
>  	union hv_connection_id connectionid;
> --
> 2.4.3

  reply	other threads:[~2016-01-20 15:04 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12 10:50 [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls Andrey Smetanin
2016-01-12 10:50 ` [Qemu-devel] " Andrey Smetanin
2016-01-12 10:50 ` [PATCH v1 1/5] kvm/x86: Rename Hyper-V long spin wait hypercall Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-12 10:50 ` [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-20 15:04   ` KY Srinivasan [this message]
2016-01-20 15:04     ` KY Srinivasan
2016-01-12 10:50 ` [PATCH v1 3/5] kvm/x86: Pass return code of kvm_emulate_hypercall Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-12 10:50 ` [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-14  8:30   ` Pavel Fedin
2016-01-14  8:30     ` [Qemu-devel] " Pavel Fedin
2016-01-14 10:20     ` 'Roman Kagan'
2016-01-14 10:20       ` [Qemu-devel] " 'Roman Kagan'
2016-01-14 10:50       ` Pavel Fedin
2016-01-14 10:50         ` [Qemu-devel] " Pavel Fedin
2016-01-14 11:52         ` 'Roman Kagan'
2016-01-14 11:52           ` [Qemu-devel] " 'Roman Kagan'
2016-01-20 13:59     ` Paolo Bonzini
2016-01-20 13:59       ` [Qemu-devel] " Paolo Bonzini
2016-01-20 14:41       ` Pavel Fedin
2016-01-20 14:41         ` [Qemu-devel] " Pavel Fedin
2016-01-20 15:20       ` 'Roman Kagan'
2016-01-20 15:20         ` [Qemu-devel] " 'Roman Kagan'
2016-01-20 17:02         ` Paolo Bonzini
2016-01-20 17:02           ` [Qemu-devel] " Paolo Bonzini
2016-01-20 17:31           ` 'Roman Kagan'
2016-01-20 17:31             ` [Qemu-devel] " 'Roman Kagan'
2016-01-20 21:05             ` Paolo Bonzini
2016-01-20 21:05               ` [Qemu-devel] " Paolo Bonzini
2016-01-20 13:43   ` Paolo Bonzini
2016-01-20 13:43     ` [Qemu-devel] " Paolo Bonzini
2016-01-20 16:51     ` Roman Kagan
2016-01-20 16:51       ` [Qemu-devel] " Roman Kagan
2016-01-12 10:50 ` [PATCH v1 5/5] kvm/x86: Reject Hyper-V hypercall continuation Andrey Smetanin
2016-01-12 10:50   ` [Qemu-devel] " Andrey Smetanin
2016-01-12 11:19 ` [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls Andrey Smetanin
2016-01-12 11:19   ` [Qemu-devel] " Andrey Smetanin
2016-01-19  7:49 ` Denis V. Lunev
2016-01-19  7:49   ` [Qemu-devel] " Denis V. Lunev
2016-01-19 16:47   ` Paolo Bonzini
2016-01-19 16:47     ` [Qemu-devel] " Paolo Bonzini
2016-01-20 14:08     ` Paolo Bonzini
2016-01-20 14:08       ` [Qemu-devel] " Paolo Bonzini

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=BY2PR0301MB1654CB7CA6A0243FEB31228FA0C20@BY2PR0301MB1654.namprd03.prod.outlook.com \
    --to=kys@microsoft.com \
    --cc=asmetanin@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=gleb@kernel.org \
    --cc=haiyangz@microsoft.com \
    --cc=joro@8bytes.org \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rkagan@virtuozzo.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 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.