[PATCH v2] KVM: arm64: PMU: Restore the guest's EL0 event counting after migration

Oliver Upton oliver.upton at linux.dev
Tue Apr 4 08:55:01 PDT 2023


On Tue, 28 Mar 2023 19:39:44 -0700, Reiji Watanabe wrote:
> Currently, with VHE, KVM enables the EL0 event counting for the
> guest on vcpu_load() or KVM enables it as a part of the PMU
> register emulation process, when needed.  However, in the migration
> case (with VHE), the same handling is lacking, as vPMU register
> values that were restored by userspace haven't been propagated yet
> (the PMU events haven't been created) at the vcpu load-time on the
> first KVM_RUN (kvm_vcpu_pmu_restore_guest() called from vcpu_load()
> on the first KVM_RUN won't do anything as events_{guest,host} of
> kvm_pmu_events are still zero).
> 
> [...]

Applied to kvmarm/fixes, thanks!

[1/1] KVM: arm64: PMU: Restore the guest's EL0 event counting after migration
      https://git.kernel.org/kvmarm/kvmarm/c/f9ea835e99bc

--
Best,
Oliver



More information about the linux-arm-kernel mailing list