[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen
From: |
Greg Kurz |
Subject: |
Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen |
Date: |
Thu, 23 Mar 2017 16:05:58 +0100 |
On Thu, 23 Mar 2017 15:19:28 +0100
Paolo Bonzini <address@hidden> wrote:
> On 23/03/2017 14:55, Juergen Gross wrote:
> > On 23/03/17 14:00, Greg Kurz wrote:
> >> On Mon, 20 Mar 2017 11:19:05 -0700
> >> Stefano Stabellini <address@hidden> wrote:
> >>
> >>> Do not use the ring.h header installed on the system. Instead, import
> >>> the header into the QEMU codebase. This avoids problems when QEMU is
> >>> built against a Xen version too old to provide all the ring macros.
> >>>
> >>> Signed-off-by: Stefano Stabellini <address@hidden>
> >>> Reviewed-by: Greg Kurz <address@hidden>
> >>> CC: address@hidden
> >>> CC: address@hidden
> >>> ---
> >>> NB: The new macros have not been committed to Xen yet. Do not apply this
> >>> patch until they do.
> >>> ---
> >>
> >> Looking at your other series for the kernel part of this feature:
> >>
> >> https://lkml.org/lkml/2017/3/22/761
> >>
> >> I realize that the ring.h header from Xen also exists in the kernel
> >> tree...
> >>
> >> Shouldn't all the code that can be used in both kernel and userspace go to
> >> a
> >> header file under include/uapi in the kernel tree ? And then we would
> >> import
> >> it under include/standard-headers/linux in the QEMU tree and we could keep
> >> it
> >> in sync using scripts/update-linux-headers.sh.
> >>
> >> Cc'ing Paolo for insights.
> >
> > As Xen isn't part of the kernel we don't want that. You can use and/or
> > build qemu with xen-9pfs backend support on an old Linux kernel without
> > the related frontend.
>
> As long as the header changes rarely, I guess it's fine not to go
> through update-linux-headers.sh.
>
> Paolo
>
If the header (or at least the parts that are relevant to QEMU) are stable
then my questioning can be ignored :)
Thanks.
--
Greg
> > OTOH I don't see the advantage of not using the headers from Xen. This
> > is working for qdisk and pvusb backends and for all the Xen libraries.
> > Do you expect the 9pfs backend to be used for a qemu version built
> > against a Xen version not supporting that backend?
> >
> >
> > Juergen
> >
pgp0U54D98k5W.pgp
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v4 3/8] xen/9pfs: introduce Xen 9pfs backend, (continued)
- [Qemu-devel] [PATCH v4 3/8] xen/9pfs: introduce Xen 9pfs backend, Stefano Stabellini, 2017/03/20
- [Qemu-devel] [PATCH v4 2/8] 9p: introduce a type for the 9p header, Stefano Stabellini, 2017/03/20
- [Qemu-devel] [PATCH v4 5/8] xen/9pfs: receive requests from the frontend, Stefano Stabellini, 2017/03/20
- [Qemu-devel] [PATCH v4 4/8] xen/9pfs: connect to the frontend, Stefano Stabellini, 2017/03/20
- [Qemu-devel] [PATCH v4 6/8] xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal, Stefano Stabellini, 2017/03/20
- [Qemu-devel] [PATCH v4 7/8] xen/9pfs: send responses back to the frontend, Stefano Stabellini, 2017/03/20
- [Qemu-devel] [PATCH v4 8/8] xen/9pfs: build and register Xen 9pfs backend, Stefano Stabellini, 2017/03/20
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Greg Kurz, 2017/03/23
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Juergen Gross, 2017/03/23
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Paolo Bonzini, 2017/03/23
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen,
Greg Kurz <=
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Stefano Stabellini, 2017/03/23
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Juergen Gross, 2017/03/24
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Stefano Stabellini, 2017/03/24
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Juergen Gross, 2017/03/27
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Stefano Stabellini, 2017/03/27
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Juergen Gross, 2017/03/28
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Stefano Stabellini, 2017/03/28
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Juergen Gross, 2017/03/29
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Paolo Bonzini, 2017/03/29
- Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen, Stefano Stabellini, 2017/03/29