From: Andrey Smetanin <asmetanin@virtuozzo.com>
To: Paolo Bonzini <pbonzini@redhat.com>, <kvm@vger.kernel.org>
Cc: Gleb Natapov <gleb@kernel.org>, Joerg Roedel <joro@8bytes.org>,
"K. Y. 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: Re: [PATCH v3 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header
Date: Fri, 12 Feb 2016 11:10:00 +0300 [thread overview]
Message-ID: <56BD9358.9040307@virtuozzo.com> (raw)
In-Reply-To: <56BD012E.6020606@redhat.com>
On 02/12/2016 12:46 AM, Paolo Bonzini wrote:
>
>
> On 11/02/2016 14:44, Andrey Smetanin wrote:
>> 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>
>> Acked-by: K. Y. Srinivasan <kys@microsoft.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
>> ---
>> arch/x86/include/uapi/asm/hyperv.h | 2 ++
>> drivers/hv/connection.c | 2 +-
>> drivers/hv/hv.c | 2 +-
>> drivers/hv/hyperv_vmbus.h | 6 ------
>> 4 files changed, 4 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/connection.c b/drivers/hv/connection.c
>> index fa86b2c..84700c6 100644
>> --- a/drivers/hv/connection.c
>> +++ b/drivers/hv/connection.c
>> @@ -485,5 +485,5 @@ void vmbus_set_event(struct vmbus_channel *channel)
>> (child_relid >> 5));
>> }
>>
>> - hv_do_hypercall(HVCALL_SIGNAL_EVENT, channel->sig_event, NULL);
>> + hv_do_hypercall(HV_X64_HCALL_SIGNAL_EVENT, channel->sig_event, NULL);
>
> What tree does this apply to?
next-20160211
>
> Paolo
>
>> }
>> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
>> index ccb335f..48388dc 100644
>> --- a/drivers/hv/hv.c
>> +++ b/drivers/hv/hv.c
>> @@ -337,7 +337,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 = hv_do_hypercall(HVCALL_POST_MESSAGE, aligned_msg, NULL);
>> + status = hv_do_hypercall(HV_X64_HCALL_POST_MESSAGE, aligned_msg, NULL);
>>
>> put_cpu();
>> return status & 0xFFFF;
>> diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
>> index b9ea7f5..1dabaa4 100644
>> --- a/drivers/hv/hyperv_vmbus.h
>> +++ b/drivers/hv/hyperv_vmbus.h
>> @@ -256,12 +256,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;
>>
WARNING: multiple messages have this Message-ID (diff)
From: Andrey Smetanin <asmetanin@virtuozzo.com>
To: Paolo Bonzini <pbonzini@redhat.com>, kvm@vger.kernel.org
Cc: Gleb Natapov <gleb@kernel.org>, Joerg Roedel <joro@8bytes.org>,
qemu-devel@nongnu.org, Roman Kagan <rkagan@virtuozzo.com>,
"Denis V. Lunev" <den@openvz.org>,
"K. Y. Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>
Subject: Re: [Qemu-devel] [PATCH v3 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header
Date: Fri, 12 Feb 2016 11:10:00 +0300 [thread overview]
Message-ID: <56BD9358.9040307@virtuozzo.com> (raw)
In-Reply-To: <56BD012E.6020606@redhat.com>
On 02/12/2016 12:46 AM, Paolo Bonzini wrote:
>
>
> On 11/02/2016 14:44, Andrey Smetanin wrote:
>> 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>
>> Acked-by: K. Y. Srinivasan <kys@microsoft.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
>> ---
>> arch/x86/include/uapi/asm/hyperv.h | 2 ++
>> drivers/hv/connection.c | 2 +-
>> drivers/hv/hv.c | 2 +-
>> drivers/hv/hyperv_vmbus.h | 6 ------
>> 4 files changed, 4 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/connection.c b/drivers/hv/connection.c
>> index fa86b2c..84700c6 100644
>> --- a/drivers/hv/connection.c
>> +++ b/drivers/hv/connection.c
>> @@ -485,5 +485,5 @@ void vmbus_set_event(struct vmbus_channel *channel)
>> (child_relid >> 5));
>> }
>>
>> - hv_do_hypercall(HVCALL_SIGNAL_EVENT, channel->sig_event, NULL);
>> + hv_do_hypercall(HV_X64_HCALL_SIGNAL_EVENT, channel->sig_event, NULL);
>
> What tree does this apply to?
next-20160211
>
> Paolo
>
>> }
>> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
>> index ccb335f..48388dc 100644
>> --- a/drivers/hv/hv.c
>> +++ b/drivers/hv/hv.c
>> @@ -337,7 +337,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 = hv_do_hypercall(HVCALL_POST_MESSAGE, aligned_msg, NULL);
>> + status = hv_do_hypercall(HV_X64_HCALL_POST_MESSAGE, aligned_msg, NULL);
>>
>> put_cpu();
>> return status & 0xFFFF;
>> diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
>> index b9ea7f5..1dabaa4 100644
>> --- a/drivers/hv/hyperv_vmbus.h
>> +++ b/drivers/hv/hyperv_vmbus.h
>> @@ -256,12 +256,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;
>>
next prev parent reply other threads:[~2016-02-12 8:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 13:44 [PATCH v3 0/5] KVM: Hyper-V VMBus hypercalls Andrey Smetanin
2016-02-11 13:44 ` [Qemu-devel] " Andrey Smetanin
2016-02-11 13:44 ` [PATCH v3 1/5] kvm/x86: Rename Hyper-V long spin wait hypercall Andrey Smetanin
2016-02-11 13:44 ` [Qemu-devel] " Andrey Smetanin
2016-02-11 13:44 ` [PATCH v3 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header Andrey Smetanin
2016-02-11 13:44 ` [Qemu-devel] " Andrey Smetanin
2016-02-11 21:46 ` Paolo Bonzini
2016-02-11 21:46 ` [Qemu-devel] " Paolo Bonzini
2016-02-12 8:10 ` Andrey Smetanin [this message]
2016-02-12 8:10 ` Andrey Smetanin
2016-02-12 13:16 ` Paolo Bonzini
2016-02-12 13:16 ` [Qemu-devel] " Paolo Bonzini
2016-02-11 13:44 ` [PATCH v3 3/5] kvm/x86: Pass return code of kvm_emulate_hypercall Andrey Smetanin
2016-02-11 13:44 ` [Qemu-devel] " Andrey Smetanin
2016-02-11 13:45 ` [PATCH v3 4/5] kvm/x86: Reject Hyper-V hypercall continuation Andrey Smetanin
2016-02-11 13:45 ` [Qemu-devel] " Andrey Smetanin
2016-02-11 13:45 ` [PATCH v3 5/5] kvm/x86: Hyper-V VMBus hypercall userspace exit Andrey Smetanin
2016-02-11 13:45 ` [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=56BD9358.9040307@virtuozzo.com \
--to=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=kys@microsoft.com \
--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.