mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 06:44:36 -05:00
x86/hyperv: Don't use auto-eoi when Secure AVIC is available
Hyper-V doesn't support auto-eoi with Secure AVIC. So set the HV_DEPRECATING_AEOI_RECOMMENDED flag to force writing the EOI register after handling an interrupt. Reviewed-by: Michael Kelley <mhklinux@outlook.com> Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com> Signed-off-by: Tianyu Lan <tiala@microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
This commit is contained in:
@@ -470,6 +470,9 @@ static void __init ms_hyperv_init_platform(void)
|
||||
|
||||
hv_identify_partition_type();
|
||||
|
||||
if (cc_platform_has(CC_ATTR_SNP_SECURE_AVIC))
|
||||
ms_hyperv.hints |= HV_DEPRECATING_AEOI_RECOMMENDED;
|
||||
|
||||
if (ms_hyperv.hints & HV_X64_HYPERV_NESTED) {
|
||||
hv_nested = true;
|
||||
pr_info("Hyper-V: running on a nested hypervisor\n");
|
||||
|
||||
Reference in New Issue
Block a user