From: Paul Durrant <Paul.Durrant@citrix.com>
To: 'Konrad Rzeszutek Wilk' <konrad.wilk@oracle.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] Make it compiler under Xen 4.7.
Date: Tue, 14 Feb 2017 15:21:37 +0000 [thread overview]
Message-ID: <24a490e374ab43ddab71122641567a75@AMSPEX02CL03.citrite.net> (raw)
In-Reply-To: <20170214151441.GG13507@char.us.ORACLE.com>
> -----Original Message-----
> From: Xen-devel [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of
> Konrad Rzeszutek Wilk
> Sent: 14 February 2017 15:15
> To: Paul Durrant <Paul.Durrant@citrix.com>
> Cc: xen-devel@lists.xenproject.org
> Subject: Re: [Xen-devel] [PATCH] Make it compiler under Xen 4.7.
>
> On Mon, Feb 13, 2017 at 08:46:29AM +0000, Paul Durrant wrote:
> > > -----Original Message-----
> > > From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> > > Sent: 10 February 2017 21:52
> > > To: Paul Durrant <Paul.Durrant@citrix.com>; xen-
> devel@lists.xenproject.org
> > > Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > > Subject: [PATCH] Make it compiler under Xen 4.7.
> > >
> > > With b7f76a699dcfadc0a52ab45b33cc72dbf3a69e7b
> > > Author: Ian Campbell <ian.campbell@citrix.com>
> > > Date: Mon Jun 1 16:20:09 2015 +0100
> > >
> > > tools: Refactor /dev/xen/evtchn wrappers into libxenevtchn.
> > >
> > > commit 32486916793fd78a41fc25e53d2b53a5aa0b1bd5
> > > Author: Ian Campbell <ian.campbell@citrix.com>
> > > Date: Thu Jun 18 16:30:19 2015 +0100
> > >
> > > tools: Refactor foreign memory mapping into libxenforeignmemory
> > >
> > > We need to use the compat layer.
> > >
> > > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> >
> > Thanks for taking the time to send this. I'll incorporate this a.s.a.p.
>
> Thank you. Keep in mind that it will likely break against
> older Xen versions (Xen 4.4?) as there is no xenctrl_compat.h
I'm not sure you actually need to include that directly. I was going to try just adding the 'want compat' defines and seeing if I could make it work. I think it *should* work since all we do for upstream QEMU is add those defines into the configure cmd line IIRC.
>
> [Oh wait, Xen 4.4 didn't have ioreq either, so perhaps Xen 4.5?]
>
> But I wasn't sure how you wanted to deal with this being compiled
> against say Xen 4.6?
>
> Or maybe the README file should just say what version of Xen
> is required? (I can send an patch for that too if you would like).
>
That's ok. I can do a little experimentation and add a README.
Paul
> >
> > Acked-by: Paul Durrant <paul.durrant@citrix.com>
> >
> > >
> > > ---
> > > CC: paul.durrant@citrix.com
> > >
> > > v1: First version
> > > ---
> > > demu.c | 7 ++++++-
> > > 1 file changed, 6 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/demu.c b/demu.c
> > > index 2933efb..7d73a69 100644
> > > --- a/demu.c
> > > +++ b/demu.c
> > > @@ -56,7 +56,12 @@
> > >
> > > #include <locale.h>
> > >
> > > +#define XC_WANT_COMPAT_MAP_FOREIGN_API 1
> > > +#define XC_WANT_COMPAT_EVTCHN_API 1
> > > +
> > > #include <xenctrl.h>
> > > +#include <xenctrl_compat.h>
> > > +
> > > #include <xen/hvm/ioreq.h>
> > >
> > > #include "debug.h"
> > > @@ -126,7 +131,7 @@ typedef enum {
> > > typedef struct demu_state {
> > > demu_seq_t seq;
> > > xc_interface *xch;
> > > - xc_interface *xceh;
> > > + xc_evtchn *xceh;
> > > domid_t domid;
> > > unsigned int vcpus;
> > > ioservid_t ioservid;
> > > --
> > > 2.9.3
> >
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-02-14 15:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-10 21:51 [PATCH v1] Make demu.git compiler under Xen 4.7 (and later) Konrad Rzeszutek Wilk
2017-02-10 21:51 ` [PATCH] Make it compiler under Xen 4.7 Konrad Rzeszutek Wilk
2017-02-13 8:46 ` Paul Durrant
2017-02-14 15:14 ` Konrad Rzeszutek Wilk
2017-02-14 15:21 ` Paul Durrant [this message]
2017-02-14 16:02 ` Paul Durrant
2017-02-13 8:58 ` [PATCH v1] Make demu.git compiler under Xen 4.7 (and later) Paul Durrant
2017-02-14 15:16 ` Konrad Rzeszutek Wilk
2017-02-14 15:26 ` Paul Durrant
2017-02-14 15:32 ` Konrad Rzeszutek Wilk
2017-02-14 15:39 ` Paul Durrant
2017-02-14 15:40 ` Konrad Rzeszutek Wilk
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=24a490e374ab43ddab71122641567a75@AMSPEX02CL03.citrite.net \
--to=paul.durrant@citrix.com \
--cc=konrad.wilk@oracle.com \
--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).