Commit 11d6eea1 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: SAUCE: (no-up) hv: Supply vendor ID and package ABI

BugLink: http://bugs.launchpad.net/bugs/1193172Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent c331eb40
......@@ -33,6 +33,14 @@
#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,
......@@ -213,7 +221,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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment