]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 14 Dec 2020 07:30:23 +0000 (08:30 +0100)
BugLink: http://bugs.launchpad.net/bugs/1193172
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/x86/hyperv/hv_init.c

index e04d90af4c27cd4966351d277e945ff4df47461b..8ab44c76e6680164d1e438abfc063c17e58c3d3d 100644 (file)
 #include <linux/syscore_ops.h>
 #include <clocksource/hyperv_timer.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
+
 void *hv_hypercall_pg;
 EXPORT_SYMBOL_GPL(hv_hypercall_pg);
 
@@ -372,7 +380,7 @@ void __init hyperv_init(void)
         * 1. Register the guest ID
         * 2. Enable the hypercall and register the hypercall page
         */
-       guest_id = generate_guest_id(0, LINUX_VERSION_CODE, 0);
+       guest_id = generate_guest_id(0x80 /*Canonical*/, LINUX_VERSION_CODE, PKG_ABI);
        wrmsrl(HV_X64_MSR_GUEST_OS_ID, guest_id);
 
        hv_hypercall_pg = __vmalloc_node_range(PAGE_SIZE, 1, VMALLOC_START,