Skip to content

[PW_SID:972970] RISC-V: KVM: Allow zicop/bfloat16 exts for guest#544

Closed
linux-riscv-bot wants to merge 5 commits into
workflow__riscv__fixesfrom
pw972970
Closed

[PW_SID:972970] RISC-V: KVM: Allow zicop/bfloat16 exts for guest#544
linux-riscv-bot wants to merge 5 commits into
workflow__riscv__fixesfrom
pw972970

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 972970 applied to workflow__riscv__fixes

Name: RISC-V: KVM: Allow zicop/bfloat16 exts for guest
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=972970
Version: 1

zcxGGmu added 5 commits June 17, 2025 13:56
We're about to allow guests to use the Zicbop extension.
KVM userspace needs to know the cache block size in order to
properly advertise it to the guest. Provide a virtual config
register for userspace to get it with the GET_ONE_REG API, but
setting it cannot be supported, so disallow SET_ONE_REG.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Extend the KVM ISA extension ONE_REG interface to allow KVM user space
to detect and enable Zicbop extension for Guest/VM.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Extend the KVM ISA extension ONE_REG interface to allow KVM user space
to detect and enable Zfbmin/Zvfbfmin/Zvfbfwma extension for Guest/VM.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The KVM RISC-V allows Zicbop extension for Guest/VM
so add them to get-reg-list test.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The KVM RISC-V allows Zfbfmin/Zvfbfmin/Zvfbfwma extensions for Guest/VM
so add them to get-reg-list test.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 102.61 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1028.83 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1513.72 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.61 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 70.53 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
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: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
kdoc
Desc: Detects for kdoc errors
Duration: 0.81 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/5] RISC-V: KVM: Provide UAPI for Zicbop block size"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 101.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1031.19 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1499.95 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 19.97 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.83 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.92 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 71.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
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 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
kdoc
Desc: Detects for kdoc errors
Duration: 0.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/5] RISC-V: KVM: Allow Zicbop extension for Guest/VM"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 1.63 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[3/5] RISC-V: KVM: Allow bfloat16 extension for Guest/VM"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 102.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[3/5] RISC-V: KVM: Allow bfloat16 extension for Guest/VM"
kdoc
Desc: Detects for kdoc errors
Duration: 0.84 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[3/5] RISC-V: KVM: Allow bfloat16 extension for Guest/VM"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[3/5] RISC-V: KVM: Allow bfloat16 extension for Guest/VM"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[3/5] RISC-V: KVM: Allow bfloat16 extension for Guest/VM"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 103.08 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 920.08 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1239.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.52 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.60 seconds
Result: WARNING
Output:

WARNING: line length of 112 exceeds 100 columns
#50: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:872:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_CONFIG | KVM_REG_RISCV_CONFIG_REG(zicbop_block_size),

WARNING: line length of 121 exceeds 100 columns
#51: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:873:
+	KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZICBOP,

WARNING: line length of 112 exceeds 100 columns
#62: FILE: tools/testing/selftests/kvm/riscv/get-reg-list.c:1025:
+	{"zicbop", .feature = KVM_RISCV_ISA_EXT_ZICBOP, .regs = zicbop_regs, .regs_n = ARRAY_SIZE(zicbop_regs),}

total: 0 errors, 3 warnings, 0 checks, 55 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 5e2a1d45e826 ("KVM: riscv: selftests: Add Zicbop extension to get-reg-list test") 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, 3 warnings, 0 checks, 55 lines checked
WARNING: line length of 112 exceeds 100 columns
WARNING: line length of 121 exceeds 100 columns


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 72.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
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 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[4/5] KVM: riscv: selftests: Add Zicbop extension to get-reg-list test"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 102.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 921.37 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1239.54 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.51 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.64 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 71.06 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
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 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
kdoc
Desc: Detects for kdoc errors
Duration: 0.90 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[5/5] KVM: riscv: selftests: Add bfloat16 extension to get-reg-list test"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw972970 branch June 18, 2025 14:20
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