Re: [PATCH] x86/rapl: Do not load in a guest

Jacob Pan
2015-12-03T18:39:26Z

On Thu, 3 Dec 2015 19:27:02 +0100
Borislav Petkov <bp@alien8.de> wrote:

>
> + if (boot_cpu_has(X86_FEATURE_HYPERVISOR))
> + return 0;
> +
or use this?
#define cpu_has_hypervisor boot_cpu_has(X86_FEATURE_HYPERVISOR)