From: Benjamin Herrenschmidt Date: Wed, 11 Nov 2009 01:03:42 +0000 Subject: Re: kvm book3s issues Message-Id: <1257901422.2140.8.camel@pasglop> List-Id: References: <1257837645.13611.313.camel@pasglop> In-Reply-To: <1257837645.13611.313.camel@pasglop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org > >> + li r4,0 > >> mfspr r5,SPRN_HID5 > > r5 = *HID5 So far so good... > >> - rldimi r5,r5,6,56 > > Take r5, remove some bits, write into r5 Hrm... nope :-) rldimi will insert into the destination (r5) bits 56..57 the corresponding bits from the source (r5) after that source has been rotated left by 6 bits. That means inserting the 2 low bits of r5 into r5[56:57] afaik :-) > >> + rldimi r5,r4,6,56 > > Take r4, remove some bits, write into r5. My variant will insert the bits from r4 which is 0, means it's going to insert 0's in r5[56:57] which is what you want (clear the two dcbz special bits) right ? > Or did I miss anything? I think you did :-) > > Note: The karmic installer still goes bonkers a bit later, I don't > > know > > why yet (works without -enable-kvm). I need to run it without it's > > "quiet" thingy so I can see what's happening :-) > > Hum, would be interesting to know where it breaks. Either way you're > running the guest pretty far already as userspace is apparently > running. So that's good news :-). Yeah, I'll track it down when I have some time, I have some other emergency right now. Cheers, Ben.