KVM/riscv changes for 6.13
Subsystems (3)
Anup Patel
maintainerHi Paolo,
We have the following KVM RISC-V changes for 6.13:
1) Accelerate KVM RISC-V when running as a guest
2) Perf support to collect KVM guest statistics from host side
In addition, the pointer masking support (Ssnpm and Smnpm) for KVM guest is going through the RISC-V tree.
I also have Svade and Svadu support for host and guest in my queue which I will send in the second week of the merge window to avoid conflict with the RISC-V tree.
Please pull.
Regards,
Anup
The following changes since commit 81983758430957d9a5cb3333fe324fd70cf63e7e:
Linux 6.12-rc5 (2024-10-27 12:52:02 -1000)
are available in the Git repository at:
https://github.com/kvm-riscv/linux.git tags/kvm-riscv-6.13-1
for you to fetch changes up to 332fa4a802b16ccb727199da685294f85f9880cb:
riscv: kvm: Fix out-of-bounds array access (2024-11-05 13:27:32 +0530)
----------------------------------------------------------------
KVM/riscv changes for 6.13
- Accelerate KVM RISC-V when running as a guest
- Perf support to collect KVM guest statistics from host side
----------------------------------------------------------------
Anup Patel (13):
RISC-V: KVM: Order the object files alphabetically
RISC-V: KVM: Save/restore HSTATUS in C source
RISC-V: KVM: Save/restore SCOUNTEREN in C source
RISC-V: KVM: Break down the __kvm_riscv_switch_to() into macros
RISC-V: KVM: Replace aia_set_hvictl() with aia_hvictl_value()
RISC-V: KVM: Don't setup SGEI for zero guest external interrupts
RISC-V: Add defines for the SBI nested acceleration extension
RISC-V: KVM: Add common nested acceleration support
RISC-V: KVM: Use nacl_csr_xyz() for accessing H-extension CSRs
RISC-V: KVM: Use nacl_csr_xyz() for accessing AIA CSRs
RISC-V: KVM: Use SBI sync SRET call when available
RISC-V: KVM: Save trap CSRs in kvm_riscv_vcpu_enter_exit()
RISC-V: KVM: Use NACL HFENCEs for KVM request based HFENCEs
Bj?rn T?pel (1):
riscv: kvm: Fix out-of-bounds array access
Quan Zhou (2):
riscv: perf: add guest vs host distinction
riscv: KVM: add basic support for host vs guest profiling
Yong-Xuan Wang (1):
RISC-V: KVM: Fix APLIC in_clrip and clripnum write emulation
arch/riscv/include/asm/kvm_host.h | 10 ++ arch/riscv/include/asm/kvm_nacl.h | 245 ++++++++++++++++++++++++++++++++++++ arch/riscv/include/asm/perf_event.h | 6 + arch/riscv/include/asm/sbi.h | 120 ++++++++++++++++++ arch/riscv/kernel/perf_callchain.c | 38 ++++++ arch/riscv/kvm/Kconfig | 1 + arch/riscv/kvm/Makefile | 27 ++-- arch/riscv/kvm/aia.c | 114 +++++++++++------ arch/riscv/kvm/aia_aplic.c | 3 +- arch/riscv/kvm/main.c | 63 +++++++++- arch/riscv/kvm/mmu.c | 4 +- arch/riscv/kvm/nacl.c | 152 ++++++++++++++++++++++ arch/riscv/kvm/tlb.c | 57 ++++++--- arch/riscv/kvm/vcpu.c | 191 +++++++++++++++++++++------- arch/riscv/kvm/vcpu_sbi.c | 11 +- arch/riscv/kvm/vcpu_switch.S | 137 ++++++++++++-------- arch/riscv/kvm/vcpu_timer.c | 28 ++--- 17 files changed, 1022 insertions(+), 185 deletions(-) create mode 100644 arch/riscv/include/asm/kvm_nacl.h create mode 100644 arch/riscv/kvm/nacl.c
Paolo Bonzini
maintainerQuoted 6 lines · Anup Patel
Hi Paolo,
We have the following KVM RISC-V changes for 6.13:
1) Accelerate KVM RISC-V when running as a guest
2) Perf support to collect KVM guest statistics from host side
Quoted 8 lines
In addition, the pointer masking support (Ssnpm and Smnpm) for KVM guest is going through the RISC-V tree.
I also have Svade and Svadu support for host and guest in my queue which I will send in the second week of the merge window to avoid conflict with the RISC-V tree.
Please pull.
Pulled, thanks.
Paolo
Quoted 68 lines
Regards,
AnupThe following changes since commit
81983758430957d9a5cb3333fe324fd70cf63e7e:Linux 6.12-rc5 (2024-10-27 12:52:02 -1000)are available in the Git repository at:
https://github.com/kvm-riscv/linux.git tags/kvm-riscv-6.13-1for you to fetch changes up to
332fa4a802b16ccb727199da685294f85f9880cb:riscv: kvm: Fix out-of-bounds array access (2024-11-05 13:27:32 +0530)----------------------------------------------------------------
KVM/riscv changes for 6.13- Accelerate KVM RISC-V when running as a guest
- Perf support to collect KVM guest statistics from host side----------------------------------------------------------------
Anup Patel (13):
RISC-V: KVM: Order the object files alphabetically
RISC-V: KVM: Save/restore HSTATUS in C source
RISC-V: KVM: Save/restore SCOUNTEREN in C source
RISC-V: KVM: Break down the__kvm_riscv_switch_to()into macros
RISC-V: KVM: Replaceaia_set_hvictl()withaia_hvictl_value()
RISC-V: KVM: Don't setup SGEI for zero guest external interrupts
RISC-V: Add defines for the SBI nested acceleration extension
RISC-V: KVM: Add common nested acceleration support
RISC-V: KVM: Usenacl_csr_xyz()for accessing H-extension CSRs
RISC-V: KVM: Usenacl_csr_xyz()for accessing AIA CSRs
RISC-V: KVM: Use SBI sync SRET call when available
RISC-V: KVM: Save trap CSRs inkvm_riscv_vcpu_enter_exit()
RISC-V: KVM: Use NACL HFENCEs for KVM request based HFENCEsBj?rn T?pel (1):
riscv: kvm: Fix out-of-bounds array accessQuan Zhou (2):
riscv: perf: add guest vs host distinction
riscv: KVM: add basic support for host vs guest profilingYong-Xuan Wang (1):
RISC-V: KVM: Fix APLICin_clripand clripnum write emulationarch/riscv/include/asm/kvm_host.h | 10 ++ arch/riscv/include/asm/kvm_nacl.h | 245 ++++++++++++++++++++++++++++++++++++ arch/riscv/include/asm/perf_event.h | 6 + arch/riscv/include/asm/sbi.h | 120 ++++++++++++++++++ arch/riscv/kernel/perf_callchain.c | 38 ++++++ arch/riscv/kvm/Kconfig | 1 + arch/riscv/kvm/Makefile | 27 ++-- arch/riscv/kvm/aia.c | 114 +++++++++++------ arch/riscv/kvm/aia_aplic.c | 3 +- arch/riscv/kvm/main.c | 63 +++++++++- arch/riscv/kvm/mmu.c | 4 +- arch/riscv/kvm/nacl.c | 152 ++++++++++++++++++++++ arch/riscv/kvm/tlb.c | 57 ++++++--- arch/riscv/kvm/vcpu.c | 191 +++++++++++++++++++++------- arch/riscv/kvm/vcpu_sbi.c | 11 +- arch/riscv/kvm/vcpu_switch.S | 137 ++++++++++++-------- arch/riscv/kvm/vcpu_timer.c | 28 ++--- 17 files changed, 1022 insertions(+), 185 deletions(-)create mode 100644
arch/riscv/include/asm/kvm_nacl.hcreate mode 100644arch/riscv/kvm/nacl.c
This pull request was applied to riscv/linux.git (fixes) by Paolo Bonzini <[email protected]>:
Hello:
This pull request was applied to riscv/linux.git (fixes) by Paolo Bonzini <[email protected]>:
Quoted 10 lines · On Fri, 8 Nov 2024 17:07:34 +0530 you wrote:
Hi Paolo,
We have the following KVM RISC-V changes for 6.13:
1) Accelerate KVM RISC-V when running as a guest
2) Perf support to collect KVM guest statistics from host sideIn addition, the pointer masking support (Ssnpm and Smnpm) for KVM guest is going through the RISC-V tree.
[...]
Here is the summary with links:
- [GIT,PULL] KVM/riscv changes for 6.13
https://git.kernel.org/riscv/c/e3e0f9b7ae28
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This pull request was applied to riscv/linux.git (for-next) by Paolo Bonzini <[email protected]>:
Hello:
This pull request was applied to riscv/linux.git (for-next) by Paolo Bonzini <[email protected]>:
Quoted 10 lines · On Fri, 8 Nov 2024 17:07:34 +0530 you wrote:
Hi Paolo,
We have the following KVM RISC-V changes for 6.13:
1) Accelerate KVM RISC-V when running as a guest
2) Perf support to collect KVM guest statistics from host sideIn addition, the pointer masking support (Ssnpm and Smnpm) for KVM guest is going through the RISC-V tree.
[...]
Here is the summary with links:
- [GIT,PULL] KVM/riscv changes for 6.13
https://git.kernel.org/riscv/c/e3e0f9b7ae28
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html