Hyper-V TODO file
Subsystems (3)
Greg,
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Regards,
K. Y
Quoted 3 lines · K. Y. Srinivasan
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Is there really anything left to do but send
the patch that moves hv out of staging?
Quoted 6 lines · K. Y. Srinivasan
Greg,
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Yes, please send patches.
Quoted 12 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Thursday, September 22, 2011 1:05 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 1 line · K. Y. Srinivasan
Quoted 7 lines
Quoted 5 lines
Greg,
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Yes, please send patches.
Thanks Greg. In addition to the patch to update the TODO file, do you want me to send you patches for moving the vmbus and util driver out of staging as well.
Regards,
K. Y
Quoted 14 lines · KY Srinivasan
Quoted 14 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Thursday, September 22, 2011 1:05 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 3 lines · K. Y. Srinivasan
Greg,
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Yes, please send patches.
Thanks Greg. In addition to the patch to update the TODO file, do you want me to send you patches for moving the vmbus and util driver out of staging as well.
No, I'll do that if we agree that it is ready to do so.
thanks,
greg k-h
Quoted 29 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Thursday, September 22, 2011 1:36 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 18 lines · KY Srinivasan
Quoted 18 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Thursday, September 22, 2011 1:05 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 6 lines · K. Y. Srinivasan
Greg,
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, please send patches.
Thanks Greg. In addition to the patch to update the TODO file, do you want me
to
Quoted 1 line
send you patches for moving the vmbus and util driver out of staging as well.
No, I'll do that if we agree that it is ready to do so.
Fair enough! When you said earlier " Yes, please send patches", I naturally assumed that you meant more than a single patch required to update the TODO file. I must admit that there was also a good measure of wishful thinking on my part as well!
Regards,
K. Y
Quoted 29 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Thursday, September 22, 2011 1:36 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 18 lines · KY Srinivasan
Quoted 18 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Thursday, September 22, 2011 1:05 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 6 lines · K. Y. Srinivasan
Greg,
With your last checkin of the patches for Hyper-V, I have addressed all of the issues you had raised as part of the vmbus audit. Should I send you a patch to update the TODO file to reflect this. Let me know.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, please send patches.
Thanks Greg. In addition to the patch to update the TODO file, do you want me
to
Quoted 1 line
send you patches for moving the vmbus and util driver out of staging as well.
No, I'll do that if we agree that it is ready to do so.
Greg, sometime back you checked in the changes to the TODO file reflecting that there are no outstanding vmbus related issues. What is the process now for getting the vmbus (and util) drivers out of staging. Let me know if there is something I can do to help this along. As you know, we had posted the network driver for public review a while ago (several months ago) and we have addressed all the review comments we got. Any guidance on what we should do next would be greatly appreciated.
Regards,
K. Y
Quoted 7 lines · KY Srinivasan
Greg, sometime back you checked in the changes to the TODO file reflecting that there are no outstanding vmbus related issues. What is the process now for getting the vmbus (and util) drivers out of staging. Let me know if there is something I can do to help this along. As you know, we had posted the network driver for public review a while ago (several months ago) and we have addressed all the review comments we got. Any guidance on what we should do next would be greatly appreciated.
At this point in time, just ask me, and I will move the files.
So, to confirm, you want to have the following files moved to drivers/hv/:
drivers/staging/hv/Kconfig (part of this file) drivers/staging/hv/Makefile (part of this file) drivers/staging/hv/vmbus_drv.c drivers/staging/hv/hv.c drivers/staging/hv/connection.c drivers/staging/hv/channel.c drivers/staging/hv/channel_mgmt.c drivers/staging/hv/ring_buffer.c drivers/staging/hv/hv_util.c drivers/staging/hv/hv_kmp.c drivers/staging/hv/hv_kvp.h drivers/staging/hv/hyperv_vmbus.h
The following file moved to include/linux/:
drivers/staging/hv/hyperv.h
(I think there is stuff in there that can go into hyperv_vmbus.h as it's not needed in the "global" directory, but I can do that movement.)
The following file moved to tools/hv/:
drivers/staging/hv/tools/*
And the following files modified to tie drivers/hv/ into the build service:
drivers/Makefile
drivers/Kconfig
Is all of that correct?
thanks,
greg k-h
Quoted 24 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, October 04, 2011 1:04 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: Hyper-V TODO fileQuoted 4 lines · KY Srinivasan
Greg, sometime back you checked in the changes to the TODO file reflecting that there are no outstanding vmbus related issues. What is the process now for getting the vmbus (and util) drivers out of staging. Let me know if there is something I can do to help this along. As you know, we had posted the
network
Quoted 1 line
driver for public review a while ago (several months ago) and we have
addressed
Quoted 1 line
all the review comments we got. Any guidance on what we should do next
would be
Quoted 1 line
greatly appreciated.
At this point in time, just ask me, and I will move the files.
Quoted 12 lines
So, to confirm, you want to have the following files moved to
drivers/hv/:
drivers/staging/hv/Kconfig(part of this file)drivers/staging/hv/Makefile(part of this file)drivers/staging/hv/vmbus_drv.cdrivers/staging/hv/hv.cdrivers/staging/hv/connection.cdrivers/staging/hv/channel.cdrivers/staging/hv/channel_mgmt.cdrivers/staging/hv/ring_buffer.cdrivers/staging/hv/hv_util.cdrivers/staging/hv/hv_kmp.c
This is hv_kvp.c
Quoted 3 lines
drivers/staging/hv/hv_kvp.h
drivers/staging/hv/hyperv_vmbus.h
Yes; this would be the list of files to be moved to drivers/hv/
Quoted 5 lines
The following file moved to
include/linux/:
drivers/staging/hv/hyperv.h
(I think there is stuff in there that can go intohyperv_vmbus.has it's not needed in the "global" directory, but I can do that movement.)
Correct.
Quoted 9 lines
The following file moved to
tools/hv/:
drivers/staging/hv/tools/*And the following files modified to tie
drivers/hv/into the build service:
drivers/Makefile
drivers/KconfigIs all of that correct?
Yes; the list you have is correct. Thanks a lot for doing this.
Regards,
K. Y
Move hyperv out of the drivers/staging/ directory
KY, how about the following patch?
Any objection from the virt developers about this?
KY, I'd like to get your signed-off-by before committing this, care to test this out and pass it around the other hyperv developers and then sign off on it? Then I will be glad to commit this to my tree.
thanks,
greg k-h
From 82a986ecb50f336751dc18370a0ec61f2d3002db Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <[email protected]>
Date: Tue, 4 Oct 2011 12:29:52 -0700
Subject: Staging: hv: move hyperv code out of staging directory
After many years wandering the desert, it is finally time for the Microsoft HyperV code to move out of the staging directory. Or at least the core hyperv bus code, and the utility driver, the rest still have some review to get through by the various subsystem maintainers.
---
drivers/Kconfig | 2 +
drivers/Makefile | 2 +
drivers/hv/Kconfig | 14 ++++++++++
drivers/hv/Makefile | 7 +++++
drivers/{staging => }/hv/channel.c | 2 +-
drivers/{staging => }/hv/channel_mgmt.c | 2 +-
drivers/{staging => }/hv/connection.c | 2 +-
drivers/{staging => }/hv/hv.c | 2 +-
drivers/{staging => }/hv/hv_kvp.c | 2 +-
drivers/{staging => }/hv/hv_kvp.h | 0
drivers/{staging => }/hv/hv_util.c | 2 +-
drivers/{staging => }/hv/hyperv_vmbus.h | 3 +-
drivers/{staging => }/hv/ring_buffer.c | 2 +-
drivers/{staging => }/hv/vmbus_drv.c | 2 +-
drivers/staging/hv/Kconfig | 28 ++-----------------
drivers/staging/hv/Makefile | 7 +----
drivers/staging/hv/hv_mouse.c | 3 +-
drivers/staging/hv/hyperv_net.h | 2 +-
drivers/staging/hv/storvsc_drv.c | 2 +-
{drivers/staging/hv => include/linux}/hyperv.h | 0
.../staging/hv/tools => tools/hv}/hv_kvp_daemon.c | 0
21 files changed, 41 insertions(+), 45 deletions(-)
create mode 100644 drivers/hv/Kconfig
create mode 100644 drivers/hv/Makefile
rename drivers/{staging => }/hv/channel.c (99%)
rename drivers/{staging => }/hv/channel_mgmt.c (99%)
rename drivers/{staging => }/hv/connection.c (99%)
rename drivers/{staging => }/hv/hv.c (99%)
rename drivers/{staging => }/hv/hv_kvp.c (99%)
rename drivers/{staging => }/hv/hv_kvp.h (100%)
rename drivers/{staging => }/hv/hv_util.c (99%)
rename drivers/{staging => }/hv/hyperv_vmbus.h (99%)
rename drivers/{staging => }/hv/ring_buffer.c (99%)
rename drivers/{staging => }/hv/vmbus_drv.c (99%)
rename {drivers/staging/hv => include/linux}/hyperv.h (100%)
rename {drivers/staging/hv/tools => tools/hv}/hv_kvp_daemon.c (100%)drivers/Kconfig +2 -0
@@ -130,4 +130,6 @@ source "drivers/iommu/Kconfig" source "drivers/virt/Kconfig" +source "drivers/hv/Kconfig" + endmenu
drivers/Makefile +2 -0
@@ -127,3 +127,5 @@ obj-$(CONFIG_IOMMU_SUPPORT) += iommu/ # Virtualization drivers obj-$(CONFIG_VIRT_DRIVERS) += virt/ +obj-$(CONFIG_HYPERV) += hv/ +
drivers/hv/Kconfig new file +14 -0
@@ -0,0 +1,14 @@ +config HYPERV + tristate "Microsoft Hyper-V client drivers" + depends on X86 && ACPI && PCI + help + Select this option to run Linux as a Hyper-V client operating + system. + +config HYPERV_UTILS + tristate "Microsoft Hyper-V Utilities driver" + depends on HYPERV && CONNECTOR && NLS + help + Select this option to enable the Hyper-V Utilities. + +
drivers/hv/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +obj-$(CONFIG_HYPERV) += hv_vmbus.o +obj-$(CONFIG_HYPERV_UTILS) += hv_utils.o + +hv_vmbus-y := vmbus_drv.o \ + hv.o connection.o channel.o \ + channel_mgmt.o ring_buffer.o +hv_utils-y := hv_util.o hv_kvp.o
drivers/hv/channel.c renamed from drivers/staging/hv/channel.c +1 -1
@@ -26,8 +26,8 @@#include <linux/mm.h> #include <linux/slab.h> #include <linux/module.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hyperv_vmbus.h" #define NUM_PAGES_SPANNED (addr, len) \
drivers/hv/channel_mgmt.c renamed from drivers/staging/hv/channel_mgmt.c +1 -1
@@ -28,8 +28,8 @@#include <linux/list.h> #include <linux/module.h> #include <linux/completion.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hyperv_vmbus.h" struct vmbus_channel_message_table_entry {
drivers/hv/connection.c renamed from drivers/staging/hv/connection.c +1 -1
@@ -29,8 +29,8 @@#include <linux/mm.h> #include <linux/slab.h> #include <linux/vmalloc.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hyperv_vmbus.h"
drivers/hv/hv.c renamed from drivers/staging/hv/hv.c +1 -1
@@ -25,8 +25,8 @@#include <linux/mm.h> #include <linux/slab.h> #include <linux/vmalloc.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hyperv_vmbus.h" /* The one and only */
drivers/hv/hv_kvp.c renamed from drivers/staging/hv/hv_kvp.c +1 -1
@@ -26,8 +26,8 @@#include <linux/nls.h> #include <linux/connector.h> #include <linux/workqueue.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hv_kvp.h"
drivers/hv/hv_kvp.h renamed from drivers/staging/hv/hv_kvp.h +0 -0
drivers/hv/hv_util.c renamed from drivers/staging/hv/hv_util.c +1 -1
@@ -26,8 +26,8 @@#include <linux/slab.h> #include <linux/sysctl.h> #include <linux/reboot.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hv_kvp.h"
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1 -2
@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
drivers/hv/ring_buffer.c renamed from drivers/staging/hv/ring_buffer.c +1 -1
@@ -25,8 +25,8 @@#include <linux/kernel.h> #include <linux/mm.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hyperv_vmbus.h"
drivers/hv/vmbus_drv.c renamed from drivers/staging/hv/vmbus_drv.c +1 -1
@@ -32,8 +32,8 @@#include <linux/acpi.h> #include <acpi/acpi_bus.h> #include <linux/completion.h> +#include <linux/hyperv.h> -#include "hyperv.h" #include "hyperv_vmbus.h"
drivers/staging/hv/Kconfig +3 -25
@@ -1,39 +1,17 @@ -config HYPERV - tristate "Microsoft Hyper-V client drivers" - depends on X86 && ACPI && PCI - default n - help - Select this option to run Linux as a Hyper-V client operating - system. - -if HYPERV - config HYPERV_STORAGE tristate "Microsoft Hyper-V virtual storage driver" - depends on SCSI - default HYPERV + depends on HYPERV && SCSI help Select this option to enable the Hyper-V virtual storage driver. config HYPERV_NET tristate "Microsoft Hyper-V virtual network driver" - depends on NET - default HYPERV + depends on HYPERV && NET help Select this option to enable the Hyper-V virtual network driver. -config HYPERV_UTILS - tristate "Microsoft Hyper-V Utilities driver" - depends on CONNECTOR && NLS - default HYPERV - help - Select this option to enable the Hyper-V Utilities. - config HYPERV_MOUSE tristate "Microsoft Hyper-V mouse driver" - depends on HID - default HYPERV + depends on HYPERV && HID help Select this option to enable the Hyper-V mouse driver. - -endif
drivers/staging/hv/Makefile +1 -6
@@ -1,12 +1,7 @@ -obj-$(CONFIG_HYPERV) += hv_vmbus.o hv_timesource.o +obj-$(CONFIG_HYPERV) += hv_timesource.o obj-$(CONFIG_HYPERV_STORAGE) += hv_storvsc.o obj-$(CONFIG_HYPERV_NET) += hv_netvsc.o -obj-$(CONFIG_HYPERV_UTILS) += hv_utils.o obj-$(CONFIG_HYPERV_MOUSE) += hv_mouse.o -hv_vmbus-y := vmbus_drv.o \ - hv.o connection.o channel.o \ - channel_mgmt.o ring_buffer.o hv_storvsc-y := storvsc_drv.o hv_netvsc-y := netvsc_drv.o netvsc.o rndis_filter.o -hv_utils-y := hv_util.o hv_kvp.o
drivers/staging/hv/hv_mouse.c +1 -2
@@ -22,8 +22,7 @@#include <linux/input.h> #include <linux/hid.h> #include <linux/hiddev.h> - -#include "hyperv.h" +#include <linux/hyperv.h> struct hv_input_dev_info {
drivers/staging/hv/hyperv_net.h +1 -1
@@ -26,7 +26,7 @@#define _HYPERV_NET_H#include <linux/list.h> -#include "hyperv.h" +#include <linux/hyperv.h> /* Fwd declaration */ struct hv_netvsc_packet ;
drivers/staging/hv/storvsc_drv.c +1 -1
@@ -31,6 +31,7 @@#include <linux/slab.h> #include <linux/module.h> #include <linux/device.h> +#include <linux/hyperv.h> #include <scsi/scsi.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_host.h>
@@ -40,7 +41,6 @@#include <scsi/scsi_devinfo.h> #include <scsi/scsi_dbg.h> -#include "hyperv.h" #define STORVSC_RING_BUFFER_SIZE (20*PAGE_SIZE)static int storvsc_ringbuffer_size =STORVSC_RING_BUFFER_SIZE ;
include/linux/hyperv.h renamed from drivers/staging/hv/hyperv.h +0 -0
tools/hv/hv_kvp_daemon.c renamed from drivers/staging/hv/tools/hv_kvp_daemon.c +0 -0
Signature · 1 line
1.7.6.4
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel
RE: Move hyperv out of the drivers/staging/ directory
Quoted 11 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, October 04, 2011 3:34 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Move hyperv out of thedrivers/staging/directoryKY, how about the following patch?
Looks good Greg. This morning Thomas informed me that he has checked in my patch to integrate the time source driver with the Hyper-V detection code. Thomas indicated that this patch has been applied to the tip already. How will this be reflected in the staging tree?
Quoted 6 lines
Any objection from the virt developers about this?
KY, I'd like to get your signed-off-by before committing this, care to test this out and pass it around the other hyperv developers and then sign off on it? Then I will be glad to commit this to my tree.
I have started the test cycle; I will let you know shortly what we discover.
Regards,
K. Y
RE: Move hyperv out of the drivers/staging/ directory
In reply to Greg KHQuoted 10 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Tuesday, October 04, 2011 3:34 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]
Subject: Move hyperv out of thedrivers/staging/directory
Quoted 7 lines
KY, how about the following patch?
Any objection from the virt developers about this?
KY, I'd like to get your signed-off-by before committing this, care to test this out and pass it around the other hyperv developers and then sign off on it? Then I will be glad to commit this to my tree.
We completed the testing and everything is functional. Here is my sign-off:
Regards,
K. Y
Quoted 5 lines
thanks,
greg k-h
0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Greg KHIl 04/10/2011 21:34, Greg KH ha scritto:
Quoted 8 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +0
-0
drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
+#define HV_LINUX_GUEST_ID_LO 0x00000000
+#define HV_LINUX_GUEST_ID_HI 0xB16B00B5
+#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI << 32) | \
+ HV_LINUX_GUEST_ID_LO)
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
Paolo
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 40 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Il 04/10/2011 21:34, Greg KH ha scritto:
Quoted 8 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +0
-0drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)
Quoted 4 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
It is still early in the morning here and pardon me if I am not seeing the issue. Could you elaborate on what you want changed and why. This is a guest signature that is stashed away in the hypervisor and perhaps can be retrieved by the host. Other than that, this is not used anywhere else. MSFT has defined a a namespace for guest IDs and while some ranges are reserved for MSFT operating systems, there really is nothing special about the guest ID.
Regards,
K. Y
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Il 13/07/2012 15:13, KY Srinivasan ha scritto:
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
It is still early in the morning here and pardon me if I am not seeing the issue.
[offlist]
0xB16B00B5 = big boobs
Paolo
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 15 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]]
Sent: Friday, July 13, 2012 9:15 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Il 13/07/2012 15:13, KY Srinivasan ha scritto:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Somone was trying to be funny, I guess.
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
KY, I suppose you have access to Hyper-V code or can ask someone who
does.
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Is this signature actually used in the Hyper-V host code?
It is still early in the morning here and pardon me if I am not seeing the issue.
[offlist]
0xB16B00B5= big boobs
Ok! I don't know how easy it is to change this. If I remember correctly, I think on our Cloud (Azure), the guest ID may be currently used in our management stack.
Regards,
K. Y
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Paolo BonziniQuoted 11 lines · Paolo Bonzini
Il 13/07/2012 15:13, KY Srinivasan ha scritto:
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
It is still early in the morning here and pardon me if I am not seeing the issue.
[offlist]
0xB16B00B5= big boobs
LOL! You can't make this stuff up!
:-)
Signature · 2 lines
Regards/Gruss, Boris.
PATCH 1/1 hv: Change the guest ID value
In reply to Paolo BonziniIf I have to explain this I'm going to be very sad.
--- drivers/hv/hyperv_vmbus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/hyperv_vmbus.h +1 -1
@@ -411,7 +411,7 @@ enum {#define HV_PRESENT_BIT 0x80000000#define HV_LINUX_GUEST_ID_LO 0x00000000 -#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID_HI 0x0DEFACED#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI << 32) | \ HV_LINUX_GUEST_ID_LO)
Signature · 1 line
1.7.10.4
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Borislav PetkovQuoted 10 lines · Borislav Petkov
Quoted 9 lines · Paolo Bonzini
Il 13/07/2012 15:13, KY Srinivasan ha scritto:
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
It is still early in the morning here and pardon me if I am not seeing the issue.
[offlist]
I guess not :-)
Quoted 5 lines
Quoted 2 lines
0xB16B00B5= big boobsLOL! You can't make this stuff up!
I guess that's why it's in a file called hyPERV_vmbus. ;-)
-- Steve
RE: 2976579765? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to KY SrinivasanQuoted 1 line · KY Srinivasan
Ok! I don't know how easy it is to change this.
I'd say nothing could possibly break if you just changed that line to
#define HV_LINUX_GUEST_ID_HI 2976579765
(Not that I, somehow, tested this.)
Paul Bolle
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Steven RostedtQuoted 1 line · Steven Rostedt
I guess that's why it's in a file called
hyPERV_vmbus. ;-)
Ladies and gentlemen, Steve can see nastyness in an arbitrary ASCII string.
8-).
Signature · 2 lines
Regards/Gruss,
Boris.RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Paolo BonziniQuoted 40 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Il 04/10/2011 21:34, Greg KH ha scritto:
Quoted 8 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +0
-0drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)
Quoted 4 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I would like to apologize for this offensive string. I have submitted a patch to fix this issue.
Regards,
K. Y
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 4 lines · KY Srinivasan
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I would like to apologize for this offensive string. I have submitted a patch to fix this issue.
Ok, quick question:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff542653%28v=vs.85%29.aspx
says that that guest ID encodes a bunch of version numbers and IDs pertaining to the guest OS. And in that case, I would've thought you'd encode kernel versions or whatever like it is done with LINUX_VERSION_CODE, for example.
How does this define fit with that scheme or was it chosen completely arbitrarily?
Thanks.
Signature · 2 lines
Regards/Gruss, Boris.
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 23 lines
-----Original Message-----
From: Borislav Petkov [mailto:[email protected]]
Sent: Thursday, July 19, 2012 11:30 AM
To: KY Srinivasan
Cc: Paolo Bonzini; Greg KH ([email protected]); [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 4 lines · KY Srinivasan
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I would like to apologize for this offensive string. I have submitted a patch to fix this issue.
Ok, quick question:
http://msdn.microsoft.com/en-
us/library/windows/hardware/ff542653%28v=vs.85%29.aspx
Quoted 7 lines
says that that guest ID encodes a bunch of version numbers and IDs pertaining to the guest OS. And in that case, I would've thought you'd encode kernel versions or whatever like it is done with
LINUX_VERSION_CODE, for example.How does this define fit with that scheme or was it chosen completely arbitrarily?
From what I know, this constant was chosen I think, completely arbitrarily. Currently, the hypervisor does not interpret this, however the host partition can retrieve it.
Regards,
K. Y
Greg KH ([email protected])
maintainerRe: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to KY SrinivasanQuoted 42 lines · KY Srinivasan
Quoted 42 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Il 04/10/2011 21:34, Greg KH ha scritto:
Quoted 8 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +0
-0drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)Somone was trying to be funny, I guess.
Quoted 8 lines
Quoted 2 lines
KY, I suppose you have access to Hyper-V code or can ask someone who does. Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I would like to apologize for this offensive string. I have submitted a patch to fix this issue.
You only changed it to be in decimal, you did not change the id at all. Is there some reason why you can not change it? You said there was a reserved range of ids that could be used, perhaps just pick another one? What is the valid range that can be used here?
thanks,
greg k-h
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 66 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 5:07 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 10 lines · KY Srinivasan
Quoted 10 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of the
drivers/staging/Quoted 4 lines
Quoted 4 lines
directory)
Il 04/10/2011 21:34, Greg KH ha scritto:
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/hv/hyperv_vmbus.hQuoted 26 lines
Quoted 26 lines
Quoted 7 lines
similarity index 99%
rename fromdrivers/staging/hv/hyperv_vmbus.h
rename todrivers/hv/hyperv_vmbus.h
index 3d2d836..8261cb6 100644drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)Quoted 3 lines
Quoted 3 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who
does.
Quoted 7 lines
Quoted 1 line
Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I would like to apologize for this offensive string. I have submitted a patch to fix this
Quoted 6 lines
issue.
You only changed it to be in decimal, you did not change the id at all. Is there some reason why you can not change it? You said there was a reserved range of ids that could be used, perhaps just pick another one? What is the valid range that can be used here?
Greg,
As you know, this ID has been in use for a long time now. While the hypervisor does not interpret the guest ID that is registered, I am not sure what dependencies there might be on this value. That is the reason I am reluctant to change the value. Since the hex representation of this constant was what was offensive, changing it to a decimal number would not break anything while simultaneously addressing the issue Paolo brought up.
Regards,
K. Y
Greg KH ([email protected])
maintainerRe: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 73 lines · KY Srinivasan
Quoted 66 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 5:07 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 10 lines · KY Srinivasan
Quoted 10 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of the
drivers/staging/Quoted 4 lines
Quoted 4 lines
directory)
Il 04/10/2011 21:34, Greg KH ha scritto:
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/hv/hyperv_vmbus.hQuoted 26 lines
Quoted 26 lines
Quoted 7 lines
similarity index 99%
rename fromdrivers/staging/hv/hyperv_vmbus.h
rename todrivers/hv/hyperv_vmbus.h
index 3d2d836..8261cb6 100644drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)Quoted 3 lines
Quoted 3 lines
Somone was trying to be funny, I guess.
KY, I suppose you have access to Hyper-V code or can ask someone who
does.
Quoted 7 lines
Quoted 1 line
Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I would like to apologize for this offensive string. I have submitted a patch to fix this
Quoted 6 lines
issue.
You only changed it to be in decimal, you did not change the id at all. Is there some reason why you can not change it? You said there was a reserved range of ids that could be used, perhaps just pick another one? What is the valid range that can be used here?
Quoted 5 lines
Greg,
As you know, this ID has been in use for a long time now. While the hypervisor does not interpret the guest ID that is registered, I am not sure what dependencies there might be on this value.
Could you please go find out the answer to this?
If, as you originally stated, there is a range of values we can use, then we should probably use another one, right?
thanks,
greg k-h
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 88 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 6:02 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 8 lines · KY Srinivasan
Quoted 8 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 5:07 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; linux-Quoted 49 lines
Quoted 49 lines
[email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 10 lines · KY Srinivasan
Quoted 10 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of the
drivers/staging/Quoted 4 lines
Quoted 4 lines
directory)
Il 04/10/2011 21:34, Greg KH ha scritto:
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/hv/hyperv_vmbus.hQuoted 28 lines
Quoted 28 lines
Quoted 7 lines
similarity index 99%
rename fromdrivers/staging/hv/hyperv_vmbus.h
rename todrivers/hv/hyperv_vmbus.h
index 3d2d836..8261cb6 100644drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)Somone was trying to be funny, I guess.
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
KY, I suppose you have access to Hyper-V code or can ask someone who
does.
Quoted 6 lines
Quoted 1 line
Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I
would
Quoted 8 lines
Quoted 7 lines
Quoted 1 line
like to apologize for this offensive string. I have submitted a patch to fix this
issue.
You only changed it to be in decimal, you did not change the id at all. Is there some reason why you can not change it? You said there was a reserved range of ids that could be used, perhaps just pick another one? What is the valid range that can be used here?
Quoted 8 lines
Quoted 4 lines
Greg,
As you know, this ID has been in use for a long time now. While the hypervisor does not interpret the guest ID that is registered, I am not sure what
dependencies
Quoted 1 line
there might be on this value.
Could you please go find out the answer to this?
That is easier said than done. I have sent emails out asking this very question and I have not received a definitive answer yet. Not knowing if and when I can get a definitive answer here, I chose the least risky approach in my patch.
Quoted 3 lines
If, as you originally stated, there is a range of values we can use, then we should probably use another one, right?
On the Windows side this ID namespace is managed well. However on the Linux side, we have really had this current ID in use for almost five years now. I am not aware of any pool of IDs available for Linux usage except that Linux IDs be distinct from the guest IDs in use by MSFT operating systems. If I were to change the guest ID, I would probably want to comply with the MSFT guidance on constructing these IDs (although not all fields may be relevant for Linux).
Regards,
K. Y
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 104 lines · KY Srinivasan
Quoted 88 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 6:02 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 8 lines · KY Srinivasan
Quoted 8 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 5:07 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; linux-Quoted 49 lines
Quoted 49 lines
[email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 10 lines · KY Srinivasan
Quoted 10 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf Of Paolo Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; [email protected]; [email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of the
drivers/staging/Quoted 4 lines
Quoted 4 lines
directory)
Il 04/10/2011 21:34, Greg KH ha scritto:
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/hv/hyperv_vmbus.hQuoted 28 lines
Quoted 28 lines
Quoted 7 lines
similarity index 99%
rename fromdrivers/staging/hv/hyperv_vmbus.h
rename todrivers/hv/hyperv_vmbus.h
index 3d2d836..8261cb6 100644drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)Somone was trying to be funny, I guess.
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
KY, I suppose you have access to Hyper-V code or can ask someone who
does.
Quoted 6 lines
Quoted 1 line
Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with the hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I
would
Quoted 8 lines
Quoted 7 lines
Quoted 1 line
like to apologize for this offensive string. I have submitted a patch to fix this
issue.
You only changed it to be in decimal, you did not change the id at all. Is there some reason why you can not change it? You said there was a reserved range of ids that could be used, perhaps just pick another one? What is the valid range that can be used here?
Quoted 8 lines
Quoted 4 lines
Greg,
As you know, this ID has been in use for a long time now. While the hypervisor does not interpret the guest ID that is registered, I am not sure what
dependencies
Quoted 1 line
there might be on this value.
Could you please go find out the answer to this?
That is easier said than done. I have sent emails out asking this very question and I have not received a definitive answer yet. Not knowing if and when I can get a definitive answer here, I chose the least risky approach in my patch.
Quoted 3 lines
If, as you originally stated, there is a range of values we can use, then we should probably use another one, right?
Quoted 6 lines
On the Windows side this ID namespace is managed well. However on the Linux side, we have really had this current ID in use for almost five years now. I am not aware of any pool of IDs available for Linux usage except that Linux IDs be distinct from the guest IDs in use by MSFT operating systems. If I were to change the guest ID, I would probably want to comply with the MSFT guidance on constructing these IDs (although not all fields may be relevant for Linux).
Presumably, Hyper-V can deal with unexpected values here, no? Otherwise, it wouldn't be future proof against new types of guests.
So worst case scenario, Hyper-V disables optimizations on Linux guests that report then new ID until they patch Hyper-V to know about the new ID.
That seems like a reasonable trade off to me. I'm sure there's sufficient incentive to patch Hyper-V for this at Microsoft...
Regards,
Anthony Liguori
Quoted 7 lines
Regards,
K. Y
Greg KH ([email protected])
maintainerRe: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to KY SrinivasanQuoted 10 lines · KY Srinivasan
Quoted 6 lines
Quoted 2 lines
As you know, this ID has been in use for a long time now. While the hypervisor does not interpret the guest ID that is registered, I am not sure what
dependencies
Quoted 1 line
there might be on this value.
Could you please go find out the answer to this?
That is easier said than done. I have sent emails out asking this very question and I have not received a definitive answer yet. Not knowing if and when I can get a definitive answer here, I chose the least risky approach in my patch.
What happens if you test with different values?
Quoted 4 lines
Quoted 2 lines
If, as you originally stated, there is a range of values we can use, then we should probably use another one, right?
On the Windows side this ID namespace is managed well.
It is? How is this managed? What does this tell the hypervisor? What changes with the different values?
Quoted 6 lines
However on the Linux side, we have really had this current ID in use for almost five years now. I am not aware of any pool of IDs available for Linux usage except that Linux IDs be distinct from the guest IDs in use by MSFT operating systems. If I were to change the guest ID, I would probably want to comply with the MSFT guidance on constructing these IDs (although not all fields may be relevant for Linux).
What are those rules?
thanks,
greg k-h
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Anthony LiguoriQuoted 131 lines
-----Original Message-----
From: Anthony Liguori [mailto:[email protected]]
Sent: Thursday, July 19, 2012 7:18 PM
To: KY Srinivasan
Cc: Greg KH ([email protected]); Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 8 lines · KY Srinivasan
Quoted 8 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 6:02 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; linux-Quoted 18 lines
Quoted 18 lines
[email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 8 lines · KY Srinivasan
Quoted 8 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 5:07 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; linux-Quoted 4 lines
Quoted 4 lines
[email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · KY Srinivasan
Quoted 4 lines
Quoted 4 lines
-----Original Message-----
From: Paolo Bonzini [mailto:[email protected]] On Behalf OfPaolo
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Bonzini
Sent: Friday, July 13, 2012 6:23 AM
To: KY Srinivasan
Cc: Greg KH; [email protected]; linux-Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 2 lines
Quoted 2 lines
[email protected]
Subject:0xB16B00B5? Really? (was Re: Move hyperv out of the
drivers/staging/Quoted 4 lines
Quoted 4 lines
directory)
Il 04/10/2011 21:34, Greg KH ha scritto:
Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/hv/hyperv_vmbus.hQuoted 18 lines
Quoted 18 lines
Quoted 7 lines
similarity index 99%
rename fromdrivers/staging/hv/hyperv_vmbus.h
rename todrivers/hv/hyperv_vmbus.h
index 3d2d836..8261cb6 100644drivers/hv/hyperv_vmbus.h line 34
Quoted 9 lines
drivers/hv/hyperv_vmbus.h renamed from drivers/staging/hv/hyperv_vmbus.h +1
-2@@ -28,8 +28,7 @@#include <linux/list.h> #include <asm/sync_bitops.h> #include <linux/atomic.h> - -#include "hyperv.h" +#include <linux/hyperv.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Review
Quoted 5 lines
git's rename detection snips away this gem:
(quoted diff) +3
-0+#define HV_LINUX_GUEST_ID_LO 0x00000000 +#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 +#define HV_LINUX_GUEST_ID(((u64)HV_LINUX_GUEST_ID_HIQuoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
<< 32) | \
(quoted diff) +1
-0+ HV_LINUX_GUEST_ID_LO)Somone was trying to be funny, I guess.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
KY, I suppose you have access to Hyper-V code or can ask someone who
does.
Quoted 5 lines
Quoted 1 line
Is this signature actually used in the Hyper-V host code?
Paolo,
As I noted earlier, this is just a guest ID that needs to be registered with
the
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
hypervisor. Thanks for reporting this issue and on behalf of Microsoft, I
would
Quoted 1 line
Quoted 1 line
Quoted 1 line
like to apologize for this offensive string. I have submitted a patch to fix
this
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
issue.
You only changed it to be in decimal, you did not change the id at all. Is there some reason why you can not change it? You said there was a reserved range of ids that could be used, perhaps just pick another one? What is the valid range that can be used here?
Greg,
As you know, this ID has been in use for a long time now. While the
hypervisor
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
does not interpret the guest ID that is registered, I am not sure what
dependencies
Quoted 1 line
there might be on this value.
Could you please go find out the answer to this?
That is easier said than done. I have sent emails out asking this very question
and I have
Quoted 1 line
not received a definitive answer yet. Not knowing if and when I can get a
definitive
Quoted 7 lines
answer here, I chose the least risky approach in my patch.
Quoted 3 lines
If, as you originally stated, there is a range of values we can use, then we should probably use another one, right?
On the Windows side this ID namespace is managed well. However on the Linux side, we have really had this current ID in use for almost five years now. I am
not
Quoted 1 line
aware of any pool of IDs available for Linux usage except that Linux IDs be
distinct from
Quoted 8 lines
Quoted 1 line
the guest IDs in use by MSFT operating systems. If I were to change the guest
ID, I would
Quoted 1 line
probably want to comply with the MSFT guidance on constructing these IDs
(although not
Quoted 1 line
all fields may be relevant for Linux).
Presumably, Hyper-V can deal with unexpected values here, no? Otherwise, it wouldn't be future proof against new types of guests.
Anthony,
As I noted earlier, the current versions of MSFT hypervisors don't interpret the guest ID value although future versions might. However, this ID may be retrieved from the parent partition and can be used by the management stack (today).
Quoted 6 lines
So worst case scenario, Hyper-V disables optimizations on Linux guests that report then new ID until they patch Hyper-V to know about the new ID.
That seems like a reasonable trade off to me. I'm sure there's sufficient incentive to patch Hyper-V for this at Microsoft...
This is something I want to do once I am sure that nothing will break.
Regards,
K. Y
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Greg KH ([email protected])Quoted 21 lines
-----Original Message-----
From: Greg KH ([email protected]) [mailto:[email protected]]
Sent: Thursday, July 19, 2012 7:29 PM
To: KY Srinivasan
Cc: Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 1 line · KY Srinivasan
Quoted 1 line
Quoted 1 line
As you know, this ID has been in use for a long time now. While the
hypervisor
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
does not interpret the guest ID that is registered, I am not sure what
dependencies
Quoted 1 line
there might be on this value.
Could you please go find out the answer to this?
Quoted 7 lines
Quoted 1 line
That is easier said than done. I have sent emails out asking this very question
and I have
Quoted 1 line
not received a definitive answer yet. Not knowing if and when I can get a
definitive
Quoted 1 line
answer here, I chose the least risky approach in my patch.
What happens if you test with different values?
Nothing and that is not the issue. Current MSFT hypervisors don't interpret this ID value while future versions might. However, this ID can be retrieved by the parent partition and can be used by the management stack today (that is what I am told).
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
If, as you originally stated, there is a range of values we can use, then we should probably use another one, right?
On the Windows side this ID namespace is managed well.
It is? How is this managed? What does this tell the hypervisor? What changes with the different values?
Quoted 8 lines
Quoted 6 lines
However on the Linux side, we have really had this current ID in use for almost five years now. I am not aware of any pool of IDs available for Linux usage except that Linux IDs be distinct from the guest IDs in use by MSFT operating systems. If I were to change the guest ID, I would probably want to comply with the MSFT guidance on constructing these IDs (although not all fields may be relevant for Linux).
What are those rules?
Here is the link that describes how the guest ID should be composed:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff542653%28v=vs.85%29.aspx
Regards,
K. Y
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 3 lines · KY Srinivasan
Here is the link that describes how the guest ID should be composed:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff542653%28v=vs.85%29.aspx
The unwanted value does not conform to those rules: Linux is not yet at major version 0xB5.
I propose that you change this into a macro actually taking the OS major/minor version into account, keeping the 0xB16B vendor ID (which seems safest as the vendor ID registration process seems a bit unclear)
Bjørn
PATCH 1/1 drivers: hv: use Linux version in guest ID
Use OS version number in the guest ID as recommended by Microsoft
---
So how about something like this? Yes, I know including linux/version.h often is unwanted, but the spec does recommend using the actual OS version in the guest ID
Yes, this will be offensive again when Linux is at version 181.0, but we might have found a better solution by then :-)
drivers/hv/hyperv_vmbus.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
drivers/hv/hyperv_vmbus.h +16 -4
@@ -29,6 +29,7 @@#include <asm/sync_bitops.h> #include <linux/atomic.h> #include <linux/hyperv.h> +#include <linux/version.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
@@ -410,10 +411,21 @@ enum {#define HV_PRESENT_BIT 0x80000000 -#define HV_LINUX_GUEST_ID_LO 0x00000000 -#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 -#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI << 32) | \ - HV_LINUX_GUEST_ID_LO) +/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0 +* +* 63:48 - Vendor ID +* 47:40 - OS Variant +* 39:32 - Major Version +* 31:24 - Minor Version +* 23:16 - Service Version +* 15:0 - Build Number +*/ +#define HV_LINUX_GUEST_ID ((u64)HV_LINUX_GUEST_ID_VENDOR << 48 | \ + (u64)LINUX_VERSION_CODE << 16)#define HV_CPU_POWER_MANAGEMENT (1 << 0)#define HV_RECOMMENDATIONS_MAX 4
Signature · 1 line
1.7.10.4
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to Bjørn MorkQuoted 17 lines
-----Original Message-----
From: Bjørn Mork [mailto:[email protected]]
Sent: Friday, July 20, 2012 3:59 AM
To: KY Srinivasan
Cc: Greg KH ([email protected]); Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)Quoted 3 lines · KY Srinivasan
Here is the link that describes how the guest ID should be composed:
Quoted 8 lines
us/library/windows/hardware/ff542653%28v=vs.85%29.aspx
The unwanted value does not conform to those rules: Linux is not yet at major version
0xB5.I propose that you change this into a macro actually taking the OS major/minor version into account, keeping the
0xB16Bvendor ID (which seems safest as the vendor ID registration process seems a bit unclear)
Thank you for your interest in fixing this problem. When we decide to change this ID, we will conform to the MSFT guidelines on constructing this guest ID.
Regards,
K. Y
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 3 lines · KY Srinivasan
Thank you for your interest in fixing this problem. When we decide to change this ID, we will conform to the MSFT guidelines on constructing this guest ID.
I'm wondering why it hasn't been conform to the MSFT guidelines from the very beginning on?
Signature · 2 lines
Thanks, //richard
RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
Quoted 12 lines
-----Original Message-----
From: richard -rw- weinberger [mailto:[email protected]]
Sent: Friday, July 20, 2012 11:04 AM
To: KY Srinivasan
Cc: Bjørn Mork; Greg KH ([email protected]); Paolo Bonzini; [email protected]; [email protected]; [email protected]
Subject: Re:0xB16B00B5? Really? (was Re: Move hyperv out of thedrivers/staging/directory)
Quoted 8 lines
Quoted 1 line · KY Srinivasan
Thank you for your interest in fixing this problem. When we decide to change
this
Quoted 2 lines
ID, we will conform to the MSFT guidelines on constructing this guest ID.
I'm wondering why it hasn't been conform to the MSFT guidelines from the very beginning on?
Great question; this was before my time in MSFT and so I cannot answer that.
Regards,
Greg KH
maintainerRe: [PATCH] drivers: hv: use Linux version in guest ID
In reply to Bjørn MorkQuoted 31 lines · Bjørn Mork
Use OS version number in the guest ID as recommended by Microsoft
Signed-off-by Bjørn Mork <[email protected]>---
So how about something like this? Yes, I know includinglinux/version.hoften is unwanted, but the spec does recommend using the actual OS version in the guest IDYes, this will be offensive again when Linux is at version 181.0, but we might have found a better solution by then :-)
drivers/hv/hyperv_vmbus.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)drivers/hv/hyperv_vmbus.h +1
-0@@ -29,6 +29,7 @@#include <asm/sync_bitops.h> #include <linux/atomic.h> #include <linux/hyperv.h> +#include <linux/version.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent @@ -410,10 +411,21 @@ enum {#define HV_PRESENT_BIT 0x80000000
drivers/hv/hyperv_vmbus.h enum { · line 418
Quoted 10 lines
drivers/hv/hyperv_vmbus.h +5
-4-#define HV_LINUX_GUEST_ID_LO 0x00000000 -#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 -#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI << 32) | \ - HV_LINUX_GUEST_ID_LO) +/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0
We could use the kernel build number here as well, if we really wanted it, right?
Otherwise, I like this patch, KY, any objection to me taking it?
thanks,
greg k-h
RE: [PATCH] drivers: hv: use Linux version in guest ID
Quoted 58 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Friday, July 20, 2012 11:27 AM
To: Bjørn Mork
Cc: KY Srinivasan; Paolo Bonzini; [email protected]; linux- [email protected]; [email protected]
Subject: Re: [PATCH] drivers: hv: use Linux version in guest IDQuoted 21 lines · Bjørn Mork
Use OS version number in the guest ID as recommended by Microsoft
Signed-off-by Bjørn Mork <[email protected]>---
So how about something like this? Yes, I know includinglinux/version.hoften is unwanted, but the spec does recommend using the actual OS version in the guest IDYes, this will be offensive again when Linux is at version 181.0, but we might have found a better solution by then :-)
drivers/hv/hyperv_vmbus.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)drivers/hv/hyperv_vmbus.h +0
-0drivers/hv/hyperv_vmbus.h line 35
Quoted 7 lines
drivers/hv/hyperv_vmbus.h +1
-0@@ -29,6 +29,7 @@#include <asm/sync_bitops.h> #include <linux/atomic.h> #include <linux/hyperv.h> +#include <linux/version.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
drivers/hv/hyperv_vmbus.h enum { · line 415
Quoted 7 lines
drivers/hv/hyperv_vmbus.h +0
-3@@ -410,10 +411,21 @@ enum {#define HV_PRESENT_BIT 0x80000000 -#define HV_LINUX_GUEST_ID_LO 0x00000000 -#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 -#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
drivers/hv/hyperv_vmbus.h enum { · line 418
Quoted 6 lines
drivers/hv/hyperv_vmbus.h +5
-1- HV_LINUX_GUEST_ID_LO) +/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0 We could use the kernel build number here as well, if we really wanted it, right?
Quoted 1 line
Otherwise, I like this patch, KY, any objection to me taking it?
Greg,
If it is ok with you can we wait a couple of days. I am pushing to get information back from folks within MSFT. I am hoping we can fix this issue soon.
Regards,
K. Y
Greg KH
maintainerRe: [PATCH] drivers: hv: use Linux version in guest ID
Quoted 48 lines · KY Srinivasan
Quoted 48 lines · Bjørn Mork
Quoted 21 lines
Use OS version number in the guest ID as recommended by Microsoft
Signed-off-by Bjørn Mork <[email protected]>---
So how about something like this? Yes, I know includinglinux/version.hoften is unwanted, but the spec does recommend using the actual OS version in the guest IDYes, this will be offensive again when Linux is at version 181.0, but we might have found a better solution by then :-)
drivers/hv/hyperv_vmbus.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)drivers/hv/hyperv_vmbus.h +0
-0drivers/hv/hyperv_vmbus.h line 35
Quoted 7 lines
drivers/hv/hyperv_vmbus.h +1
-0@@ -29,6 +29,7 @@#include <asm/sync_bitops.h> #include <linux/atomic.h> #include <linux/hyperv.h> +#include <linux/version.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
drivers/hv/hyperv_vmbus.h enum { · line 415
Quoted 7 lines
drivers/hv/hyperv_vmbus.h +0
-3@@ -410,10 +411,21 @@ enum {#define HV_PRESENT_BIT 0x80000000 -#define HV_LINUX_GUEST_ID_LO 0x00000000 -#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 -#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
drivers/hv/hyperv_vmbus.h enum { · line 418
Quoted 6 lines
drivers/hv/hyperv_vmbus.h +5
-1- HV_LINUX_GUEST_ID_LO) +/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0 We could use the kernel build number here as well, if we really wanted it, right?
Quoted 6 lines
Quoted 1 line
Otherwise, I like this patch, KY, any objection to me taking it?
Greg,
If it is ok with you can we wait a couple of days. I am pushing to get information back from folks within MSFT. I am hoping we can fix this issue soon.
Ok, I'll hold on to it for a week or so.
thanks,
greg k-h
Re: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)
In reply to richard -rw- weinbergerQuoted 7 lines · richard -rw- weinberger
Quoted 3 lines · KY Srinivasan
Thank you for your interest in fixing this problem. When we decide to change this ID, we will conform to the MSFT guidelines on constructing this guest ID.
I'm wondering why it hasn't been conform to the MSFT guidelines from the very beginning on?
It's a lot easier to sneak something cute into code when it isn't maintained in git repositories and mailing lists readable by everybody and their pet llama.
I'll admit to not doing a *lot* of extensive review, but I try to at least read Kconfig patches (mostly out of self-defense so when I do a 'make oldconfig' I get presented with something useful ;) - and it's amazing how often I spot issues in stuff that's presumably already had several pair of eyeballs look at it already.
Probably what happened - some programmer had a 60 hour week, wrote the code on a Friday and had a sudden attack of the sillies, and it went through a code review meeting, but they had to cover 800 lines of code in a one-hour meeting so nobody looked *too* close...
RE: [PATCH] drivers: hv: use Linux version in guest ID
In reply to Greg KHQuoted 59 lines
-----Original Message-----
From: Greg KH [mailto:[email protected]]
Sent: Friday, July 20, 2012 12:10 PM
To: KY Srinivasan
Cc: Bjørn Mork; Paolo Bonzini; [email protected]; linux- [email protected]
Subject: Re: [PATCH] drivers: hv: use Linux version in guest IDQuoted 48 lines · KY Srinivasan
Quoted 48 lines · Bjørn Mork
Quoted 21 lines
Use OS version number in the guest ID as recommended by Microsoft
Signed-off-by Bjørn Mork <[email protected]>---
So how about something like this? Yes, I know includinglinux/version.hoften is unwanted, but the spec does recommend using the actual OS version in the guest IDYes, this will be offensive again when Linux is at version 181.0, but we might have found a better solution by then :-)
drivers/hv/hyperv_vmbus.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)drivers/hv/hyperv_vmbus.h +0
-0drivers/hv/hyperv_vmbus.h line 35
Quoted 7 lines
drivers/hv/hyperv_vmbus.h +1
-0@@ -29,6 +29,7 @@#include <asm/sync_bitops.h> #include <linux/atomic.h> #include <linux/hyperv.h> +#include <linux/version.h> /* * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
drivers/hv/hyperv_vmbus.h enum { · line 415
Quoted 7 lines
drivers/hv/hyperv_vmbus.h +0
-3@@ -410,10 +411,21 @@ enum {#define HV_PRESENT_BIT 0x80000000 -#define HV_LINUX_GUEST_ID_LO 0x00000000 -#define HV_LINUX_GUEST_ID_HI 0xB16B00B5 -#define HV_LINUX_GUEST_ID (((u64)HV_LINUX_GUEST_ID_HI<< 32) | \
drivers/hv/hyperv_vmbus.h enum { · line 418
Quoted 6 lines
drivers/hv/hyperv_vmbus.h +5
-1- HV_LINUX_GUEST_ID_LO) +/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0 We could use the kernel build number here as well, if we really wanted it, right?
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Otherwise, I like this patch, KY, any objection to me taking it?
Greg,
If it is ok with you can we wait a couple of days. I am pushing to get information back from folks within MSFT. I am hoping we can fix this issue soon.
Ok, I'll hold on to it for a week or so.
Greg,
While there is some dependency on the current Linux guest ID, we will go ahead and change the guest ID for Linux to conform to MSFT documented guidelines. Over the next couple of days, we are planning on finalizing the ID namespace for non-windows guests on Hyper-V. I will post our proposal on this mailing list soon.
Regards,
K. Y
Quoted 6 lines
thanks,
greg k-h
Re: [PATCH] drivers: hv: use Linux version in guest ID
In reply to Greg KHQuoted 11 lines · Greg KH
Quoted 10 lines · KY Srinivasan
Quoted 10 lines · Bjørn Mork
drivers/hv/hyperv_vmbus.h enum { · line 418
Quoted 6 lines
drivers/hv/hyperv_vmbus.h +5
-0+/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0 We could use the kernel build number here as well, if we really wanted it, right?
Yes, we could. I just didn't see any value it that. Why would you want your hypervisor to care about some arbitrary build number?
But it can of course be added if anyone needs it.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Otherwise, I like this patch, KY, any objection to me taking it?
Greg,
If it is ok with you can we wait a couple of days. I am pushing to get information back from folks within MSFT. I am hoping we can fix this issue soon.
Ok, I'll hold on to it for a week or so.
Not to nag or anything like that, but ... It's been a week or so now, hasn't it? :-)
Bjørn
RE: [PATCH] drivers: hv: use Linux version in guest ID
Quoted 32 lines
-----Original Message-----
From: Bjørn Mork [mailto:[email protected]]
Sent: Monday, August 13, 2012 9:00 AM
To: Greg KH
Cc: KY Srinivasan; Paolo Bonzini; [email protected]; linux- [email protected]
Subject: Re: [PATCH] drivers: hv: use Linux version in guest IDQuoted 11 lines · Greg KH
Quoted 10 lines · KY Srinivasan
Quoted 10 lines · Bjørn Mork
drivers/hv/hyperv_vmbus.h enum { · line 418
Quoted 6 lines
drivers/hv/hyperv_vmbus.h +5
-0+/* Linux vendor ID allocated by Microsoft */ +#define HV_LINUX_GUEST_ID_VENDOR 0xB16B + +/* Creating a guest ID conforming to the encoding recommended by +* Microsoft, with variant and build fixed to 0 We could use the kernel build number here as well, if we really wanted it, right?
Yes, we could. I just didn't see any value it that. Why would you want your hypervisor to care about some arbitrary build number?
But it can of course be added if anyone needs it.
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Otherwise, I like this patch, KY, any objection to me taking it?
Greg,
Quoted 8 lines
Quoted 1 line
Quoted 1 line
If it is ok with you can we wait a couple of days. I am pushing to get
information
Quoted 3 lines
Quoted 1 line
back from folks within MSFT. I am hoping we can fix this issue soon.
Ok, I'll hold on to it for a week or so.
Not to nag or anything like that, but ... It's been a week or so now, hasn't it? :-)
In the interim, I have submitted a patch that conforms to the MSFT guidelines for generating guest IDs for non-MSFT operating systems on Hyper-V.
Regards,
K. Y ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
Re: [PATCH] drivers: hv: use Linux version in guest ID
Quoted 2 lines · KY Srinivasan
In the interim, I have submitted a patch that conforms to the MSFT guidelines for generating guest IDs for non-MSFT operating systems on Hyper-V.
Oh, sorry. I missed that. Found it now. Thanks
Including distro info in a driver interface looks a bit weird to me, but I don't really care as long as the previous static value goes away.
Bjørn
RE: [PATCH] drivers: hv: use Linux version in guest ID
Quoted 12 lines
-----Original Message-----
From: Bjørn Mork [mailto:[email protected]]
Sent: Monday, August 13, 2012 9:33 AM
To: KY Srinivasan
Cc: Greg KH; Paolo Bonzini; [email protected]; linux- [email protected]
Subject: Re: [PATCH] drivers: hv: use Linux version in guest IDKY Srinivasan <[email protected]> writes:
Quoted 7 lines
Quoted 2 lines
In the interim, I have submitted a patch that conforms to the MSFT guidelines for generating guest IDs for non-MSFT operating systems on Hyper-V.
Oh, sorry. I missed that. Found it now. Thanks
Including distro info in a driver interface looks a bit weird to me, but I don't really care as long as the previous static value goes away.
This is optional and does not need to be populated.
K. Y
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�