** Patch added: "Build HV identifier using 0x80 (Canonical) and package ABI number" https://bugs.launchpad.net/ubuntu/saucy/+source/linux/+bug/1193172/+attachment/3747972/+files/0002-UBUNTU-SAUCE-no-up-hv-Supply-vendor-ID-and-package-A.patch
** Changed in: linux (Ubuntu Saucy) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1193172 Title: Populating Hyper-V MSR for Ubuntu 13.10 Status in The Linux Kernel: Unknown Status in “linux” package in Ubuntu: Fix Committed Status in “linux” source package in Saucy: Fix Committed Bug description: For new distribution releases the Hyper-V team is trying to better populate the Hyper-V guest ID. Our specific goal is to identify any given distribution and its release version. With this intent we worked with SUSE to include a patch in their upcoming SLES 11 SP3 release. The patch is available in the following issue: https://bugzilla.novell.com/show_bug.cgi?id=814005 In case you cannot access the bug then the entire patch is as follows: --- linux-3.9-rc5-master.orig/drivers/hv/hv.c +++ linux-3.9-rc5-master/drivers/hv/hv.c @@ -134,6 +134,8 @@ int hv_init(void) int max_leaf; union hv_x64_msr_hypercall_contents hypercall_msr; void *virtaddr = NULL; + __u8 d1 = 0x10; /* SuSE */ + __u16 d2 = 0x0; /* -d of a.b.c-d */ memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS); memset(hv_context.synic_message_page, 0, @@ -148,7 +150,7 @@ int hv_init(void) /* * Write our OS ID. */ - hv_context.guestid = generate_guest_id(0, LINUX_VERSION_CODE, 0); + hv_context.guestid = generate_guest_id(d1, LINUX_VERSION_CODE, d2); wrmsrl(HV_X64_MSR_GUEST_OS_ID, hv_context.guestid); /* See if the hypercall page is already set */ We request you to include the same patch for Ubuntu 13.10 with the below modifications: 1. In place of __u8 d1 = 0x10; /* SuSE */ we would request you to add the following line: __u8 d1 = 0x80; /* Canonical */ 2. In place of __u16 d2 = 0x0; /* -d of a.b.c-d */ we would request you to add the correct ‘-d’ of the Linux kernel version for Ubuntu 13.10 __u16 d2 = 0x0; /* -d of a.b.c-d */ For Ubuntu 13.10, I noticed that uname –r returns “3.9.0-6-generic”. We would like to populate d2 with 6. It would be best if you guys could automate the process of populating that string. To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1193172/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp