Skip to content

[PW_SID:1119512] riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc#2183

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1119512
Closed

[PW_SID:1119512] riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc#2183
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1119512

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

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

Linux RISC-V bot and others added 2 commits July 1, 2026 03:48
… 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>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 119.83 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1122.34 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1447.14 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.73 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 23.34 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.58 seconds
Result: WARNING
Output:

WARNING: Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format
#15: 
Assisted-by: YuanSheng: deepseek-v4-pro

CHECK: Consider using #include <linux/cpufeature.h> instead of <asm/cpufeature.h>
#32: FILE: arch/riscv/kvm/gstage.c:13:
+#include <asm/cpufeature.h>

total: 0 errors, 1 warnings, 1 checks, 20 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit 7c2a8cc33c88 ("riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 1 warnings, 1 checks, 20 lines checked
CHECK: Consider using #include <linux/cpufeature.h> instead of <asm/cpufeature.h>
WARNING: Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 78.57 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
kdoc
Desc: Detects for kdoc errors
Duration: 0.72 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: kvm: Skip preventive hfence.gvma for new G-stage mappings with Svvptc"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 3 times, most recently from a50938c to 40ba5ca Compare July 8, 2026 17:32
@linux-riscv-bot
linux-riscv-bot deleted the pw1119512 branch July 9, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants