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

From: Jacob Pan
Date: Thu Dec 03 2015 - 13:39:30 EST


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

>
> + if (boot_cpu_has(X86_FEATURE_HYPERVISOR))
> + return 0;
> +
or use this?
#define cpu_has_hypervisor boot_cpu_has(X86_FEATURE_HYPERVISOR)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/