mbox series

[GIT,PULL] KVM/arm64 fixes for 6.3, part #3

Message ID ZC2eAXc9UE7Vesmn@thinky-boi (mailing list archive)
State New, archived
Headers show
Series [GIT,PULL] KVM/arm64 fixes for 6.3, part #3 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.3-3

Message

Oliver Upton April 5, 2023, 4:12 p.m. UTC
Hi Paolo,

Sending out what is likely the last batch of fixes for 6.3. Most
noteworthy is the PMU fix, as Reiji found that events counting in guest
userspace stopped working after live migration on VHE systems.
Additionally, Fuad found that pKVM was underselling the Spectre/Meltdown
mitigation state to protected VMs, so we have a fix for that too.

Also, FYI, Marc will reprise his role for the 6.4 kernel. Nothing is
set in stone but the working model is that we'll alternate the
maintainer duties each kernel release.

Please pull,

Oliver

The following changes since commit 8c2e8ac8ad4be68409e806ce1cc78fc7a04539f3:

  KVM: arm64: Check for kvm_vma_mte_allowed in the critical section (2023-03-16 23:42:56 +0000)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.3-3

for you to fetch changes up to e81625218bf7986ba1351a98c43d346b15601d26:

  KVM: arm64: Advertise ID_AA64PFR0_EL1.CSV2/3 to protected VMs (2023-04-04 15:52:06 +0000)

----------------------------------------------------------------
KVM/arm64 fixes for 6.3, part #3

 - Ensure the guest PMU context is restored before the first KVM_RUN,
   fixing an issue where EL0 event counting is broken after vCPU
   save/restore

 - Actually initialize ID_AA64PFR0_EL1.{CSV2,CSV3} based on the
   sanitized, system-wide values for protected VMs

----------------------------------------------------------------
Fuad Tabba (1):
      KVM: arm64: Advertise ID_AA64PFR0_EL1.CSV2/3 to protected VMs

Reiji Watanabe (1):
      KVM: arm64: PMU: Restore the guest's EL0 event counting after migration

 arch/arm64/kvm/arm.c                           | 26 +++++++++++++++++++++++++-
 arch/arm64/kvm/hyp/include/nvhe/fixed_config.h |  5 ++++-
 arch/arm64/kvm/hyp/nvhe/sys_regs.c             |  7 -------
 arch/arm64/kvm/pmu-emul.c                      |  1 +
 arch/arm64/kvm/sys_regs.c                      |  1 -
 5 files changed, 30 insertions(+), 10 deletions(-)

Comments

Paolo Bonzini April 6, 2023, 5:35 p.m. UTC | #1
On 4/5/23 18:12, Oliver Upton wrote:
> Hi Paolo,
> 
> Sending out what is likely the last batch of fixes for 6.3. Most
> noteworthy is the PMU fix, as Reiji found that events counting in guest
> userspace stopped working after live migration on VHE systems.
> Additionally, Fuad found that pKVM was underselling the Spectre/Meltdown
> mitigation state to protected VMs, so we have a fix for that too.
> 
> Also, FYI, Marc will reprise his role for the 6.4 kernel. Nothing is
> set in stone but the working model is that we'll alternate the
> maintainer duties each kernel release.

Pulled, thanks.

Paolo