Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-03 Thread Roger Pau Monné
On Thu, Feb 03, 2022 at 11:20:15AM +0100, Jan Beulich wrote: > On 03.02.2022 10:52, Roger Pau Monné wrote: > > On Thu, Feb 03, 2022 at 10:21:54AM +0100, Jan Beulich wrote: > >> On 03.02.2022 10:04, Roger Pau Monné wrote: > >>> On Thu, Feb 03, 2022 at 09:31:03AM +0100, Jan Beulich wrote: > On 0

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-03 Thread Jan Beulich
On 03.02.2022 10:52, Roger Pau Monné wrote: > On Thu, Feb 03, 2022 at 10:21:54AM +0100, Jan Beulich wrote: >> On 03.02.2022 10:04, Roger Pau Monné wrote: >>> On Thu, Feb 03, 2022 at 09:31:03AM +0100, Jan Beulich wrote: On 02.02.2022 17:13, Roger Pau Monné wrote: > On Tue, Jan 04, 2022 at 1

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-03 Thread Roger Pau Monné
On Thu, Feb 03, 2022 at 10:21:54AM +0100, Jan Beulich wrote: > On 03.02.2022 10:04, Roger Pau Monné wrote: > > On Thu, Feb 03, 2022 at 09:31:03AM +0100, Jan Beulich wrote: > >> On 02.02.2022 17:13, Roger Pau Monné wrote: > >>> On Tue, Jan 04, 2022 at 10:41:32AM +0100, Jan Beulich wrote: > @@ -

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-03 Thread Jan Beulich
On 03.02.2022 10:04, Roger Pau Monné wrote: > On Thu, Feb 03, 2022 at 09:31:03AM +0100, Jan Beulich wrote: >> On 02.02.2022 17:13, Roger Pau Monné wrote: >>> On Tue, Jan 04, 2022 at 10:41:32AM +0100, Jan Beulich wrote: @@ -359,7 +360,10 @@ p2m_pod_set_mem_target(struct domain *d,

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-03 Thread Roger Pau Monné
On Thu, Feb 03, 2022 at 09:31:03AM +0100, Jan Beulich wrote: > On 02.02.2022 17:13, Roger Pau Monné wrote: > > On Tue, Jan 04, 2022 at 10:41:32AM +0100, Jan Beulich wrote: > >> @@ -359,7 +360,10 @@ p2m_pod_set_mem_target(struct domain *d, > >> > >> ASSERT( pod_target >= p2m->pod.count ); > >

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-03 Thread Jan Beulich
On 02.02.2022 17:13, Roger Pau Monné wrote: > On Tue, Jan 04, 2022 at 10:41:32AM +0100, Jan Beulich wrote: >> @@ -359,7 +360,10 @@ p2m_pod_set_mem_target(struct domain *d, >> >> ASSERT( pod_target >= p2m->pod.count ); >> >> -ret = p2m_pod_set_cache_target(p2m, pod_target, 1/*preemptibl

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-02-02 Thread Roger Pau Monné
On Tue, Jan 04, 2022 at 10:41:32AM +0100, Jan Beulich wrote: > While it is okay for IOMMU page tables to get set up for guests starting > in PoD mode, actual device assignment may only occur once all PoD > entries have been removed from the P2M. So far this was enforced only > for boot-time assignm

Re: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-01-28 Thread Anthony PERARD
On Tue, Jan 04, 2022 at 10:41:32AM +0100, Jan Beulich wrote: > While it is okay for IOMMU page tables to get set up for guests starting > in PoD mode, actual device assignment may only occur once all PoD > entries have been removed from the P2M. So far this was enforced only > for boot-time assignm

Ping: [PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-01-27 Thread Jan Beulich
On 04.01.2022 10:41, Jan Beulich wrote: > While it is okay for IOMMU page tables to get set up for guests starting > in PoD mode, actual device assignment may only occur once all PoD > entries have been removed from the P2M. So far this was enforced only > for boot-time assignment, and only in the

[PATCH v3 1/2] IOMMU/x86: disallow device assignment to PoD guests

2022-01-04 Thread Jan Beulich
While it is okay for IOMMU page tables to get set up for guests starting in PoD mode, actual device assignment may only occur once all PoD entries have been removed from the P2M. So far this was enforced only for boot-time assignment, and only in the tool stack. Also use the new function to replac