[PW_SID:1119512] riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc#2183
[PW_SID:1119512] riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc#2183linux-riscv-bot wants to merge 2 commits into
Conversation
… Svvptc For Invalid->Valid G-stage leaf PTE updates, the flush in kvm_riscv_gstage_set_pte() is preventive. When Svvptc is available, new valid PTEs become visible to the page-table walker within a bounded time, so an immediate hfence.gvma is unnecessary. Skip gstage_tlb_flush() for that case. Permission-restricting updates continue to use the existing flush path. Assisted-by: YuanSheng: deepseek-v4-pro Co-developed-by: Quan Zhou <zhouquan@iscas.ac.cn> Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn> Signed-off-by: Dylan.Wu <fredwudi0305@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
|
Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc" |
a50938c to
40ba5ca
Compare
PR for series 1119512 applied to workflow__riscv__fixes
Name: riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1119512
Version: 1