aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-11-04 18:22:39 +0000
committerWei Liu <[email protected]>2021-11-15 12:37:08 +0000
commitf3e613e72f66226b3bea1046c1b864f67a3000a4 (patch)
tree2142a28f2026a9ca83874b7f5ae65efd1ab19e55 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentdaf972118c517b91f74ff1731417feb4270625a4 (diff)
x86/hyperv: Move required MSRs check to initial platform probing
Explicitly check for MSR_HYPERCALL and MSR_VP_INDEX support when probing for running as a Hyper-V guest instead of waiting until hyperv_init() to detect the bogus configuration. Add messages to give the admin a heads up that they are likely running on a broken virtual machine setup. At best, silently disabling Hyper-V is confusing and difficult to debug, e.g. the kernel _says_ it's using all these fancy Hyper-V features, but always falls back to the native versions. At worst, the half baked setup will crash/hang the kernel. Reviewed-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions