From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Date: Wed, 18 Dec 2019 04:05:11 +0000 Subject: Re: [PATCH] KVM: PPC: Book3S HV: Fix regression on big endian hosts Message-Id: <47d1cm0Fsvz9sSP@ozlabs.org> List-Id: References: <20191215094900.46740-1-marcus@mc.pp.se> In-Reply-To: <20191215094900.46740-1-marcus@mc.pp.se> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Sun, 2019-12-15 at 09:49:00 UTC, "Marcus Comstedt" wrote: > 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. > > Signed-off-by: Marcus Comstedt Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/228b607d8ea1b7d4561945058d5692709099d432 cheers