[PW_SID:993519] Fix hgatp mode settings within kvm_riscv_gstage_vmid_detect - #810
[PW_SID:993519] Fix hgatp mode settings within kvm_riscv_gstage_vmid_detect#810linux-riscv-bot wants to merge 2 commits into
Conversation
According to the RISC-V Privileged Architecture Spec, when MODE=Bare is selected,software must write zero to the remaining fields of hgatp. We have detected the valid mode supported by the HW before, So using a valid mode to detect how many vmid bits are supported. Fixes: fd7bb4a ("RISC-V: KVM: Implement VMID allocator") Reviewed-by: Nutty Liu <nutty.liu@hotmail.com> Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The HGATP has been set to zero in gstage_mode_detect(), so there is no need to save the old context. Unify the code convention with gstage_mode_detect(). Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org> Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 1: "[v3,1/2] RISC-V: KVM: Write hgatp register with valid mode bits" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
|
Patch 2: "[v3,2/2] RISC-V KVM: Remove unnecessary HGATP csr_read" |
PR for series 993519 applied to workflow__riscv__fixes
Name: Fix hgatp mode settings within kvm_riscv_gstage_vmid_detect
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=993519
Version: 3