From: Zenghui Yu <yuzenghui@huawei.com>
To: Nathan Chancellor <natechancellor@gmail.com>,
Marc Zyngier <maz@kernel.org>
Cc: <kvm@vger.kernel.org>, Suzuki K Poulose <suzuki.poulose@arm.com>,
<kernel-team@android.com>,
Nick Desaulniers <ndesaulniers@google.com>,
"James Morse" <james.morse@arm.com>,
<linux-arm-kernel@lists.infradead.org>,
"Will Deacon" <will@kernel.org>, <kvmarm@lists.cs.columbia.edu>,
Julien Thierry <julien.thierry.kdev@gmail.com>
Subject: Re: [PATCH] KVM: arm64: Prevent vcpu_has_ptrauth from generating OOL functions
Date: Thu, 23 Jul 2020 11:30:27 +0800 [thread overview]
Message-ID: <b60f9cd1-adf1-b32a-e6cc-ca880506ff03@huawei.com> (raw)
In-Reply-To: <20200723025142.GA361584@ubuntu-n2-xlarge-x86>
Hi Nathan,
On 2020/7/23 10:51, Nathan Chancellor wrote:
> For the future, is there an easy way to tell which type of system I am
> using (nVHE or VHE)?
afaict the easiest way is looking at the kernel log and you will find
something like "{VHE,Hyp} mode initialized successfully". I can get the
following message on my *VHE* box:
# cat /var/log/dmesg | grep kvm
[ 4.896295] kvm [1]: IPA Size Limit: 48bits
[ 4.896339] [...]
[ 4.899407] kvm [1]: VHE mode initialized successfully
^^^
Have a look at kvm_arch_init(). With VHE, the host kernel is running at
EL2 (aka Hyp mode).
Thanks,
Zenghui
next prev parent reply other threads:[~2020-07-23 3:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 16:22 [PATCH] KVM: arm64: Prevent vcpu_has_ptrauth from generating OOL functions Marc Zyngier
2020-07-23 2:51 ` Nathan Chancellor
2020-07-23 3:30 ` Zenghui Yu [this message]
2020-07-23 8:17 ` Marc Zyngier
2020-07-23 15:59 ` Nathan Chancellor
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=b60f9cd1-adf1-b32a-e6cc-ca880506ff03@huawei.com \
--to=yuzenghui@huawei.com \
--cc=james.morse@arm.com \
--cc=julien.thierry.kdev@gmail.com \
--cc=kernel-team@android.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@kernel.org \
--cc=natechancellor@gmail.com \
--cc=ndesaulniers@google.com \
--cc=suzuki.poulose@arm.com \
--cc=will@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;
as well as URLs for NNTP newsgroup(s).