From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Fri, 30 May 2014 12:47:01 +0000 Subject: Re: Does KVM support the P.A. Semi PA6T cpu? Message-Id: <53887DC5.9080908@suse.de> List-Id: References: <53511C7B.5010208@xenosoft.de> In-Reply-To: <53511C7B.5010208@xenosoft.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: kvm-ppc@vger.kernel.org On 30.05.14 14:42, Christian Zigotzky wrote: > Am 30.05.14 14:21, schrieb Alexander Graf: >> >> On 30.05.14 13:39, Christian Zigotzky wrote: >>> Hi Alex, >>> >>> Thank you for your answer. Here are the traces: >>> >>> http://www.xenosoft.de/trace_mol_mac_os_x_tiger.txt.tar.gz >>> http://www.xenosoft.de/trace_mol_mac_os_x_jaguar.txt.tar.gz >> >> Looking at the Jaguar log, the guest seems to be stuck trying to map=20 >> a page: >> >> mol-4087 [001] .... 252.368002: kvm_exit:=20 >> exit=DATA_STORAGE | pc=3D0x900074c4 | msr=3D0x4000d030 | dar=3D0xa000a43= 4 |=20 >> srr1=3D0x100000000000d032 | last_inst=3D0x912b0 >> 000 >> >> If you look at the trace, you will see that this PC with the exact=20 >> same DAR happens over and over again - every time the guest thinks=20 >> it's mapped the page. >> >> I don't know why that's happening. Try to enable the debug prints (or=20 >> convert them to trace points ;)) in the book3s_32 guest and book3s_64=20 >> host emulation. Maybe that tells us something. >> >> >> Alex > Thanks Alex for your effort. How can I enable the debug prints? This should do the trick. Output will be in dmesg: diff --git a/arch/powerpc/kvm/book3s_32_mmu.c=20 b/arch/powerpc/kvm/book3s_32_mmu.c index 93503bb..939b14f 100644 --- a/arch/powerpc/kvm/book3s_32_mmu.c +++ b/arch/powerpc/kvm/book3s_32_mmu.c @@ -27,8 +27,8 @@ #include #include -/* #define DEBUG_MMU */ -/* #define DEBUG_MMU_PTE */ +#define DEBUG_MMU +#define DEBUG_MMU_PTE /* #define DEBUG_MMU_PTE_IP 0xfff14c40 */ #ifdef DEBUG_MMU There's also always the chance that split real mode is the real culprit=20 for breakage here. Have you verified that the same kernel source (KVM=20 code) works on a PPC32 host with MOL? Alex