KVM: arm64: nv: Fixes for handling debug, MDCR_EL2
Status from this message: Applied to next, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: arm64: nv: Trap debug registers when in hyp contextarch/ arch/ arch/ | +16 | 0 replies | |
| 2/2 | KVM: arm64: nv: Apply guest's MDCR traps in nested contextarch/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] KVM: arm64: nv: Fixes for handling debug, MDCR_EL2
As I was working on EL2 support for KVM selftests I realized that use of self-hosted debug inside of the VM is completely broken. Further inspection reveals yet another case where FEAT_NV2 does something insane -- MDSCR_EL1 is redirected to the VNCR page in spite of affecting the EL2 context.
The situation can be remedied with traps. And after implementing that it became clear we make no effort of honoring the guest's MDCR traps. Whoops.
Small series to tidy both of these issues up. While FEAT_FGT provides a precise trap for MDSCR_EL1, I don't have access to such a system and would rather send something out that works for now. We can worry about making this fast later.
Applies to 6.17-rc4.
Oliver Upton (2):
KVM: arm64: nv: Trap debug registers when in hyp context
KVM: arm64: nv: Apply guest's MDCR traps in nested context
arch/arm64/include/asm/kvm_nested.h | 2 ++ arch/arm64/kvm/debug.c | 3 +++ arch/arm64/kvm/nested.c | 30 +++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+)
base-commit: b320789d6883cc00ac78ce83bccbfe7ed58afcf0
Signature · 1 line
2.47.3