From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC][PATCH 07/13] xen/passthrough: extend hypercall to support rdm reservation policy Date: Fri, 8 May 2015 17:07:58 +0100 Message-ID: <554CDF5E.8050806@citrix.com> References: <1428657724-3498-1-git-send-email-tiejun.chen@intel.com> <1428657724-3498-8-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1428657724-3498-8-git-send-email-tiejun.chen@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tiejun Chen , JBeulich@suse.com, tim@xen.org, konrad.wilk@oracle.com, andrew.cooper3@citrix.com, kevin.tian@intel.com, yang.z.zhang@intel.com, ian.campbell@citrix.com, wei.liu2@citrix.com, Ian.Jackson@eu.citrix.com, stefano.stabellini@citrix.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi, On 10/04/15 10:21, Tiejun Chen wrote: > diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h > index ca0e51e..e5ba7cb 100644 > --- a/xen/include/public/domctl.h > +++ b/xen/include/public/domctl.h > @@ -493,6 +493,10 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_sendtrigger_t); > /* XEN_DOMCTL_deassign_device */ > struct xen_domctl_assign_device { > uint32_t machine_sbdf; /* machine PCI ID of assigned device */ > + /* IN */ > +#define XEN_DOMCTL_PCIDEV_RDM_TRY 0 > +#define XEN_DOMCTL_PCIDEV_RDM_FORCE 1 > + uint32_t sbdf_flag; /* flag of assigned device */ > }; > typedef struct xen_domctl_assign_device xen_domctl_assign_device_t; > DEFINE_XEN_GUEST_HANDLE(xen_domctl_assign_device_t); > diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h > index 8565b82..0d10b3d 100644 > --- a/xen/include/xen/iommu.h > +++ b/xen/include/xen/iommu.h > @@ -129,7 +129,7 @@ struct iommu_ops { > int (*add_device)(u8 devfn, device_t *dev); > int (*enable_device)(device_t *dev); > int (*remove_device)(u8 devfn, device_t *dev); > - int (*assign_device)(struct domain *, u8 devfn, device_t *dev); > + int (*assign_device)(struct domain *, u8 devfn, device_t *dev, u32 flag); You need to update the ARM code with this new prototype: xen/drivers/passthrough/device_tree.c xen/drivers/passthrough/arm/smmu.c Regards, -- Julien Grall