Re: [PATCH] KVM: PPC: Book3S HV: Fix regression on big endian hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <marcus@xxxxxxxx>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/228b607d8ea1b7d4561945058d5692709099d432

cheers



[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux