[PATCH 06/18] KVM: arm64: Add three sets of flags to the vcpu state
Marc Zyngier
maz at kernel.org
Fri Jun 10 00:48:27 PDT 2022
On Thu, 09 Jun 2022 18:24:39 +0100,
Reiji Watanabe <reijiw at google.com> wrote:
>
> I've just realized that GUEST_HAS_PTRAUTH (cflags) is used by
> hypervisor code (kvm_hyp_handle_ptrauth and get_pvm_id_aa64isar{1,2}).
> Shouldn't GUEST_HAS_PTRAUTH be handled as iflags ?
> Or, in choosing one of these three for a flag, is immutability (once
> the vcpu has run) the highest priority, followed by whether or not
> it is used by hypervisor code ?
It can be construed that most configuration flags are also input flags
to the hypervisor, as they will eventually affect its behaviour. But
the fact that a flag is immutable once the vcpu has run is a clear
criterion for a configuration flag.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list