[PW_SID:1129941] RISC-V: KVM: Reject overlapping AIA IMSIC address fields#2312
[PW_SID:1129941] RISC-V: KVM: Reject overlapping AIA IMSIC address fields#2312linux-riscv-bot wants to merge 2 commits into
Conversation
KVM lets userspace configure the IMSIC guest, HART, group-width, and group-shift fields independently. The individual bounds allow a layout such as guest_bits=7, hart_bits=6, group_bits=1, and group_shift=24. That layout places the group index bit at bit 24 while the lower guest+HART field also extends through bit 24. The IMSIC address helpers later consume these values as one address layout: aia_imsic_ppn() masks the lower guest+HART field and the group field, while aia_imsic_hart_index() combines the group and HART index. Allowing an overlapping configuration therefore gives one address bit two different meanings. Reject group-index layouts that start before the end of the guest+HART field before initializing the in-kernel irqchip. Fixes: 89d0130 ("RISC-V: KVM: Implement device interface for AIA irqchip") 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: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
|
Patch 1: "RISC-V: KVM: Reject overlapping AIA IMSIC address fields" |
8ca72ef to
60e0882
Compare
PR for series 1129941 applied to workflow__riscv__fixes
Name: RISC-V: KVM: Reject overlapping AIA IMSIC address fields
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129941
Version: 1