From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Anthony PERARD <anthony.perard@citrix.com>
Cc: xen-devel@lists.xenproject.org,
Stefano Stabellini <sstabellini@kernel.org>,
qemu-devel@nongnu.org, Paul Durrant <paul.durrant@citrix.com>
Subject: Re: [Qemu-devel] [PATCH v3 2/2] xen: Import other xen/io/*.h
Date: Fri, 21 Jun 2019 12:10:32 +0100 [thread overview]
Message-ID: <20190621111032.GJ11706@redhat.com> (raw)
In-Reply-To: <20190621105441.3025-3-anthony.perard@citrix.com>
On Fri, Jun 21, 2019 at 11:54:41AM +0100, Anthony PERARD wrote:
> A Xen public header have been imported into QEMU (by
> f65eadb639 "xen: import ring.h from xen"), but there are other header
> that depends on ring.h which come from the system when building QEMU.
>
> This patch resolves the issue of having headers from the system
> importing a different copie of ring.h.
>
> This patch is prompt by the build issue described in the previous
> patch: 'Revert xen/io/ring.h of "Clean up a few header guard symbols"'
>
> ring.h and the new imported headers are moved to
> "include/hw/xen/interface" as those describe interfaces with a guest.
>
> The imported headers are cleaned up a bit while importing them: some
> part of the file that QEMU doesn't use are removed (description
> of how to make hypercall in grant_table.h have been removed).
>
> Other cleanup:
> - xen-mapcache.c and xen-legacy-backend.c don't need grant_table.h.
> - xenfb.c doesn't need event_channel.h.
Personally I would have just kept the headers "as is" and not
changed anything. As long as the unused pieces don't actively
cause problems for the QEMU build, removing them just makes
life more complex if you periodically refresh the headers with
new copies from future Xen releases.
Not a show stopper though - your choice as maintainer, so
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> ---
>
> Notes:
> v3:
> - keep original header guard
> - squashed of "xen: Fix build with public headers" and "xen: Import
> other xen/io/*.h" as this patch isn't the one that fix the build issue
> anymore.
>
> hw/9pfs/xen-9pfs.h | 4 +-
> hw/block/xen_blkif.h | 5 +-
> hw/char/xen_console.c | 2 +-
> hw/display/xenfb.c | 7 +-
> hw/net/xen_nic.c | 2 +-
> hw/usb/xen-usb.c | 3 +-
> hw/xen/xen-legacy-backend.c | 2 -
> include/hw/xen/interface/grant_table.h | 36 +
> include/hw/xen/interface/io/blkif.h | 712 +++++++++++++++
> include/hw/xen/interface/io/console.h | 46 +
> include/hw/xen/interface/io/fbif.h | 156 ++++
> include/hw/xen/interface/io/kbdif.h | 566 ++++++++++++
> include/hw/xen/interface/io/netif.h | 1010 ++++++++++++++++++++++
> include/hw/xen/interface/io/protocols.h | 42 +
> include/hw/xen/{ => interface}/io/ring.h | 0
> include/hw/xen/interface/io/usbif.h | 254 ++++++
> include/hw/xen/interface/io/xenbus.h | 70 ++
> include/hw/xen/xen_common.h | 2 +-
> 18 files changed, 2903 insertions(+), 16 deletions(-)
> create mode 100644 include/hw/xen/interface/grant_table.h
> create mode 100644 include/hw/xen/interface/io/blkif.h
> create mode 100644 include/hw/xen/interface/io/console.h
> create mode 100644 include/hw/xen/interface/io/fbif.h
> create mode 100644 include/hw/xen/interface/io/kbdif.h
> create mode 100644 include/hw/xen/interface/io/netif.h
> create mode 100644 include/hw/xen/interface/io/protocols.h
> rename include/hw/xen/{ => interface}/io/ring.h (100%)
> create mode 100644 include/hw/xen/interface/io/usbif.h
> create mode 100644 include/hw/xen/interface/io/xenbus.h
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2019-06-21 11:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-21 10:54 [Qemu-devel] [PATCH v3 0/2] Fix build of Xen support + cleanup Anthony PERARD
2019-06-21 10:54 ` [Qemu-devel] [PATCH v3 1/2] Revert xen/io/ring.h of "Clean up a few header guard symbols" Anthony PERARD
2019-06-21 11:07 ` Daniel P. Berrangé
2019-06-21 12:14 ` Paul Durrant
2019-06-21 10:54 ` [Qemu-devel] [PATCH v3 2/2] xen: Import other xen/io/*.h Anthony PERARD
2019-06-21 11:10 ` Daniel P. Berrangé [this message]
2019-06-21 12:13 ` Paul Durrant
2019-06-21 12:09 ` [Qemu-devel] [Xen-devel] [PATCH v3 0/2] Fix build of Xen support + cleanup no-reply
2019-06-21 13:33 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190621111032.GJ11706@redhat.com \
--to=berrange@redhat.com \
--cc=anthony.perard@citrix.com \
--cc=paul.durrant@citrix.com \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).