Re: [PATCH 8/8] arm64: cpufeature: Add an overview comment for the cpufeature framework

From: Marc Zyngier
Date: Thu Apr 16 2020 - 11:27:01 EST


On 2020-04-16 15:59, Suzuki K Poulose wrote:

Hi Suzuki,

[...]

As you mentioned in the other response we could add information about
the guest view, something like :

- KVM exposes the sanitised value of the feature registers to the
guests and is not affected by the FTR_VISIBLE. However,
depending on the individual feature support in the hypervisor,
some of the fields may be capped/limited.

Although in most cases, what KVM exposes is indeed a strict subset of
the host's features, there is a few corner cases where we expose features
that do not necessarily exist on the host. For example ARMv8.5-GTG and
ARMv8.4-TTL get exposed by the NV patches even if they don't exist on the
host, as KVM will actually emulate them.

Not a big deal, but I just wanted to outline that it isn't as clear-cut as
it may seem...

Thanks,

M.
--
Jazz is not dead. It just smells funny...