[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v2 6/8] tools/arm: Introduce force_assign_without_iommu option to xl.cfg


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Oleksii Moisieiev <Oleksii_Moisieiev@xxxxxxxx>
  • Date: Fri, 18 Feb 2022 08:19:46 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uNuNB1oJK3Ejt8n4W5UHd8DtoRW5KIs+zSS07a3M5Ws=; b=Fet9fIz98+6uj9khjF2kyUFE6+xgkSBJ/x8Y9QHkXafol3gQszF7gGsR9Pq0OiHAhcP+jpeEIjEzIzwXciV8felMg6dj4CB3XhB6mr3IB5vWXT34u626pO0VTjWRIBmfwlOIekF5ARlOelzpmP31D4mikkqvDXqM8GafI6ODhHicnJka5kxKE25Bmlsr0WcLgPkdH1hxWOETV4AUBIHOk+0E7Sflvi1dQzw1SaXuL7w+J3l80VEuoQ067ZHpSgjUDEvBeYVbqWiXs/WHUjQsiYO6S2w3mVQ4LlgkKsc1tDmTtJEMjCyWimATVH0nJaCiQbNXKKC50toV2alHsEAKJg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Om/3zlG346gMlExf/TNSV0yuxyGouFWmECsMobshYAGalY9Hr8o+j+qph+GaEOuftj0r+kKwaLFFMPwYWgBRpeiyR/1jXLYQsk58av28YQgGMdTyzDzqJfNQEN/Y0Mhx2sfGF1YGVFK84ix7Pt9ZqZ5mMR9XOpszLgc3QLW2Wp2hcyJIfCrfTsYd8HWKNBVdf+cynqPlJmFlCb17AP3dNJY8wKwi4PPhaeAdw/BB+IoNXDifEbyuvmev8TGFnG79RUbv0/O2RaAAZtpnZjZFEL1PVexjsVJOzy+93Yux/ZBDY1/+p7ZTL3UOBcxQ/lWaQQEV349xin83f7Rs/A9jqg==
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>
  • Delivery-date: Fri, 18 Feb 2022 08:20:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYHRW3O86755dYV0qSgPdVO9oeMayX4d4AgAEkigA=
  • Thread-topic: [RFC v2 6/8] tools/arm: Introduce force_assign_without_iommu option to xl.cfg

Hi Anthony,

On Thu, Feb 17, 2022 at 02:52:44PM +0000, Anthony PERARD wrote:
> On Tue, Feb 08, 2022 at 06:00:12PM +0000, Oleksii Moisieiev wrote:
> > If set, Xen is allowed to assign the devices even if they are not under
> > IOMMU.
> > Can be confugired from dom.cfg in the following format:
> > force_assign_without_iommu = 1
> > 
> > This parameter has the same purpose as xen,force-assign-without-iommu
> > property in dom0less archtecture.
> > 
> > Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev@xxxxxxxx>
> > ---
> > diff --git a/tools/libs/light/libxl_types.idl 
> > b/tools/libs/light/libxl_types.idl
> > index 2a42da2f7d..1080966c33 100644
> > --- a/tools/libs/light/libxl_types.idl
> > +++ b/tools/libs/light/libxl_types.idl
> > @@ -564,6 +564,7 @@ libxl_domain_build_info = Struct("domain_build_info",[
> >      ("apic",             libxl_defbool),
> >      ("dm_restrict",      libxl_defbool),
> >      ("tee",              libxl_tee_type),
> > +    ("force_assign_without_iommu", libxl_defbool),
> 
> As you are making changes to libxl's API, could you add a LIBXL_HAVE_*
> macro in "tools/include/libxl.h", they are plenty of example there about
> adding new fields in "libxl_domain_build_info".

Sure, I will add it in v3.

--
Oleksii.


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.