* [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
@ 2016-04-01 8:18 Paolo Bonzini
2016-04-01 8:36 ` Denis V. Lunev
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Paolo Bonzini @ 2016-04-01 8:18 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Alex Williamson, Roman Kagan, Denis V. Lunev,
KY Srinivasan, Andreas Färber
Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
we want in the Hyper-V vendor signature, let's show some love too!
Cc: Andreas Färber <afaerber@suse.de>
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Denis V. Lunev <den@openvz.org>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Roman Kagan <rkagan@virtuozzo.com>
Cc: KY Srinivasan <kys@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target-i386/kvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 799fdfa..1968f04 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
c = &cpuid_data.entries[cpuid_i++];
c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
if (!cpu->hyperv_vendor_id) {
- memcpy(signature, "Microsoft Hv", 12);
+ memcpy(signature, "KVM<3HyperV!", 12);
} else {
size_t len = strlen(cpu->hyperv_vendor_id);
--
2.5.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
2016-04-01 8:18 [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V! Paolo Bonzini
@ 2016-04-01 8:36 ` Denis V. Lunev
2016-04-01 8:58 ` Daniel P. Berrange
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Denis V. Lunev @ 2016-04-01 8:36 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
Cc: Roman Kagan, Alex Williamson, KY Srinivasan, Andreas Färber,
Eduardo Habkost
On 04/01/2016 11:18 AM, Paolo Bonzini wrote:
> Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
> we want in the Hyper-V vendor signature, let's show some love too!
>
> Cc: Andreas Färber <afaerber@suse.de>
> Cc: Alex Williamson <alex.williamson@redhat.com>
> Cc: Denis V. Lunev <den@openvz.org>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: Roman Kagan <rkagan@virtuozzo.com>
> Cc: KY Srinivasan <kys@microsoft.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target-i386/kvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 799fdfa..1968f04 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
> c = &cpuid_data.entries[cpuid_i++];
> c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
> if (!cpu->hyperv_vendor_id) {
> - memcpy(signature, "Microsoft Hv", 12);
> + memcpy(signature, "KVM<3HyperV!", 12);
> } else {
> size_t len = strlen(cpu->hyperv_vendor_id);
>
potentially this could be dangerous. This could break
hypervisor detection code. I'll check this today and
reply.
But you have made my day. Thank you for April 1.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
2016-04-01 8:18 [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V! Paolo Bonzini
2016-04-01 8:36 ` Denis V. Lunev
@ 2016-04-01 8:58 ` Daniel P. Berrange
2016-04-01 9:06 ` Paolo Bonzini
2016-04-01 10:13 ` Roman Kagan
` (2 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Daniel P. Berrange @ 2016-04-01 8:58 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Eduardo Habkost, qemu-devel, Alex Williamson, Roman Kagan,
Denis V. Lunev, KY Srinivasan, Andreas Färber
On Fri, Apr 01, 2016 at 10:18:02AM +0200, Paolo Bonzini wrote:
> Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
> we want in the Hyper-V vendor signature, let's show some love too!
>
> Cc: Andreas Färber <afaerber@suse.de>
> Cc: Alex Williamson <alex.williamson@redhat.com>
> Cc: Denis V. Lunev <den@openvz.org>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: Roman Kagan <rkagan@virtuozzo.com>
> Cc: KY Srinivasan <kys@microsoft.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target-i386/kvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 799fdfa..1968f04 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
> c = &cpuid_data.entries[cpuid_i++];
> c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
> if (!cpu->hyperv_vendor_id) {
> - memcpy(signature, "Microsoft Hv", 12);
> + memcpy(signature, "KVM<3HyperV!", 12);
I think it'd be nicer to use the unicode heart symbol ♡ encoded as utf-8
eg
memcpy(signature, "KVM\xe2\x99\xa1HyperV", 12);
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
2016-04-01 8:58 ` Daniel P. Berrange
@ 2016-04-01 9:06 ` Paolo Bonzini
0 siblings, 0 replies; 7+ messages in thread
From: Paolo Bonzini @ 2016-04-01 9:06 UTC (permalink / raw)
To: Daniel P. Berrange
Cc: Eduardo Habkost, qemu-devel, Alex Williamson, Roman Kagan,
Denis V. Lunev, KY Srinivasan, Andreas Färber
On 01/04/2016 10:58, Daniel P. Berrange wrote:
> On Fri, Apr 01, 2016 at 10:18:02AM +0200, Paolo Bonzini wrote:
>> Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
>> we want in the Hyper-V vendor signature, let's show some love too!
>>
>> Cc: Andreas Färber <afaerber@suse.de>
>> Cc: Alex Williamson <alex.williamson@redhat.com>
>> Cc: Denis V. Lunev <den@openvz.org>
>> Cc: Eduardo Habkost <ehabkost@redhat.com>
>> Cc: Roman Kagan <rkagan@virtuozzo.com>
>> Cc: KY Srinivasan <kys@microsoft.com>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>> target-i386/kvm.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
>> index 799fdfa..1968f04 100644
>> --- a/target-i386/kvm.c
>> +++ b/target-i386/kvm.c
>> @@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
>> c = &cpuid_data.entries[cpuid_i++];
>> c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
>> if (!cpu->hyperv_vendor_id) {
>> - memcpy(signature, "Microsoft Hv", 12);
>> + memcpy(signature, "KVM<3HyperV!", 12);
>
> I think it'd be nicer to use the unicode heart symbol ♡ encoded as utf-8
> eg
>
> memcpy(signature, "KVM\xe2\x99\xa1HyperV", 12);
I'll try to get v2 ready in the next 13 hours and 53 minutes.
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
2016-04-01 8:18 [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V! Paolo Bonzini
2016-04-01 8:36 ` Denis V. Lunev
2016-04-01 8:58 ` Daniel P. Berrange
@ 2016-04-01 10:13 ` Roman Kagan
2016-04-01 14:12 ` Michael Roth
2016-04-01 20:28 ` KY Srinivasan
4 siblings, 0 replies; 7+ messages in thread
From: Roman Kagan @ 2016-04-01 10:13 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Eduardo Habkost, qemu-devel, Alex Williamson, Denis V. Lunev,
KY Srinivasan, Andreas Färber
On Fri, Apr 01, 2016 at 10:18:02AM +0200, Paolo Bonzini wrote:
> Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
> we want in the Hyper-V vendor signature, let's show some love too!
>
> Cc: Andreas Färber <afaerber@suse.de>
> Cc: Alex Williamson <alex.williamson@redhat.com>
> Cc: Denis V. Lunev <den@openvz.org>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: Roman Kagan <rkagan@virtuozzo.com>
> Cc: KY Srinivasan <kys@microsoft.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target-i386/kvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 799fdfa..1968f04 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
> c = &cpuid_data.entries[cpuid_i++];
> c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
> if (!cpu->hyperv_vendor_id) {
> - memcpy(signature, "Microsoft Hv", 12);
> + memcpy(signature, "KVM<3HyperV!", 12);
> } else {
> size_t len = strlen(cpu->hyperv_vendor_id);
Sealed-with-a-kiss-by: Roman Kagan <rkagan@virtuozzo.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
2016-04-01 8:18 [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V! Paolo Bonzini
` (2 preceding siblings ...)
2016-04-01 10:13 ` Roman Kagan
@ 2016-04-01 14:12 ` Michael Roth
2016-04-01 20:28 ` KY Srinivasan
4 siblings, 0 replies; 7+ messages in thread
From: Michael Roth @ 2016-04-01 14:12 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
Cc: Eduardo Habkost, qemu-stable, Alex Williamson, Roman Kagan,
Denis V. Lunev, KY Srinivasan, Andreas Färber
Quoting Paolo Bonzini (2016-04-01 03:18:02)
> Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
> we want in the Hyper-V vendor signature, let's show some love too!
This might actually fix GPU passthrough for Nvidia cards when Hyper-V is
enabled.
Cc'ing qemu-stable@nongnu.org
>
> Cc: Andreas Färber <afaerber@suse.de>
> Cc: Alex Williamson <alex.williamson@redhat.com>
> Cc: Denis V. Lunev <den@openvz.org>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: Roman Kagan <rkagan@virtuozzo.com>
> Cc: KY Srinivasan <kys@microsoft.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target-i386/kvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 799fdfa..1968f04 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
> c = &cpuid_data.entries[cpuid_i++];
> c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
> if (!cpu->hyperv_vendor_id) {
> - memcpy(signature, "Microsoft Hv", 12);
> + memcpy(signature, "KVM<3HyperV!", 12);
> } else {
> size_t len = strlen(cpu->hyperv_vendor_id);
>
> --
> 2.5.5
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V!
2016-04-01 8:18 [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V! Paolo Bonzini
` (3 preceding siblings ...)
2016-04-01 14:12 ` Michael Roth
@ 2016-04-01 20:28 ` KY Srinivasan
4 siblings, 0 replies; 7+ messages in thread
From: KY Srinivasan @ 2016-04-01 20:28 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel@nongnu.org
Cc: Denis V. Lunev, Alex Williamson, Roman Kagan, Andreas Färber,
Eduardo Habkost
> -----Original Message-----
> From: Paolo Bonzini [mailto:paolo.bonzini@gmail.com] On Behalf Of Paolo
> Bonzini
> Sent: Friday, April 1, 2016 1:18 AM
> To: qemu-devel@nongnu.org
> Cc: Andreas Färber <afaerber@suse.de>; Alex Williamson
> <alex.williamson@redhat.com>; Denis V. Lunev <den@openvz.org>;
> Eduardo Habkost <ehabkost@redhat.com>; Roman Kagan
> <rkagan@virtuozzo.com>; KY Srinivasan <kys@microsoft.com>
> Subject: [PATCH for-2.6] target-i386: KVM loves Hyper-V!
>
> Microsoft loves Linux, and Red Hat loves .NET. Since we can put whatever
> we want in the Hyper-V vendor signature, let's show some love too!
It is Spring; love is in the air!
K. Y
>
> Cc: Andreas Färber <afaerber@suse.de>
> Cc: Alex Williamson <alex.williamson@redhat.com>
> Cc: Denis V. Lunev <den@openvz.org>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: Roman Kagan <rkagan@virtuozzo.com>
> Cc: KY Srinivasan <kys@microsoft.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> target-i386/kvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 799fdfa..1968f04 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
> c = &cpuid_data.entries[cpuid_i++];
> c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
> if (!cpu->hyperv_vendor_id) {
> - memcpy(signature, "Microsoft Hv", 12);
> + memcpy(signature, "KVM<3HyperV!", 12);
> } else {
> size_t len = strlen(cpu->hyperv_vendor_id);
>
> --
> 2.5.5
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-04-01 21:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01 8:18 [Qemu-devel] [PATCH for-2.6] target-i386: KVM loves Hyper-V! Paolo Bonzini
2016-04-01 8:36 ` Denis V. Lunev
2016-04-01 8:58 ` Daniel P. Berrange
2016-04-01 9:06 ` Paolo Bonzini
2016-04-01 10:13 ` Roman Kagan
2016-04-01 14:12 ` Michael Roth
2016-04-01 20:28 ` KY Srinivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).