From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH] KVM: PPC: Book3S HV: Fix regression on big endian hosts
Date: Wed, 18 Dec 2019 04:05:11 +0000 [thread overview]
Message-ID: <47d1cm0Fsvz9sSP@ozlabs.org> (raw)
In-Reply-To: <20191215094900.46740-1-marcus@mc.pp.se>
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@mc.pp.se>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/228b607d8ea1b7d4561945058d5692709099d432
cheers
prev parent reply other threads:[~2019-12-18 4:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-15 9:49 [PATCH] KVM: PPC: Book3S HV: Fix regression on big endian hosts Marcus Comstedt
2019-12-18 4:05 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47d1cm0Fsvz9sSP@ozlabs.org \
--to=patch-notifications@ellerman.id.au \
--cc=kvm-ppc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.