2019-03-29 14:12:17 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-12-14 04:06:28 +08:00
|
|
|
From: Sainath Grandhi <sainath.grandhi@intel.com>
|
|
|
|
Date: Fri, 2 Nov 2018 16:21:22 -0700
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] SOS: Guest x2APIC support for SOS
|
2018-12-14 04:06:28 +08:00
|
|
|
|
|
|
|
This patch adds support to use x2APIC in SOS when ACRN exposes x2APIC
|
|
|
|
to guests and supports x2APIC MSR emulation.
|
|
|
|
|
|
|
|
On older versions of ACRN which does not expose x2APIC in cpuid,
|
|
|
|
this patch does not do anything.
|
|
|
|
|
|
|
|
Tracked-On: PKT-1592
|
|
|
|
Tracked-On: https://github.com/projectacrn/acrn-hypervisor/issues/1717
|
|
|
|
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
|
|
|
|
---
|
|
|
|
arch/x86/acrn/acrn.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/arch/x86/acrn/acrn.c b/arch/x86/acrn/acrn.c
|
2020-10-27 02:14:06 +08:00
|
|
|
index 8283673604f9..6b01b27794a1 100644
|
2018-12-14 04:06:28 +08:00
|
|
|
--- a/arch/x86/acrn/acrn.c
|
|
|
|
+++ b/arch/x86/acrn/acrn.c
|
|
|
|
@@ -56,8 +56,8 @@ static void acrn_pin_vcpu(int cpu)
|
|
|
|
|
|
|
|
static bool acrn_x2apic_available(void)
|
|
|
|
{
|
|
|
|
- /* do not support x2apic */
|
|
|
|
- return false;
|
|
|
|
+ /* ACRN supports x2apic emulation */
|
|
|
|
+ return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init acrn_init_mem_mapping(void)
|
|
|
|
--
|
2019-04-08 18:08:36 +08:00
|
|
|
https://clearlinux.org
|
2018-12-14 04:06:28 +08:00
|
|
|
|