UPSTREAM: KVM: arm64: Pass pmu events to hyp via vcpu
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@google.com> Reviewed-by:
Oliver Upton <oupton@google.com> Signed-off-by:
Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220510095710.148178-4-tabba@google.com (cherry picked from commit 84d751a0) Signed-off-by:
Will Deacon <willdeacon@google.com> Bug: 233587962 Bug: 233588291 Change-Id: Id73622f2fb30d531d87b260cc41fbaff24282229
Loading
Please sign in to comment