From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Date: Tue, 14 Dec 2010 08:48:54 +0000 Subject: Re: re-writing on powerpc Message-Id: <4D072F76.8060405@redhat.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On 12/13/2010 07:17 PM, Hollis Blanchard wrote: >> Rewriting is dangerous if the guest is unaware of it. As soon as it >> is made aware of it, it might as well actually do it in the best way >> that suits it. > > Can you list some examples of dangerous scenarios? > - guest checksums own kernel pages - clever compiler reuses code for constant pool - guest patches itself (a la linux alternatives), surprised when it sees a different instruction - guest jits own kernel code (like Singularity), gets confused when it reads back something it didn't write -- error compiling committee.c: too many arguments to function