On Wed, 26 Jan 2011, Anthony Liguori wrote: > On 01/25/2011 08:29 AM, anthony.per...@citrix.com wrote: > > From: Anthony PERARD<anthony.per...@citrix.com> > > > > Update the libxenctrl calls in Qemu to use the new interface, otherwise > > Qemu wouldn't be able to build against new versions of the library. > > > > We also check libxenctrl version in configure, from Xen 3.3.0 to Xen > > unstable. > > > > Signed-off-by: Anthony PERARD<anthony.per...@citrix.com> > > Signed-off-by: Stefano Stabellini<stefano.stabell...@eu.citrix.com> > > ---
> > diff --git a/hw/xen_backend.c b/hw/xen_backend.c > > index 860b038..7e78546 100644 > > --- a/hw/xen_backend.c > > +++ b/hw/xen_backend.c > > @@ -43,7 +43,8 @@ > > /* ------------------------------------------------------------- */ > > > > /* public */ > > -int xen_xc; > > +qemu_xc_interface xen_xc = XC_HANDLER_INITIAL_VALUE; > > +qemu_xc_gnttab xen_xcg = XC_HANDLER_INITIAL_VALUE; > > > > Where ever qemu_xc_interface comes from, the typename needs to change. I can call it XCInterface, even if is not always a struct. Same for qemu_xc_gnttab and xc_evtchn. > > +/* Xen unstable */ > > +#if CONFIG_XEN_CTRL_INTERFACE_VERSION< 410 > > +typedef int qemu_xc_interface; > > > > Ah, right here :-) > > Regards, Thanks, -- Anthony PERARD