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

Oliver Upton oupton at google.com
Tue May 10 11:07:04 PDT 2022


On Tue, May 10, 2022 at 09:57:09AM +0000, Fuad Tabba 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 visible side effects in behavior intended.
> 
> Signed-off-by: Fuad Tabba <tabba at google.com>

Reviewed-by: Oliver Upton <oupton at google.com>



More information about the linux-arm-kernel mailing list