[PATCH v2 3/4] KVM: arm64: Pass pmu events to hyp via vcpu

Marc Zyngier maz at kernel.org
Mon May 9 03:41:22 PDT 2022


On Mon, 09 May 2022 10:54:59 +0100,
Fuad Tabba <tabba at google.com> wrote:
> 
> Instead of the host accessing hyp data directly, pass the pmu
> events of the current cpu to hyp via the vcpu.
> 
> This adds 64 bits (in two fields) to the vcpu that need to be
> synced before every vcpu run in nvhe and protected modes.
> However, it isolates the hypervisor from the host, which allows
> us to use pmu in protected mode in a subsequent patch.
> 
> No functional change intended.

BTW, there *are* plenty of functional changes, even if there was no
issue with the patch. The lifetime of the data structure changes, its
sharing changes, and its memory footprint is different.

I guess what you are trying to say is that there shouldn't be any
visible side effect of this patch. But I don't think these are the
same things.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list