diff options
author | Michael Kelley <mikelley@microsoft.com> | 2020-04-20 09:49:26 -0700 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-04-21 10:02:38 +0100 |
commit | 2ddddd0b4e89e1fc30ed257653239005d2f31f5b (patch) | |
tree | 266125b4c992f9b48e6ce3692ebf4fea088ef230 /arch | |
parent | 1a06d017fb3f388734ffbe5dedee6f8c3af5f2db (diff) | |
download | linux-2ddddd0b4e89e1fc30ed257653239005d2f31f5b.tar.gz linux-2ddddd0b4e89e1fc30ed257653239005d2f31f5b.tar.bz2 linux-2ddddd0b4e89e1fc30ed257653239005d2f31f5b.zip |
Drivers: hv: Move AEOI determination to architecture dependent code
Hyper-V on ARM64 doesn't provide a flag for the AEOI recommendation
in ms_hyperv.hints, so having the test in architecture independent
code doesn't work. Resolve this by moving the check of the flag
to an architecture dependent helper function. No functionality is
changed.
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200420164926.24471-1-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/mshyperv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 6b79515abb82..7c2bbd6675dc 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -34,6 +34,8 @@ typedef int (*hyperv_fill_flush_list_func)( rdmsrl(HV_X64_MSR_SINT0 + int_num, val) #define hv_set_synint_state(int_num, val) \ wrmsrl(HV_X64_MSR_SINT0 + int_num, val) +#define hv_recommend_using_aeoi() \ + (!(ms_hyperv.hints & HV_DEPRECATING_AEOI_RECOMMENDED)) #define hv_get_crash_ctl(val) \ rdmsrl(HV_X64_MSR_CRASH_CTL, val) |