Re: [PATCH 14/23] vhost: convert to MemoryListener API

2011-12-22 Thread Avi Kivity
On 12/22/2011 02:57 PM, Michael S. Tsirkin wrote: > On Thu, Dec 22, 2011 at 02:50:27PM +0200, Avi Kivity wrote: > > On 12/22/2011 02:50 PM, Michael S. Tsirkin wrote: > > > On Mon, Dec 19, 2011 at 04:13:35PM +0200, Avi Kivity wrote: > > > > +static void vhost_log_start(MemoryListener *listener, > >

Re: [PATCH 14/23] vhost: convert to MemoryListener API

2011-12-22 Thread Michael S. Tsirkin
On Thu, Dec 22, 2011 at 02:50:27PM +0200, Avi Kivity wrote: > On 12/22/2011 02:50 PM, Michael S. Tsirkin wrote: > > On Mon, Dec 19, 2011 at 04:13:35PM +0200, Avi Kivity wrote: > > > +static void vhost_log_start(MemoryListener *listener, > > > +MemoryRegionSection *sectio

Re: [PATCH 14/23] vhost: convert to MemoryListener API

2011-12-22 Thread Avi Kivity
On 12/22/2011 02:50 PM, Michael S. Tsirkin wrote: > On Mon, Dec 19, 2011 at 04:13:35PM +0200, Avi Kivity wrote: > > +static void vhost_log_start(MemoryListener *listener, > > +MemoryRegionSection *section) > > +{ > > +/* FIXME: implement */ > > +} > > + > > +static v

Re: [PATCH 14/23] vhost: convert to MemoryListener API

2011-12-22 Thread Michael S. Tsirkin
On Mon, Dec 19, 2011 at 04:13:35PM +0200, Avi Kivity wrote: > +static void vhost_log_start(MemoryListener *listener, > +MemoryRegionSection *section) > +{ > +/* FIXME: implement */ > +} > + > +static void vhost_log_stop(MemoryListener *listener, > +

[PATCH 14/23] vhost: convert to MemoryListener API

2011-12-19 Thread Avi Kivity
Drop the use of cpu_register_phys_memory_client() in favour of the new MemoryListener API. The new API simplifies the caller, since there is no need to deal with splitting and merging slots; however this is not exploited in this patch. Signed-off-by: Avi Kivity --- hw/vhost.c | 126 +++