]> git.baikalelectronics.ru Git - kernel.git/commit
x86/acrn: Allow ACRN guest to use X2APIC mode
authorShuo Liu <shuo.a.liu@intel.com>
Thu, 6 Aug 2020 11:38:02 +0000 (19:38 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 6 Aug 2020 23:32:00 +0000 (01:32 +0200)
commit57bd9887e9b941d7fb092ad133c99b199ba7a7fb
tree747b38e17b4f5a4b905ef4c8ac50d317df270391
parent7fc8ebb244f214f647b3eda16cdd9c8aea12849f
x86/acrn: Allow ACRN guest to use X2APIC mode

The ACRN Hypervisor did not support x2APIC and thus x2APIC support was
disabled by always returning false when VM checked for x2APIC support.

ACRN received full support of x2APIC and exports the capability through
CPUID feature bits.

Let VM decide if it needs to switch to x2APIC mode according to CPUID
features.

Originally-by: Yakui Zhao <yakui.zhao@intel.com>
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/20200806113802.9325-1-shuo.a.liu@intel.com
arch/x86/kernel/cpu/acrn.c