[Qemu-devel] Re: [PATCH v2][uqmaster] kvm: Flush coalesced MMIO buffer periodly

2010-01-26 Thread Sheng Yang
On Tue, Jan 26, 2010 at 10:59:17AM +0100, Alexander Graf wrote: > > On 26.01.2010, at 10:41, Sheng Yang wrote: > > > --- a/kvm-all.c > > +++ b/kvm-all.c > > @@ -59,6 +59,7 @@ struct KVMState > > int vmfd; > > int regs_modified; > > int coalesced_mmio; > > +struct kvm_coalesced_mmi

[Qemu-devel] Re: [PATCH v2][uqmaster] kvm: Flush coalesced MMIO buffer periodly

2010-01-26 Thread Alexander Graf
On 26.01.2010, at 10:41, Sheng Yang wrote: > The default action of coalesced MMIO is, cache the writing in buffer, until: > 1. The buffer is full. > 2. Or the exit to QEmu due to other reasons. > > But this would result in a very late writing in some condition. > 1. The each time write to MMIO c