From: "Jan Beulich" Subject: Re: [PATCH 2/2] xen: make start_info x86 specific. Date: Fri, 15 Feb 2013 13:01:15 +0000 Message-ID: <511E3FAB02000078000BEAD2@nat28.tlf.novell.com> References: <1360851380.20449.397.camel@zakaz.uk.xensource.com> <1360851590-2539-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Stefano Stabellini Cc: "Tim (Xen.org)" , Konrad Rzeszutek Wilk , "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 15.02.13 at 13:08, Stefano Stabellini wrote: > On Thu, 14 Feb 2013, Ian Campbell wrote: >> --- a/arch/arm/include/asm/xen/interface.h >> +++ b/arch/arm/include/asm/xen/interface.h >> @@ -51,6 +51,30 @@ DEFINE_GUEST_HANDLE(uint32_t); >> DEFINE_GUEST_HANDLE(xen_pfn_t); >> DEFINE_GUEST_HANDLE(xen_ulong_t); >> >> +/* >> + * On ARM this is not part of the hypervisor ABI but we provide it >> + * internally for the benefit of common code. >> + */ >> +struct start_info { >> + uint32_t flags; /* SIF_xxx flags. */ >> + uint32_t store_evtchn; /* Event channel for store communication. */ >> + xen_pfn_t store_mfn; /* MACHINE page number of shared page. */ >> + union { >> + struct { >> + xen_pfn_t mfn; /* MACHINE page number of console page. */ >> + uint32_t evtchn; /* Event channel for console page. */ >> + } domU; >> + struct { >> + uint32_t info_off; /* Offset of console_info struct. */ >> + uint32_t info_size; /* Size of console_info struct from start.*/ >> + } dom0; >> + } console; >> + /* UNUSED ON ARM */ >> + unsigned long nr_pages; /* Total pages allocated to this domain. */ >> +}; >> +#define SIF_PRIVILEGED (1<<0) /* Is the domain privileged? */ >> +#define SIF_INITDOMAIN (1<<1) /* Is this the initial control domain? */ With this it's even less clear to me why you want all of it removed from a architecture independent header. Jan