From: Borislav Petkov <bp@alien8.de>
To: Dongli Si <kvmx86@gmail.com>
Cc: acme@kernel.org, alexander.shishkin@linux.intel.com,
dave.hansen@linux.intel.com, hpa@zytor.com, joerg.roedel@amd.com,
jolsa@kernel.org, kim.phillips@amd.com, liam.merwick@oracle.com,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
mark.rutland@arm.com, mingo@kernel.org, namhyung@kernel.org,
peterz@infradead.org, tglx@linutronix.de, x86@kernel.org
Subject: Re: [PATCH v3] perf/x86/amd: Don't touch the Host-only bit inside the guest hypervisor
Date: Fri, 18 Mar 2022 19:50:45 +0100 [thread overview]
Message-ID: <YjTUhRLmpP3PQbKr@zn.tnic> (raw)
In-Reply-To: <20220318030757.1706799-1-sidongli1997@gmail.com>
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
prev parent reply other threads:[~2022-03-18 18:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-14 4:22 Dongli Si
2022-03-16 18:29 ` Borislav Petkov
2022-03-18 3:07 ` Dongli Si
2022-03-18 18:50 ` Borislav Petkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YjTUhRLmpP3PQbKr@zn.tnic \
--to=bp@alien8.de \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=joerg.roedel@amd.com \
--cc=jolsa@kernel.org \
--cc=kim.phillips@amd.com \
--cc=kvmx86@gmail.com \
--cc=liam.merwick@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®