From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162955AbdEYWCa (ORCPT ); Thu, 25 May 2017 18:02:30 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:38513 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163196AbdEYWCX (ORCPT ); Thu, 25 May 2017 18:02:23 -0400 Subject: Re: [PATCH v2 01/18] xen: introduce the pvcalls interface header To: Stefano Stabellini , xen-devel@lists.xen.org References: <1495236179-27776-1-git-send-email-sstabellini@kernel.org> Cc: linux-kernel@vger.kernel.org, jgross@suse.com, Stefano Stabellini , konrad.wilk@oracle.com From: Boris Ostrovsky Message-ID: <31f5a48b-4026-d3f2-4125-59474e028ee3@oracle.com> Date: Thu, 25 May 2017 18:02:00 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1495236179-27776-1-git-send-email-sstabellini@kernel.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/19/2017 07:22 PM, Stefano Stabellini wrote: > Introduce the C header file which defines the PV Calls interface. It is > imported from xen/include/public/io/pvcalls.h. > > Signed-off-by: Stefano Stabellini > CC: konrad.wilk@oracle.com > CC: boris.ostrovsky@oracle.com > CC: jgross@suse.com > --- > include/xen/interface/io/pvcalls.h | 120 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 120 insertions(+) > create mode 100644 include/xen/interface/io/pvcalls.h > > diff --git a/include/xen/interface/io/pvcalls.h b/include/xen/interface/io/pvcalls.h > new file mode 100644 > index 0000000..0d41959 > --- /dev/null > +++ b/include/xen/interface/io/pvcalls.h > @@ -0,0 +1,120 @@ > +#ifndef __XEN_PUBLIC_IO_XEN_PVCALLS_H__ > +#define __XEN_PUBLIC_IO_XEN_PVCALLS_H__ > + > +#include > +#include "xen/interface/io/ring.h" > + > +/* "1" means socket, connect, release, bind, listen, accept and poll */ > +#define XENBUS_FUNCTIONS_CALLS "1" > + > +/* > + * See docs/misc/pvcalls.markdown in xen.git for the full specification: > + * https://xenbits.xen.org/docs/unstable/misc/pvcalls.html > + */ > +struct pvcalls_data_intf { > + RING_IDX in_cons, in_prod, in_error; > + > + uint8_t pad1[52]; > + > + RING_IDX out_cons, out_prod, out_error; > + > + uint8_t pad2[52]; > + > + RING_IDX ring_order; > + grant_ref_t ref[]; I think you should also include . In fact, ring.h probably needs to do it too. -boris