Re: [PATCH RFC 9/9] KVM: Dirty ring support

2020-03-26 Thread Peter Xu
On Thu, Mar 26, 2020 at 02:14:36PM +, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > On Wed, Mar 25, 2020 at 08:41:44PM +, Dr. David Alan Gilbert wrote: > > > > [...] > > > > > > +enum KVMReaperState { > > > > +KVM_REAPER_NONE = 0, > > > > +/* The

Re: [PATCH RFC 9/9] KVM: Dirty ring support

2020-03-26 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Wed, Mar 25, 2020 at 08:41:44PM +, Dr. David Alan Gilbert wrote: > > [...] > > > > +enum KVMReaperState { > > > +KVM_REAPER_NONE = 0, > > > +/* The reaper is sleeping */ > > > +KVM_REAPER_WAIT, > > > +/* The reaper is reaping for

Re: [PATCH RFC 9/9] KVM: Dirty ring support

2020-03-25 Thread Peter Xu
On Wed, Mar 25, 2020 at 08:41:44PM +, Dr. David Alan Gilbert wrote: [...] > > +enum KVMReaperState { > > +KVM_REAPER_NONE = 0, > > +/* The reaper is sleeping */ > > +KVM_REAPER_WAIT, > > +/* The reaper is reaping for dirty pages */ > > +KVM_REAPER_REAPING, > > +}; > >

Re: [PATCH RFC 9/9] KVM: Dirty ring support

2020-03-25 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > KVM dirty ring is a new interface to pass over dirty bits from kernel > to the userspace. Instead of using a bitmap for each memory region, > the dirty ring contains an array of dirtied GPAs to fetch. For each > vcpu there will be one dirty ring that binds