Skip to content

KVM: arm64: nv: trap forwarding bugs

Dan Carpenter kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: nv: Forward PIR_EL2, PIRE0_EL2 and POR_EL2 trapsarch/arm64/kvm/emulate-nested.c+3 -00 replies
2/3KVM: arm64: nv: Forward CNTP_TVAL_EL02 and CNTV_TVAL_EL02 trapsarch/arm64/kvm/emulate-nested.c+2 -00 replies
3/3KVM: arm64: nv: Report EL2 registers with no trap forwardingarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/emulate-nested.c arch/arm64/kvm/sys_regs.c+26 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: arm64: nv: trap forwarding bugs

This was detected as part of our Formal Analysis work at Pereq.

Regular KVM and nested virt traps have been getting out of sync. Fix a couple bugs and add a boot time check to prevent future bugs.

Dan Carpenter (3):
KVM: arm64: nv: Forward PIR_EL2, PIRE0_EL2 and POR_EL2 traps
KVM: arm64: nv: Forward CNTP_TVAL_EL02 and CNTV_TVAL_EL02 traps
KVM: arm64: nv: Report EL2 registers with no trap forwarding

 arch/arm64/include/asm/kvm_host.h |  2 +-
 arch/arm64/kvm/emulate-nested.c   | 10 +++++++++-
 arch/arm64/kvm/sys_regs.c         | 23 +++++++++++++++++++++--
 3 files changed, 31 insertions(+), 4 deletions(-)
Signature · 1 line
2.53.0