Re: [PATCH] x86/ptdump: Remove paravirt_enabled()

From: Boris Ostrovsky
Date: Thu Feb 18 2016 - 16:32:24 EST




On 02/18/2016 03:00 PM, Borislav Petkov wrote:
From: Borislav Petkov <bp@xxxxxxx>

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.

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
Cc: Andy Lutomirski <luto@xxxxxxxxxxxxxx>
Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
Cc: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxx>

Under Xen, as PV guest:

Tested-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>