]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: SAUCE: (no-up) hv: Supply vendor ID and package ABI
authorTim Gardner <tim.gardner@canonical.com>
Wed, 24 Jul 2013 18:48:01 +0000 (12:48 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
BugLink: http://bugs.launchpad.net/bugs/1193172
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/hv/hv.c

index b44b32f21e61db00a2db56db81c4e4a1a04053db..43e17c71f96df8bf6081b2c4b43ec501ee31fe8b 100644 (file)
 #include <asm/mshyperv.h>
 #include "hyperv_vmbus.h"
 
+#ifndef PKG_ABI
+/*
+ * Preserve the ability to 'make deb-pkg' since PKG_ABI is provided
+ * by the Ubuntu build rules.
+ */
+#define PKG_ABI 0
+#endif
+
 /* The one and only */
 struct hv_context hv_context = {
        .synic_initialized      = false,
@@ -214,7 +222,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(0x80 /*Canonical*/, LINUX_VERSION_CODE, PKG_ABI);
        wrmsrl(HV_X64_MSR_GUEST_OS_ID, hv_context.guestid);
 
        /* See if the hypercall page is already set */