Skip to content

KVM: arm64: Fix splat relating to idregs debugfs

Oliver Upton kvmarm 1 version Applied

Status from this message: Applied to kvmarm/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Fail the idreg iterator if idregs aren't initializedarch/arm64/kvm/sys_regs.c+2 -10 replies
2/2KVM: arm64: Don't initialize idreg debugfs w/ preemption disabledarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/arm.c arch/arm64/kvm/sys_regs.c+13 -50 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc Zyngier
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: Fix splat relating to idregs debugfs

Looks like we're calling in to debugfs w/ preemption disabled, which explodes when trying to take the parent inode's rwsem.

This is easy enough to work around, and we can just initialize at the time of VM creation. No idreg values yet? Too bad, just kick an error back at the user. All two of them.

Applies to kvmarm/next.

Oliver Upton (2):
KVM: arm64: Fail the idreg iterator if idregs aren't initialized
KVM: arm64: Don't initialize idreg debugfs w/ preemption disabled

 arch/arm64/include/asm/kvm_host.h |  1 +
 arch/arm64/kvm/arm.c              |  4 ++++
 arch/arm64/kvm/sys_regs.c         | 16 ++++++++++------
 3 files changed, 15 insertions(+), 6 deletions(-)

base-commit: bec0d120679f0033cca017e8f9e0f3782d261dc7

Signature · 1 line
2.44.0.rc1.240.g4c46232300-goog