From: Benjamin Herrenschmidt Date: Tue, 13 Mar 2012 21:52:44 +0000 (+0000) Subject: powerpc/kvm: Fix magic page vs. 32-bit RTAS on ppc64 X-Git-Tag: v3.5-rc1~88^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbcc9c06695243ea23d30de36842df9200c33857;p=pandora-kernel.git powerpc/kvm: Fix magic page vs. 32-bit RTAS on ppc64 When the kernel calls into RTAS, it switches to 32-bit mode. The magic page was is longer accessible in that case, causing the patched instructions in the RTAS call wrapper to crash. This fixes it by making available a 32-bit mapping of the magic page in that case. This mapping is flushed whenever we switch the kernel back to 64-bit mode. Signed-off-by: Benjamin Herrenschmidt [agraf: add a check if the magic page is mapped] Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed