On Mon, Aug 29, 2011 at 10:21:03AM +0300, Avi Kivity wrote: > On 08/29/2011 09:15 AM, Avi Kivity wrote: > > On 08/29/2011 09:00 AM, Edgar E. Iglesias wrote: > >> > > >> > It does bite, as I saw with gdb. You can even see that from the > >> > qemu error - it complains about unimplemented command 0xf0, that > >> > comes from pflash_write() later on. > >> > >> I wasn't clear enough maybe, the code in question is running, but the > >> set_readble is not having any effect AFAICT. The reads, that > >> should come through via IO callbacks when switching mode are > >> not getting through. Do you ever see pflash_read beeing called? > >> > > > > Thanks for the clarification. I don't, and there is now a fix on > > > > git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git > > > > Forgot the branch: > > git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git fix-pflash
That works Thanks