Enable writable for idregs DFR0,PFR0, MMFR{0,1,2,3}
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest11 patches 8 repliesIn review
- v811 patches 15 repliesSuperseded
- v710 patches 10 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 posting 3/3 | 6 patches | 14 replies | Superseded | |
| v6 posting 2/3 | 5 patches | 0 replies | Superseded | |
| v6 posting 1/3 | 0 of 6 patches | 1 reply | Superseded | |
| v5 | 6 patches | 2 replies | Superseded | |
| v4 | 4 patches | 9 replies | Superseded | |
| v3 | 4 patches | 0 replies | Superseded | |
| v2 | 2 patches | 0 replies | Superseded | |
| v1 | 3 patches | 0 replies | Superseded |
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | KVM: arm64: Allow userspace to get the writable masks for feature ID registersarch/ arch/ arch/ +2 more | +93 | 0 replies | |
| 2/11 | KVM: arm64: Document KVM_ARM_GET_REG_WRITABLE_MASKSDocumentation/ | +29 | 0 replies | |
| 3/11 | KVM: arm64: Use guest ID register values for the sake of emulationarch/ | +3 | 0 replies | |
| 4/11 | KVM: arm64: Reject attempts to set invalid debug arch versionarch/ | +29 | 0 replies | |
| 5/11 | KVM: arm64: Enable writable for ID_AA64DFR0_EL1 and ID_DFR0_EL1arch/ | +4 | 6 replies | |
| 6/11 | KVM: arm64: Bump up the default KVM sanitised debug version to v8p8arch/ | +3 | 0 replies | |
| 7/11 | KVM: arm64: Enable writable for ID_AA64PFR0_EL1arch/ | +1 | 1 reply | |
| 8/11 | KVM: arm64: Refactor helper Macros for idreg descarch/ | +36 | 0 replies | |
| 9/11 | KVM: arm64: Enable writable for ID_AA64MMFR{0, 1, 2, 3}_EL1arch/ | +18 | 0 replies | |
| 10/11 | KVM: arm64: selftests: Import automatic system register definition generation from kerneltools/ tools/ tools/ +7 more | +3078 | 0 replies | |
| 11/11 | KVM: arm64: selftests: Test for setting ID register from usersapcetools/ tools/ | +449 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.
Cover letter [PATCH v9 00/11] Enable writable for idregs DFR0,PFR0, MMFR{0,1,2,3}
This patch series enable userspace writable for below idregs:ID_AA64DFR0_EL1, ID_DFR0_EL1, ID_AA64PFR0_EL1, ID_AA64MMFR{0, 1, 2, 3}_EL1. A vm ioctl is added to get feature ID register writable masks from userspace. A selftest is added to verify that KVM handles the writings from user space correctly.
A relevant patch from Oliver is picked from [3].
---
* v8 -> v9
- Rebase on v6.5-rc7.
- Don't allow writable on RES0 fields and those fields not exposed by KVM.
- Fixed build dependency issue for system register definition generation in selftest.
* v7 -> v8
- Rebase on v6.5-rc5.
- Add reserved parameters to UAPI to get writable masks for future expansion.
- Import system regiesters definition automatic generation from kernel to selftests.
- Refactor the selftest for verifying ID register writable from userspace to cover all writable ID register fields.
* v6 -> v7
- Rebase on v6.5-rc4.
- Add a vm ioctl to get feature ID register writable masks from userspace.
- Split the change for debug version in ID_{AA64}DFR0_EL1.
- Addressed some bugs in selftest.
* v5 -> v6
- Override the type of field AA64DFR0_EL1_DebugVer to be FTR_LOWER_SAFE by the discussion of Oliver and Suraj.
* v4 -> v5
- Rebase on v6.5-rc1 which contains infrastructure for writable idregs.
- Use guest ID registers values for the sake of emulation.
- Added a selftest to verify idreg userspace writing.
* v3 -> v4
- Rebase on v11 of writable idregs series at [2].
* v2 -> v3
- Rebase on v6 of writable idregs series.
- Enable writable for ID_AA64PFR0_EL1 and ID_AA64MMFR{0, 1, 2}_EL1.
* v1 -> v2
- Rebase on latest patch series [1] of enabling writable ID register.
[1] https://lore.kernel.org/all/[email protected]
[2] https://lore.kernel.org/all/[email protected]
[3] https://lore.kernel.org/kvmarm/[email protected]
[v1] https://lore.kernel.org/all/[email protected]
[v2] https://lore.kernel.org/all/[email protected]
[v3] https://lore.kernel.org/all/[email protected]
[v4] https://lore.kernel.org/all/[email protected]
[v5] https://lore.kernel.org/all/[email protected]
[v6] https://lore.kernel.org/all/[email protected]
[v7] https://lore.kernel.org/all/[email protected]
[v8] https://lore.kernel.org/all/[email protected]
---
Jing Zhang (9):
KVM: arm64: Allow userspace to get the writable masks for feature ID
registers
KVM: arm64: Document KVM_ARM_GET_REG_WRITABLE_MASKS
KVM: arm64: Use guest ID register values for the sake of emulation
KVM: arm64: Enable writable for ID_AA64DFR0_EL1 and ID_DFR0_EL1
KVM: arm64: Enable writable for ID_AA64PFR0_EL1
KVM: arm64: Refactor helper Macros for idreg desc
KVM: arm64: Enable writable for ID_AA64MMFR{0, 1, 2, 3}_EL1
KVM: arm64: selftests: Import automatic system register definition
generation from kernel
KVM: arm64: selftests: Test for setting ID register from usersapce
Oliver Upton (2):
KVM: arm64: Reject attempts to set invalid debug arch version
KVM: arm64: Bump up the default KVM sanitised debug version to v8p8
Documentation/virt/kvm/api.rst | 29 + arch/arm64/include/asm/kvm_host.h | 2 + arch/arm64/include/uapi/asm/kvm.h | 26 + arch/arm64/kvm/arm.c | 7 + arch/arm64/kvm/sys_regs.c | 207 +- include/uapi/linux/kvm.h | 1 + tools/arch/arm64/include/.gitignore | 1 + tools/arch/arm64/include/asm/gpr-num.h | 26 + tools/arch/arm64/include/asm/sysreg.h | 839 ++---- tools/arch/arm64/tools/gen-sysreg.awk | 336 +++ tools/arch/arm64/tools/sysreg | 2497 +++++++++++++++++ tools/testing/selftests/kvm/Makefile | 15 +- .../selftests/kvm/aarch64/aarch32_id_regs.c | 4 +- .../selftests/kvm/aarch64/debug-exceptions.c | 12 +- .../selftests/kvm/aarch64/page_fault_test.c | 6 +- .../selftests/kvm/aarch64/set_id_regs.c | 448 +++ .../selftests/kvm/lib/aarch64/processor.c | 6 +- 17 files changed, 3739 insertions(+), 723 deletions(-) create mode 100644 tools/arch/arm64/include/.gitignore create mode 100644 tools/arch/arm64/include/asm/gpr-num.h create mode 100755 tools/arch/arm64/tools/gen-sysreg.awk create mode 100644 tools/arch/arm64/tools/sysreg create mode 100644 tools/testing/selftests/kvm/aarch64/set_id_regs.c
base-commit: 706a741595047797872e669b3101429ab8d378ef
Signature · 1 line
2.42.0.rc1.204.g551eb34607-goog