kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] KVM/arm64 fixes for 5.16, take #2
@ 2021-11-25 16:19 Marc Zyngier
  2021-11-26 10:42 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Zyngier @ 2021-11-25 16:19 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Catalin Marinas, Chris January, Fuad Tabba, Will Deacon,
	James Morse, Suzuki K Poulose, Alexandru Elisei,
	linux-arm-kernel, kvm, kvmarm, kernel-team

Paolo,

Here's the second set of fixes for 5.16. The main items are a fix for
an unfortunate signed constant extension, leading to an unbootable
kernel on ARMv8.7 systems. The two other patches are fixes for the
rare cases where we evaluate PSTATE too early on guest exit.

Please pull,

	M.

The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf:

  Linux 5.16-rc1 (2021-11-14 13:56:52 -0800)

are available in the Git repository at:

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

for you to fetch changes up to 1f80d15020d7f130194821feb1432b67648c632d:

  KVM: arm64: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1 (2021-11-25 15:51:25 +0000)

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

- Fix constant sign extension affecting TCR_EL2 and preventing
  running on ARMv8.7 models due to spurious bits being set

- Fix use of helpers using PSTATE early on exit by always sampling
  it as soon as the exit takes place

- Move pkvm's 32bit handling into a common helper

----------------------------------------------------------------
Catalin Marinas (1):
      KVM: arm64: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1

Marc Zyngier (2):
      KVM: arm64: Save PSTATE early on exit
      KVM: arm64: Move pkvm's special 32bit handling into a generic infrastructure

 arch/arm64/include/asm/kvm_arm.h           |  4 ++--
 arch/arm64/kvm/hyp/include/hyp/switch.h    | 14 ++++++++++++++
 arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h |  7 ++++++-
 arch/arm64/kvm/hyp/nvhe/switch.c           |  8 +-------
 arch/arm64/kvm/hyp/vhe/switch.c            |  4 ++++
 5 files changed, 27 insertions(+), 10 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] KVM/arm64 fixes for 5.16, take #2
  2021-11-25 16:19 [GIT PULL] KVM/arm64 fixes for 5.16, take #2 Marc Zyngier
@ 2021-11-26 10:42 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2021-11-26 10:42 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: Catalin Marinas, Chris January, Fuad Tabba, Will Deacon,
	James Morse, Suzuki K Poulose, Alexandru Elisei,
	linux-arm-kernel, kvm, kvmarm, kernel-team

On 11/25/21 17:19, Marc Zyngier wrote:
> Paolo,
> 
> Here's the second set of fixes for 5.16. The main items are a fix for
> an unfortunate signed constant extension, leading to an unbootable
> kernel on ARMv8.7 systems. The two other patches are fixes for the
> rare cases where we evaluate PSTATE too early on guest exit.
> 
> Please pull,
> 
> 	M.
> 
> The following changes since commit fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf:
> 
>    Linux 5.16-rc1 (2021-11-14 13:56:52 -0800)
> 
> are available in the Git repository at:
> 
>    git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.16-2
> 
> for you to fetch changes up to 1f80d15020d7f130194821feb1432b67648c632d:
> 
>    KVM: arm64: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1 (2021-11-25 15:51:25 +0000)
> 
> ----------------------------------------------------------------
> KVM/arm64 fixes for 5.16, take #2
> 
> - Fix constant sign extension affecting TCR_EL2 and preventing
>    running on ARMv8.7 models due to spurious bits being set
> 
> - Fix use of helpers using PSTATE early on exit by always sampling
>    it as soon as the exit takes place
> 
> - Move pkvm's 32bit handling into a common helper
> 
> ----------------------------------------------------------------
> Catalin Marinas (1):
>        KVM: arm64: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1
> 
> Marc Zyngier (2):
>        KVM: arm64: Save PSTATE early on exit
>        KVM: arm64: Move pkvm's special 32bit handling into a generic infrastructure
> 
>   arch/arm64/include/asm/kvm_arm.h           |  4 ++--
>   arch/arm64/kvm/hyp/include/hyp/switch.h    | 14 ++++++++++++++
>   arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h |  7 ++++++-
>   arch/arm64/kvm/hyp/nvhe/switch.c           |  8 +-------
>   arch/arm64/kvm/hyp/vhe/switch.c            |  4 ++++
>   5 files changed, 27 insertions(+), 10 deletions(-)
> 


Pulled, thanks.

Paolo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-26 11:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 16:19 [GIT PULL] KVM/arm64 fixes for 5.16, take #2 Marc Zyngier
2021-11-26 10:42 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).