diff options
author | Zhenzhong Duan <[email protected]> | 2019-07-25 10:39:09 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-07-25 12:51:55 +0200 |
commit | 517c3ba00916383af6411aec99442c307c23f684 (patch) | |
tree | d6c9e59e8c566298d7d8c747cccbca18b5a7767c /lib/mpi/mpi-pow.c | |
parent | 643d83f0a3518d6fbcf88f970de0340a5aa6b5a2 (diff) |
x86/speculation/mds: Apply more accurate check on hypervisor platform
X86_HYPER_NATIVE isn't accurate for checking if running on native platform,
e.g. CONFIG_HYPERVISOR_GUEST isn't set or "nopv" is enabled.
Checking the CPU feature bit X86_FEATURE_HYPERVISOR to determine if it's
running on native platform is more accurate.
This still doesn't cover the platforms on which X86_FEATURE_HYPERVISOR is
unsupported, e.g. VMware, but there is nothing which can be done about this
scenario.
Fixes: 8a4b06d391b0 ("x86/speculation/mds: Add sysfs reporting for MDS")
Signed-off-by: Zhenzhong Duan <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions