From: Paul Mackerras <paulus@ozlabs.org>
To: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: PPC: Book3S HV: Restore SPRG3 in kvmhv_p9_guest_entry()
Date: Fri, 31 May 2019 16:37:52 +1000 [thread overview]
Message-ID: <20190531063752.GH26651@blackberry> (raw)
In-Reply-To: <20190530021718.22584-1-sjitindarsingh@gmail.com>
On Thu, May 30, 2019 at 12:17:18PM +1000, Suraj Jitindar Singh wrote:
> The sprgs are a set of 4 general purpose sprs provided for software use.
> SPRG3 is special in that it can also be read from userspace. Thus it is
> used on linux to store the cpu and numa id of the process to speed up
> syscall access to this information.
>
> This register is overwritten with the guest value on kvm guest entry,
> and so needs to be restored on exit again. Thus restore the value on
> the guest exit path in kvmhv_p9_guest_entry().
>
> Fixes: 95a6432ce9038 ("KVM: PPC: Book3S HV: Streamlined guest entry/exit path on P9 for radix guests")
>
> Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Thanks, patch applied to my kvm-ppc-fixes branch.
Paul.
prev parent reply other threads:[~2019-05-31 6:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 2:17 [PATCH] KVM: PPC: Book3S HV: Restore SPRG3 in kvmhv_p9_guest_entry() Suraj Jitindar Singh
2019-05-31 6:37 ` Paul Mackerras [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=20190531063752.GH26651@blackberry \
--to=paulus@ozlabs.org \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=sjitindarsingh@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox