forgot to cc the list ---------- Forwarded message ---------- From: Christoffer Dall <cd2436 at columbia.edu> Date: Tue, Nov 3, 2009 at 10:53 PM Subject: Re: Uncompressing linux message To: Hollis Blanchard <hollis at penguinppc.org> Hi Hollis. Thanks for the input. Indeed the fix makes sure we don't loose any MMIO. The prints look very normal and pretty and I updated the nice picture on the site;) /Christoffer On Sun, Nov 1, 2009 at 2:03 PM, Hollis Blanchard <hollis at penguinppc.org> wrote: > On Sat, Oct 31, 2009 at 10:41 PM, Christoffer Dall <cd2436 at columbia.edu> wrote: >> I placed a screenshot of the guest printing "Uncompressing linux..." >> on the wiki: http://android.chazy.dk. >> >> The crash which can be seen in the screenshot will be the main focus >> of my work in the nearest future together with determining why some >> characters are dropped in the mmio operations. There will also be some >> more work in cleaning up the emulation code to make it all kernel >> style and easier to maintain. > > We had a very similar problem on PowerPC, and it looks like it may be > the same cause for you. Basically kvm_arch_vcpu_ioctl_run() should > look something like this: > + ? ? ? ? ? ? ? if (!run->exit_reason) { > ? ? ? ? ? ? ? ?if (signal_pending(current)) { > ? ? ? ? ? ? ? ? ? ? ? ?run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN; > ? ? ? ? ? ? ? ? ? ? ? ?break; > ? ? ? ? ? ? ? ?} > + ? ? ? ? ? ? ? } > > Otherwise, you can have kvm_run all filled out for MMIO emulation, > then see a pending signal and clobber it. > > -Hollis >