Received: from eggs.gnu.org ([2001:4830:134:3::10]:43164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRgCb-0002a5-6X for qemu-devel@nongnu.org; Mon, 25 Jul 2016 09:45:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRgCX-0002Ah-0k for qemu-devel@nongnu.org; Mon, 25 Jul 2016 09:45:48 -0400 Received: from smtp.citrix.com ([66.165.176.89]:38047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRgCW-0002A6-Rs for qemu-devel@nongnu.org; Mon, 25 Jul 2016 09:45:44 -0400 Date: Mon, 25 Jul 2016 14:45:29 +0100 From: Anthony PERARD Message-ID: <20160725134529.GH1835@perard.uk.xensource.com> References: <1468151270-12984-1-git-send-email-emilcondrea@gmail.com> <1468151270-12984-3-git-send-email-emilcondrea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1468151270-12984-3-git-send-email-emilcondrea@gmail.com> Subject: Re: [Qemu-devel] [Xen-devel] [PATCH 02/19] xen: Create a new file xen_frontend.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Emil Condrea Cc: qemu-devel@nongnu.org, wei.liu2@citrix.com, stefanb@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org, quan.xu@intel.com, dgdegra@tycho.nsa.gov, eblake@redhat.com On Sun, Jul 10, 2016 at 02:47:33PM +0300, Emil Condrea wrote: > Its purpose is to store frontend related functions. > > Signed-off-by: Quan Xu > Signed-off-by: Emil Condrea > --- > hw/block/xen_disk.c | 1 + > hw/display/xenfb.c | 1 + > hw/net/xen_nic.c | 1 + > hw/xen/Makefile.objs | 2 +- > hw/xen/xen_backend.c | 47 +---------------------------- > hw/xen/xen_frontend.c | 70 +++++++++++++++++++++++++++++++++++++++++++ > include/hw/xen/xen_backend.h | 3 -- > include/hw/xen/xen_frontend.h | 10 +++++++ > 8 files changed, 85 insertions(+), 50 deletions(-) > create mode 100644 hw/xen/xen_frontend.c > create mode 100644 include/hw/xen/xen_frontend.h > > diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c > index 90aca73..28fbf24 100644 > --- a/hw/block/xen_disk.c > +++ b/hw/block/xen_disk.c > @@ -25,6 +25,7 @@ > > #include "hw/hw.h" > #include "hw/xen/xen_backend.h" > +#include "hw/xen/xen_frontend.h" > #include "xen_blkif.h" > #include "sysemu/blockdev.h" > #include "sysemu/block-backend.h" > diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c > index 46b7d5e..5751113 100644 > --- a/hw/display/xenfb.c > +++ b/hw/display/xenfb.c > @@ -30,6 +30,7 @@ > #include "ui/console.h" > #include "sysemu/char.h" > #include "hw/xen/xen_backend.h" > +#include "hw/xen/xen_frontend.h" > > #include > #include > diff --git a/hw/net/xen_nic.c b/hw/net/xen_nic.c > index 0b4ddae..bdfa789 100644 > --- a/hw/net/xen_nic.c > +++ b/hw/net/xen_nic.c > @@ -29,6 +29,7 @@ > #include "net/checksum.h" > #include "net/util.h" > #include "hw/xen/xen_backend.h" > +#include "hw/xen/xen_frontend.h" > > #include > There is also "hw/usb/xen-usb.c" that needs to be updated to include "hw/xen/xen_frontend.h". > diff --git a/include/hw/xen/xen_frontend.h b/include/hw/xen/xen_frontend.h > new file mode 100644 > index 0000000..46485b9 > --- /dev/null > +++ b/include/hw/xen/xen_frontend.h > @@ -0,0 +1,10 @@ > +#ifndef QEMU_HW_XEN_FRONTEND_H > +#define QEMU_HW_XEN_FRONTEND_H 1 No need for the 1 here. -- Anthony PERARD