diff options
| author | Ritesh Harjani (IBM) <ritesh.list@gmail.com> | 2026-11-01 20:58:06 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-11-20 13:25:17 +0530 |
| commit | b282541b555b9ddc64b85fbe00bbc39522aaa911 (patch) | |
| tree | f6a648dd4eef40bc4935bae7d0621266253cccd5 /tools/perf/scripts/python | |
| parent | 9ea01307e6c824eb0b8934d95d52bbacae17887d (diff) | |
KVM: PPC: Book3S HV: Read EX_DSISR as a 32-bit field on guest exit
kvmhv_vcpu_entry_p9() recovers the guest fault state from the paca
exception save area with
vcpu->arch.fault_dsisr = exsave[EX_DSISR/sizeof(u64)];
but EX_DSISR is not a doubleword. It is a 32-bit field at offset 48 that
shares a doubleword with EX_CCR at offset 52 and the exception entry in
exceptions-64s.S stores it accordingly. For e.g.
stw r10,IAREA+EX_DSISR(r13)
This issue was caught when running kvm selftests on big-endian, where
this read would land in the high half and the truncation yields EX_CCR
instead - KVM acts on the guest's condition register as if it were
HDSISR.
The result is that every HDSI on a big-endian host is evaluated against a
bogus fault status i.e. it fails with below error:
KVM: Got radix HV page fault with DSISR=84004840
Let's fix this by reading this field at it's natural width.
Fixes: 89d35b239101 ("KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in C")
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/4e883269c887f68f4d9d54f2675799df147a5db5.1793546707.git.ritesh.list@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
