[PW_SID:1129947] RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts#2315
[PW_SID:1129947] RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts#2315linux-riscv-bot wants to merge 1 commit into
Conversation
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>
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
|
Patch 1: "RISC-V: KVM: Avoid one-word masks for SBI v0.1 all-harts" |
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