Skip to content

[PW_SID:1129947] RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts#2315

Open
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1129947
Open

[PW_SID:1129947] RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts#2315
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1129947

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1129947 applied to workflow__riscv__fixes

Name: RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129947
Version: 1

KVM already treats a NULL hart-mask pointer in SBI v0.1 calls as all
harts, matching OpenSBI's legacy handling. The current handler builds that
target set as (1UL << online_vcpus) - 1 before iterating the mask.

That expression shifts by the type width once the VM has BITS_PER_LONG
online vCPUs, and a single word cannot represent larger VMs. A count-based
mask also selects the wrong IDs when vCPU IDs are sparse.

Handle SEND_IPI with a NULL hart-mask by iterating all online vCPUs
directly. For remote fence calls, use the existing hbase == -1UL
convention so the common fence request helper targets the whole VM
without consulting hmask.

Non-NULL guest hart masks keep the existing v0.1 behavior.

Fixes: a046c2d ("RISC-V: KVM: Reorganize SBI code by moving SBI v0.1 to its own file")
Signed-off-by: Pengpeng Hou <pengpeng@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: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 142.45 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1157.44 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1442.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.70 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.69 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.95 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 87.50 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
kdoc
Desc: Detects for kdoc errors
Duration: 0.85 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

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