Re: [patch 25/60] x86/paravirt: Provide a way to check for hypervisors

From: Juergen Gross
Date: Tue Dec 05 2017 - 07:19:36 EST


On 04/12/17 15:07, Thomas Gleixner wrote:
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> There is no generic way to test whether a kernel is running on a specific
> hypervisor. But that's required to prevent the upcoming user address space
> separation feature in certain guest modes.
>
> Make the hypervisor type enum unconditionally available and provide a
> helper function which allows to test for a specific type.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen