qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/6] target/riscv: Fix PMP related problem


From: LIU Zhiwei
Subject: Re: [PATCH 0/6] target/riscv: Fix PMP related problem
Date: Tue, 18 Apr 2023 11:07:47 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0


On 2023/4/13 17:01, Weiwei Li wrote:
This patchset tries to fix the PMP bypass problem issue 
https://gitlab.com/qemu-project/qemu/-/issues/1542

Please add your analysis of this issue here.

By the way, I think this problem is introduced by

https://www.mail-archive.com/qemu-devel@nongnu.org/msg939331.html

I have commented on how to correct this patch. But by accident, it has been merged.

Zhiwei


The port is available here:
https://github.com/plctlab/plct-qemu/tree/plct-pmp-fix

Weiwei Li (6):
   target/riscv: Update pmp_get_tlb_size()
   target/riscv: Move pmp_get_tlb_size apart from
     get_physical_address_pmp
   target/riscv: flush tlb when pmpaddr is updated
   target/riscv: Flush TLB only when pmpcfg/pmpaddr really changes
   target/riscv: flush tb when PMP entry changes
   accel/tcg: Remain TLB_INVALID_MASK in the address when TLB is
     re-filled

  accel/tcg/cputlb.c        |  7 -----
  target/riscv/cpu_helper.c | 19 ++++---------
  target/riscv/pmp.c        | 60 ++++++++++++++++++++++++++-------------
  target/riscv/pmp.h        |  3 +-
  4 files changed, 47 insertions(+), 42 deletions(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]