add LVZ support for TCG
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest26 patches 5 repliesIn review
- v523 patches 12 repliesSuperseded
- v414 patches 11 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 8 patches | 7 replies | Superseded | |
| v2 | 4 patches | 2 replies | Superseded | |
| v1 | 4 patches | 15 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | target/loongarch: add get_sys() helpertarget/ target/ | +6 | 0 replies | |
| 2/26 | target/loongarch: add LVZ feature switchertarget/ target/ target/ | +34 | 0 replies | |
| 3/26 | target/loongarch: add LVZ CSR metadatatarget/ target/ target/ +2 more | +104 | 0 replies | |
| 4/26 | target/loongarch: add vm level 1 definitiontarget/ target/ | +24 | 2 replies | |
| 5/26 | target/loongarch: add definition about guest mmu_idxtarget/ target/ target/ +1 more | +29 | 1 reply | |
| 6/26 | target/loongarch: move timer initialization to loongarh_cpu_realizefn()target/ | +15 | 0 replies | |
| 7/26 | target/loongarch: add LVZ guest interrupt statetarget/ target/ target/ +2 more | +55 | 1 reply | |
| 8/26 | target/loongarch: add LVZ guest timertarget/ target/ | +20 | 1 reply | |
| 9/26 | target/loongarch: handle return to guest in ertntarget/ target/ | +22 | 0 replies | |
| 10/26 | target/loongarch: handle LVZ exception and vm_exittarget/ target/ | +20 | 0 replies | |
| 11/26 | target/loongarch: add host TLBRet and handletarget/ target/ | +24 | 0 replies | |
| 12/26 | target/loongarch: add gid management functionstarget/ target/ | +18 | 0 replies | |
| 13/26 | target/loongarch: add LVZ parameters to TLB functionstarget/ target/ target/ +2 more | +120 | 0 replies | |
| 14/26 | target/loongarch: add LVZ to TLB functionstarget/ target/ target/ | +44 | 0 replies | |
| 15/26 | target/loongarch: add 2-level address mapping to loongarch_cpu_tlb_fill()target/ | +36 | 0 replies | |
| 16/26 | target/loongarch: add LVZ to invtlb 0x0-0x6target/ | +17 | 0 replies | |
| 17/26 | target/loongarch: add LVZ to invtlb 0xa-0xetarget/ target/ | +70 | 0 replies | |
| 18/26 | target/loongarch: add LVZ to ptwtarget/ target/ target/ | +39 | 0 replies | |
| 19/26 | target/loongarch: add LVZ migration statetarget/ | +139 | 0 replies | |
| 20/26 | target/loongarch: add LVZ to CSR operationstarget/ target/ target/ | +93 | 0 replies | |
| 21/26 | target/loongarch: add LVZ to CSR helperstarget/ | +32 | 0 replies | |
| 22/26 | target/loongarch: add guest CSR operationstarget/ target/ target/ | +36 | 0 replies | |
| 23/26 | target/loongarch: add LVZ CSRstarget/ target/ target/ | +59 | 0 replies | |
| 24/26 | target/loongarch: translate LVZ guest traps and HVCtarget/ target/ target/ +3 more | +43 | 0 replies | |
| 25/26 | target/loongarch: initialize CSR related to LVZtarget/ | +4 | 0 replies | |
| 26/26 | target/loongarch: exit to vm level 0 for fpd, sxd and asxd of vm level 0target/ target/ | +32 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 00/26] add LVZ support for TCG
This patch implements Loongson VirtualiZation (LVZ) extension support for LoongArch's TCG target. With this patch, it is now possible to start a nested KVM-accelerated virtual machine on a TCG-emulated virtual machine.
SignKirigami (26):
target/loongarch: add get_sys() helper
target/loongarch: add LVZ feature switcher target/loongarch: add LVZ CSR metadata
target/loongarch: add vm level 1 definition target/loongarch: add definition about guest mmu_idx target/loongarch: move timer initialization to
loongarh_cpu_realizefn()
target/loongarch: add LVZ guest interrupt state target/loongarch: add LVZ guest timer
target/loongarch: handle return to guest in ertn target/loongarch: handle LVZ exception and vm_exit target/loongarch: add host TLBRet and handle target/loongarch: add gid management functions target/loongarch: add LVZ parameters to TLB functions target/loongarch: add LVZ to TLB functions target/loongarch: add 2-level address mapping to
loongarch_cpu_tlb_fill()
target/loongarch: add LVZ to invtlb 0x0-0x6 target/loongarch: add LVZ to invtlb 0xa-0xe target/loongarch: add LVZ to ptw
target/loongarch: add LVZ migration state target/loongarch: add LVZ to CSR operations target/loongarch: add LVZ to CSR helpers
target/loongarch: add guest CSR operations target/loongarch: add LVZ CSRs
target/loongarch: translate LVZ guest traps and HVC target/loongarch: initialize CSR related to LVZ target/loongarch: exit to vm level 0 for fpd, sxd and asxd of vm level
0
target/loongarch/cpu-csr.h | 38 ++ target/loongarch/cpu-mmu.h | 31 +- target/loongarch/cpu.c | 117 +++++-- target/loongarch/cpu.h | 90 ++++- target/loongarch/cpu_helper.c | 52 +-- target/loongarch/csr.c | 102 +++--- target/loongarch/csr.h | 1 + target/loongarch/disas.c | 9 + target/loongarch/insns.decode | 7 + target/loongarch/internals.h | 4 +- target/loongarch/machine.c | 139 ++++++++ target/loongarch/tcg/csr_helper.c | 131 +++++-- target/loongarch/tcg/helper.h | 37 +- .../tcg/insn_trans/trans_extra.c.inc | 5 + .../tcg/insn_trans/trans_privileged.c.inc | 212 ++++++++++-- target/loongarch/tcg/op_helper.c | 37 ++ target/loongarch/tcg/tcg_cpu.c | 89 +++-- target/loongarch/tcg/tlb_helper.c | 324 ++++++++++++------ target/loongarch/tcg/translate.c | 3 + target/loongarch/translate.h | 1 + 20 files changed, 1107 insertions(+), 322 deletions(-)
base-commit: 49559567804523cb28cad002aa8e97f444e23ad7
Signature · 1 line
2.56.0