[GIT PULL] KVM/riscv fixes for 7.4 take #1
Paolo Bonzini
pbonzini at redhat.com
Fri Nov 20 08:54:29 PST 2026
On Fri, Nov 20, 2026 at 12:25 PM Anup Patel <anup at brainfault.org> wrote:
>
> Hi Paolo,
>
> We have the following fixes for 7.4 kernel:
> 1) Validate AIA MMIO address ranges before AIA is initialized
> 2) Disallow GPA-width changes after AIA is initialized
> 3) Fix double free of the split page cache
> 4) Do not touch the envcfg CSRs on the SiFive P550
> (Note: SiFive P550 is based on Priv v1.11 so it
> does not have envcfg CSR hence this fix)
> 5) Set Accessed bit in dirty-log write fault fast-path
> 6) Validate PMU counter info using available counters
> 7) Fix G-stage page table memory leak on VM destroy
> (Note: This one was a pretty embarrassing issue
> which we totally missed over the years)
Pulled, thanks.
Paolo
>
> Please pull.
>
> Regards,
> Anup
>
> The following changes since commit aebb7274476403040d582c61478df8f4a7bf9cd3:
>
> Linux 7.4-rc3 (2026-11-15 14:30:11 -0800)
>
> are available in the Git repository at:
>
> https://github.com/kvm-riscv/linux.git tags/kvm-riscv-fixes-7.4-1
>
> for you to fetch changes up to e9bf49bbc4227048685c78f97e1446845760df4f:
>
> RISC-V: KVM: Fix G-stage page table memory leak on VM destroy
> (2026-11-16 18:06:25 +0530)
>
> ----------------------------------------------------------------
> KVM/riscv fixes for 7.4, take #1
>
> - Validate AIA MMIO address ranges before AIA is initialized
> - Disallow GPA-width changes after AIA is initialized
> - Fix double free of the split page cache
> - Do not touch the envcfg CSRs on the SiFive P550
> - Set Accessed bit in dirty-log write fault fast-path
> - Validate PMU counter info using available counters
> - Fix G-stage page table memory leak on VM destroy
>
> ----------------------------------------------------------------
> Davidlohr Bueso (1):
> RISC-V: KVM: Do not touch the envcfg CSRs on the SiFive P550
>
> Li Jinyue (1):
> RISC-V: KVM: Fix double free of the split page cache
>
> Pengpeng Hou (2):
> RISC-V: KVM: Validate AIA MMIO address ranges
> RISC-V: KVM: Disallow GPA-width changes after AIA init
>
> Qingwei Hu (1):
> RISC-V: KVM: Validate PMU counter info using available counters
>
> SeungJu Cheon (1):
> KVM: riscv: Set Accessed bit in dirty-log write fault fast path
>
> Yangyu Chen (1):
> RISC-V: KVM: Fix G-stage page table memory leak on VM destroy
>
> arch/riscv/include/asm/kvm_gstage.h | 2 ++
> arch/riscv/include/asm/kvm_host.h | 1 +
> arch/riscv/kvm/aia_device.c | 49 ++++++++++++++++++++++++++++++++++---
> arch/riscv/kvm/gstage.c | 22 +++++++++++++++++
> arch/riscv/kvm/main.c | 9 +++++++
> arch/riscv/kvm/mmu.c | 12 ++++-----
> arch/riscv/kvm/vcpu.c | 6 +++--
> arch/riscv/kvm/vcpu_config.c | 16 +++++++-----
> arch/riscv/kvm/vcpu_pmu.c | 2 +-
> arch/riscv/kvm/vcpu_sbi_fwft.c | 20 +++++++++++----
> arch/riscv/kvm/vm.c | 5 +++-
> 11 files changed, 118 insertions(+), 26 deletions(-)
>
More information about the kvm-riscv
mailing list