* [GIT PULL] KVM/arm64 fixes for 6.10, take #1
@ 2024-06-05 7:28 Marc Zyngier
2024-06-05 10:56 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Marc Zyngier @ 2024-06-05 7:28 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Fuad Tabba, Joey Gouly, Mark Brown, Nina Schoetterl-Glausch,
Oliver Upton, James Morse, Suzuki K Poulose, Zenghui Yu, kvmarm,
linux-arm-kernel, kvm
Paolo,
Here's a large-ish set of fixes for 6.10, the bulk of it addressing
the sorry state of pKVM's handling of FP/SVE (kudos to Fuad for sticking
with it and getting the series in shape).
The rest is a more esoteric set of AArch32 and NV fixes, details in the
tag as usual.
Please pull,
M.
The following changes since commit 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0:
Linux 6.10-rc1 (2024-05-26 15:20:12 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.10-1
for you to fetch changes up to afb91f5f8ad7af172d993a34fde1947892408f53:
KVM: arm64: Ensure that SME controls are disabled in protected mode (2024-06-04 15:06:33 +0100)
----------------------------------------------------------------
KVM/arm64 fixes for 6.10, take #1
- Large set of FP/SVE fixes for pKVM, addressing the fallout
from the per-CPU data rework and making sure that the host
is not involved in the FP/SVE switching any more
- Allow FEAT_BTI to be enabled with NV now that FEAT_PAUTH
is copletely supported
- Fix for the respective priorities of Failed PAC, Illegal
Execution state and Instruction Abort exceptions
- Fix the handling of AArch32 instruction traps failing their
condition code, which was broken by the introduction of
ESR_EL2.ISS2
- Allow vpcus running in AArch32 state to be restored in
System mode
- Fix AArch32 GPR restore that would lose the 64 bit state
under some conditions
----------------------------------------------------------------
Fuad Tabba (9):
KVM: arm64: Reintroduce __sve_save_state
KVM: arm64: Fix prototype for __sve_save_state/__sve_restore_state
KVM: arm64: Abstract set/clear of CPTR_EL2 bits behind helper
KVM: arm64: Specialize handling of host fpsimd state on trap
KVM: arm64: Allocate memory mapped at hyp for host sve state in pKVM
KVM: arm64: Eagerly restore host fpsimd/sve state in pKVM
KVM: arm64: Consolidate initializing the host data's fpsimd_state/sve in pKVM
KVM: arm64: Refactor CPACR trap bit setting/clearing to use ELx format
KVM: arm64: Ensure that SME controls are disabled in protected mode
Marc Zyngier (5):
KVM: arm64: Fix AArch32 register narrowing on userspace write
KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
KVM: arm64: AArch32: Fix spurious trapping of conditional instructions
KVM: arm64: nv: Fix relative priorities of exceptions generated by ERETAx
KVM: arm64: nv: Expose BTI and CSV_frac to a guest hypervisor
arch/arm64/include/asm/el2_setup.h | 6 +--
arch/arm64/include/asm/kvm_arm.h | 6 +++
arch/arm64/include/asm/kvm_emulate.h | 71 ++++++++++++++++++++++++++--
arch/arm64/include/asm/kvm_host.h | 25 +++++++++-
arch/arm64/include/asm/kvm_hyp.h | 4 +-
arch/arm64/include/asm/kvm_pkvm.h | 9 ++++
arch/arm64/kvm/arm.c | 76 +++++++++++++++++++++++++++++
arch/arm64/kvm/emulate-nested.c | 21 +++++----
arch/arm64/kvm/fpsimd.c | 11 +++--
arch/arm64/kvm/guest.c | 3 +-
arch/arm64/kvm/hyp/aarch32.c | 18 ++++++-
arch/arm64/kvm/hyp/fpsimd.S | 6 +++
arch/arm64/kvm/hyp/include/hyp/switch.h | 36 +++++++-------
arch/arm64/kvm/hyp/include/nvhe/pkvm.h | 1 -
arch/arm64/kvm/hyp/nvhe/hyp-main.c | 84 +++++++++++++++++++++++++++++----
arch/arm64/kvm/hyp/nvhe/pkvm.c | 17 ++-----
arch/arm64/kvm/hyp/nvhe/setup.c | 25 +++++++++-
arch/arm64/kvm/hyp/nvhe/switch.c | 24 ++++++++--
arch/arm64/kvm/hyp/vhe/switch.c | 12 +++--
arch/arm64/kvm/nested.c | 6 ++-
arch/arm64/kvm/reset.c | 3 ++
21 files changed, 391 insertions(+), 73 deletions(-)
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [GIT PULL] KVM/arm64 fixes for 6.10, take #1
2024-06-05 7:28 [GIT PULL] KVM/arm64 fixes for 6.10, take #1 Marc Zyngier
@ 2024-06-05 10:56 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2024-06-05 10:56 UTC (permalink / raw)
To: Marc Zyngier
Cc: Fuad Tabba, Joey Gouly, Mark Brown, Nina Schoetterl-Glausch,
Oliver Upton, James Morse, Suzuki K Poulose, Zenghui Yu, kvmarm,
linux-arm-kernel, kvm
On Wed, Jun 5, 2024 at 9:28 AM Marc Zyngier <maz@kernel.org> wrote:
>
> Paolo,
>
> Here's a large-ish set of fixes for 6.10, the bulk of it addressing
> the sorry state of pKVM's handling of FP/SVE (kudos to Fuad for sticking
> with it and getting the series in shape).
>
> The rest is a more esoteric set of AArch32 and NV fixes, details in the
> tag as usual.
>
> Please pull,
Pulled, thanks.
Paolo
>
> M.
>
> The following changes since commit 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0:
>
> Linux 6.10-rc1 (2024-05-26 15:20:12 -0700)
>
> are available in the Git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.10-1
>
> for you to fetch changes up to afb91f5f8ad7af172d993a34fde1947892408f53:
>
> KVM: arm64: Ensure that SME controls are disabled in protected mode (2024-06-04 15:06:33 +0100)
>
> ----------------------------------------------------------------
> KVM/arm64 fixes for 6.10, take #1
>
> - Large set of FP/SVE fixes for pKVM, addressing the fallout
> from the per-CPU data rework and making sure that the host
> is not involved in the FP/SVE switching any more
>
> - Allow FEAT_BTI to be enabled with NV now that FEAT_PAUTH
> is copletely supported
>
> - Fix for the respective priorities of Failed PAC, Illegal
> Execution state and Instruction Abort exceptions
>
> - Fix the handling of AArch32 instruction traps failing their
> condition code, which was broken by the introduction of
> ESR_EL2.ISS2
>
> - Allow vpcus running in AArch32 state to be restored in
> System mode
>
> - Fix AArch32 GPR restore that would lose the 64 bit state
> under some conditions
>
> ----------------------------------------------------------------
> Fuad Tabba (9):
> KVM: arm64: Reintroduce __sve_save_state
> KVM: arm64: Fix prototype for __sve_save_state/__sve_restore_state
> KVM: arm64: Abstract set/clear of CPTR_EL2 bits behind helper
> KVM: arm64: Specialize handling of host fpsimd state on trap
> KVM: arm64: Allocate memory mapped at hyp for host sve state in pKVM
> KVM: arm64: Eagerly restore host fpsimd/sve state in pKVM
> KVM: arm64: Consolidate initializing the host data's fpsimd_state/sve in pKVM
> KVM: arm64: Refactor CPACR trap bit setting/clearing to use ELx format
> KVM: arm64: Ensure that SME controls are disabled in protected mode
>
> Marc Zyngier (5):
> KVM: arm64: Fix AArch32 register narrowing on userspace write
> KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
> KVM: arm64: AArch32: Fix spurious trapping of conditional instructions
> KVM: arm64: nv: Fix relative priorities of exceptions generated by ERETAx
> KVM: arm64: nv: Expose BTI and CSV_frac to a guest hypervisor
>
> arch/arm64/include/asm/el2_setup.h | 6 +--
> arch/arm64/include/asm/kvm_arm.h | 6 +++
> arch/arm64/include/asm/kvm_emulate.h | 71 ++++++++++++++++++++++++++--
> arch/arm64/include/asm/kvm_host.h | 25 +++++++++-
> arch/arm64/include/asm/kvm_hyp.h | 4 +-
> arch/arm64/include/asm/kvm_pkvm.h | 9 ++++
> arch/arm64/kvm/arm.c | 76 +++++++++++++++++++++++++++++
> arch/arm64/kvm/emulate-nested.c | 21 +++++----
> arch/arm64/kvm/fpsimd.c | 11 +++--
> arch/arm64/kvm/guest.c | 3 +-
> arch/arm64/kvm/hyp/aarch32.c | 18 ++++++-
> arch/arm64/kvm/hyp/fpsimd.S | 6 +++
> arch/arm64/kvm/hyp/include/hyp/switch.h | 36 +++++++-------
> arch/arm64/kvm/hyp/include/nvhe/pkvm.h | 1 -
> arch/arm64/kvm/hyp/nvhe/hyp-main.c | 84 +++++++++++++++++++++++++++++----
> arch/arm64/kvm/hyp/nvhe/pkvm.c | 17 ++-----
> arch/arm64/kvm/hyp/nvhe/setup.c | 25 +++++++++-
> arch/arm64/kvm/hyp/nvhe/switch.c | 24 ++++++++--
> arch/arm64/kvm/hyp/vhe/switch.c | 12 +++--
> arch/arm64/kvm/nested.c | 6 ++-
> arch/arm64/kvm/reset.c | 3 ++
> 21 files changed, 391 insertions(+), 73 deletions(-)
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-05 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05 7:28 [GIT PULL] KVM/arm64 fixes for 6.10, take #1 Marc Zyngier
2024-06-05 10:56 ` 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).