diff options
author | Borislav Petkov <[email protected]> | 2016-02-18 21:00:41 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-02-20 12:25:45 +0100 |
commit | b176862fca8625b0a8bee207bca9b611413e5e24 (patch) | |
tree | 8eda626b3badfaf2222caaeb8576f001a726006a /lib/cpu-notifier-error-inject.c | |
parent | e2c7698cd61f11d4077fdb28148b2d31b82ac848 (diff) |
x86/mm/ptdump: Remove paravirt_enabled()
is_hypervisor_range() can simply check if the PGD index is
within ffff800000000000 - ffff87ffffffffff which is the range
reserved for a hypervisor. That range is practically an ABI, see
Documentation/x86/x86_64/mm.txt.
Tested-by: Boris Ostrovsky <[email protected]> # Under Xen, as PV guest
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Luis R. Rodriguez <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions