mbox series

[GIT,PULL] KVM/arm64 fixes for 5.18, take #2

Message ID 20220429153615.710743-1-maz@kernel.org
State New
Headers show
Series [GIT,PULL] KVM/arm64 fixes for 5.18, take #2 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.18-2

Message

Marc Zyngier April 29, 2022, 3:36 p.m. UTC
Paolo,

Here's a trio of fixes for 5.18. Nothing terribly interesting, but
nonetheless important fixes (two of the bugs are related to AArch32).

Please pull,

	M.

The following changes since commit 21db83846683d3987666505a3ec38f367708199a:

  selftests: KVM: Free the GIC FD when cleaning up in arch_timer (2022-04-07 08:46:13 +0100)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.18-2

for you to fetch changes up to 85ea6b1ec915c9dd90caf3674b203999d8c7e062:

  KVM: arm64: Inject exception on out-of-IPA-range translation fault (2022-04-27 23:02:23 +0100)

----------------------------------------------------------------
KVM/arm64 fixes for 5.18, take #2

- Take care of faults occuring between the PARange and
  IPA range by injecting an exception

- Fix S2 faults taken from a host EL0 in protected mode

- Work around Oops caused by a PMU access from a 32bit
  guest when PMU has been created. This is a temporary
  bodge until we fix it for good.

----------------------------------------------------------------
Alexandru Elisei (1):
      KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set

Marc Zyngier (1):
      KVM: arm64: Inject exception on out-of-IPA-range translation fault

Will Deacon (1):
      KVM: arm64: Handle host stage-2 faults from 32-bit EL0

 arch/arm64/include/asm/kvm_emulate.h |  1 +
 arch/arm64/kvm/hyp/nvhe/host.S       | 18 +++++++++---------
 arch/arm64/kvm/inject_fault.c        | 28 ++++++++++++++++++++++++++++
 arch/arm64/kvm/mmu.c                 | 19 +++++++++++++++++++
 arch/arm64/kvm/pmu-emul.c            | 23 ++++++++++++++++++++++-
 5 files changed, 79 insertions(+), 10 deletions(-)

Comments

Paolo Bonzini April 29, 2022, 3:39 p.m. UTC | #1
On 4/29/22 17:36, Marc Zyngier wrote:
> Paolo,
> 
> Here's a trio of fixes for 5.18. Nothing terribly interesting, but
> nonetheless important fixes (two of the bugs are related to AArch32).

Cool, will pull soon.  Please take a quick look at the flags->data ABI 
fix, it's one patch on top of 5.18 as you requested and if I hear 
nothing I'll send it ~Sunday morning to Linus.

Thanks,

Paolo

> Please pull,
> 
> 	M.
> 
> The following changes since commit 21db83846683d3987666505a3ec38f367708199a:
> 
>    selftests: KVM: Free the GIC FD when cleaning up in arch_timer (2022-04-07 08:46:13 +0100)
> 
> are available in the Git repository at:
> 
>    git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.18-2
> 
> for you to fetch changes up to 85ea6b1ec915c9dd90caf3674b203999d8c7e062:
> 
>    KVM: arm64: Inject exception on out-of-IPA-range translation fault (2022-04-27 23:02:23 +0100)
> 
> ----------------------------------------------------------------
> KVM/arm64 fixes for 5.18, take #2
> 
> - Take care of faults occuring between the PARange and
>    IPA range by injecting an exception
> 
> - Fix S2 faults taken from a host EL0 in protected mode
> 
> - Work around Oops caused by a PMU access from a 32bit
>    guest when PMU has been created. This is a temporary
>    bodge until we fix it for good.
> 
> ----------------------------------------------------------------
> Alexandru Elisei (1):
>        KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set
> 
> Marc Zyngier (1):
>        KVM: arm64: Inject exception on out-of-IPA-range translation fault
> 
> Will Deacon (1):
>        KVM: arm64: Handle host stage-2 faults from 32-bit EL0
> 
>   arch/arm64/include/asm/kvm_emulate.h |  1 +
>   arch/arm64/kvm/hyp/nvhe/host.S       | 18 +++++++++---------
>   arch/arm64/kvm/inject_fault.c        | 28 ++++++++++++++++++++++++++++
>   arch/arm64/kvm/mmu.c                 | 19 +++++++++++++++++++
>   arch/arm64/kvm/pmu-emul.c            | 23 ++++++++++++++++++++++-
>   5 files changed, 79 insertions(+), 10 deletions(-)
>