diff options
author | Marcus Comstedt <[email protected]> | 2019-12-15 10:49:00 +0100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2019-12-17 15:09:08 +1100 |
commit | 228b607d8ea1b7d4561945058d5692709099d432 (patch) | |
tree | 07461f439440d69a0bda5f901941f584595229d9 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 61e3acd8c693a14fc69b824cb5b08d02cb90a6e7 (diff) |
KVM: PPC: Book3S HV: Fix regression on big endian hosts
VCPU_CR is the offset of arch.regs.ccr in kvm_vcpu.
arch/powerpc/include/asm/kvm_host.h defines arch.regs as a struct
pt_regs, and arch/powerpc/include/asm/ptrace.h defines the ccr field
of pt_regs as "unsigned long ccr". Since unsigned long is 64 bits, a
64-bit load needs to be used to load it, unless an endianness specific
correction offset is added to access the desired subpart. In this
case there is no reason to _not_ use a 64 bit load though.
Fixes: 6c85b7bc637b ("powerpc/kvm: Use UV_RETURN ucall to return to ultravisor")
Cc: [email protected] # v5.4+
Signed-off-by: Marcus Comstedt <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions