From: Michael Ellerman Date: Tue, 31 May 2016 10:17:13 +0000 Subject: Re: powerpc: Fix definition of SIAR and SDAR registers Message-Id: <3rJqD91lxcz9t3s@ozlabs.org> List-Id: In-Reply-To: <1463052404-18092-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thomas Huth , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Cc: Madhavan Srinivasan , Alexander Graf , kvm-ppc@vger.kernel.org On Thu, 2016-12-05 at 11:26:44 UTC, Thomas Huth wrote: > The SIAR and SDAR registers are available twice, one time as SPRs > 780 / 781 (unprivileged, but read-only), and one time as the SPRs > 796 / 797 (privileged, but read and write). The Linux kernel code > currently uses the unprivileged SPRs - while this is OK for reading, > writing to that register of course does not work. > Since the KVM code tries to write to this register, too (see the mtspr > in book3s_hv_rmhandlers.S), the contents of this register sometimes get > lost for the guests, e.g. during migration of a VM. > To fix this issue, simply switch to the privileged SPR numbers instead. > > Signed-off-by: Thomas Huth > Acked-by: Paul Mackerras Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/d23fac2b27d94aeb7b65536a50 cheers