Re: [RFC XEN PATCH v3 5/5] xen/public: Introduce PV-IOMMU hypercall interface

2024-07-12 Thread Jan Beulich
On 12.07.2024 14:46, Teddy Astie wrote: > Hello Jan, > > Le 12/07/2024 à 12:46, Jan Beulich a écrit : >> On 11.07.2024 21:20, Alejandro Vallejo wrote: >>> On Thu Jul 11, 2024 at 3:04 PM BST, Teddy Astie wrote: --- /dev/null +++ b/xen/common/pv-iommu.c @@ -0,0 +1,328 @@ +/*

Re: [RFC XEN PATCH v3 5/5] xen/public: Introduce PV-IOMMU hypercall interface

2024-07-12 Thread Teddy Astie
Hello Jan, Le 12/07/2024 à 12:46, Jan Beulich a écrit : > On 11.07.2024 21:20, Alejandro Vallejo wrote: >> On Thu Jul 11, 2024 at 3:04 PM BST, Teddy Astie wrote: >>> --- /dev/null >>> +++ b/xen/common/pv-iommu.c >>> @@ -0,0 +1,328 @@ >>> +/* SPDX-License-Identifier: GPL-2.0 */ >>> +/* >>> + *

Re: [RFC XEN PATCH v3 5/5] xen/public: Introduce PV-IOMMU hypercall interface

2024-07-12 Thread Jan Beulich
On 11.07.2024 21:20, Alejandro Vallejo wrote: > On Thu Jul 11, 2024 at 3:04 PM BST, Teddy Astie wrote: >> --- /dev/null >> +++ b/xen/common/pv-iommu.c >> @@ -0,0 +1,328 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +/* >> + * xen/common/pv_iommu.c >> + * >> + * PV-IOMMU hypercall interface. >>

Re: [RFC XEN PATCH v3 5/5] xen/public: Introduce PV-IOMMU hypercall interface

2024-07-12 Thread Teddy Astie
Hello Alejandro, >> +#define PVIOMMU_MAX_PAGES 256 /* Move to Kconfig ? */ > > It probably wants to be a cmdline argument, I think. > Maybe, but in that sense, I think it should be a domain-specific limit rather than a global one. (e.g ability to prevent a DomU from having a very permissive

Re: [RFC XEN PATCH v3 5/5] xen/public: Introduce PV-IOMMU hypercall interface

2024-07-11 Thread Alejandro Vallejo
On Thu Jul 11, 2024 at 3:04 PM BST, Teddy Astie wrote: > Introduce a new pv interface to manage the underlying IOMMU and manage > contexts > and devices. This interface allows creation of new contexts from Dom0 and > addition of IOMMU mappings using guest PoV. > > This interface doesn't allow

[RFC XEN PATCH v3 5/5] xen/public: Introduce PV-IOMMU hypercall interface

2024-07-11 Thread Teddy Astie
Introduce a new pv interface to manage the underlying IOMMU and manage contexts and devices. This interface allows creation of new contexts from Dom0 and addition of IOMMU mappings using guest PoV. This interface doesn't allow creation of mapping to other domains. Signed-off-by Teddy Astie ---