Re: [PATCH v3] perf/x86/amd: Don't touch the Host-only bit inside the guest hypervisor
From: Borislav Petkov
Date: Fri Mar 18 2022 - 14:51:06 EST
On Fri, Mar 18, 2022 at 11:07:57AM +0800, Dongli Si wrote:
> Hi Borislav, this is just to more clearly test if the current kernel is
> running directly on the host.
>
> If this is redundant, I can remove this "wrapper" and resend the patch,
> the v4 patch code will be the same as the v1 patch.
Yes please. Using
hypervisor_is_type(X86_HYPER_NATIVE)
directly is a lot more descriptive than "run_as_host".
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette