Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-29 Thread Jan Beulich
drew Cooper >> ; George Dunlap ; Ian >> Jackson >> ; Roger Pau Monne ; >> 'VolodymyrBabchuk' >> ; 'Stefano Stabellini' ; >> 'xen- >> de...@lists.xenproject.org' ; 'Konrad >> Rzeszutek Wilk' >> ; 'Tamas K Lengyel' ; Tim >> (Xen.org) ; 'Wei &g

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-29 Thread Paul Durrant
> 'VolodymyrBabchuk' > ; 'Stefano Stabellini' ; > 'xen- > de...@lists.xenproject.org' ; 'Konrad > Rzeszutek Wilk' > ; 'Tamas K Lengyel' ; Tim > (Xen.org) ; 'Wei > Liu' > Subject: Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of > IOMMU page tables

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-29 Thread Jan Beulich
On 29.08.2019 11:33, Paul Durrant wrote: > TBH I've seen sufficient numbers of domain create failures when using > auto-ballooning that I stopped using it some time ago (besides the fact > that it's slow). If you're happy with the simplistic > double-the-page-table-reservation calculation then I

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-29 Thread Paul Durrant
> 'VolodymyrBabchuk' > ; 'Stefano Stabellini' ; > 'xen- > de...@lists.xenproject.org' ; 'Konrad > Rzeszutek Wilk' > ; 'Tamas K Lengyel' ; Tim > (Xen.org) ; 'Wei > Liu' > Subject: Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of > IOMMU page tables &

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-29 Thread Paul Durrant
odymyrBabchuk > ; Stefano Stabellini ; > xen- > de...@lists.xenproject.org; Konrad Rzeszutek Wilk ; > Tamas K Lengyel > ; Tim (Xen.org) ; Wei Liu > Subject: Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of > IOMMU page tables > > On 12.08.2019 17:41, P

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-27 Thread Jan Beulich
) ; George Dunlap ; 'Julien Grall' ; 'Tamas K Lengyel' ; Ian Jackson ; 'Alexandru Isaila' ; 'xen-devel@lists.xenproject.org' ; 'VolodymyrBabchuk' ; Roger Pau Monne Subject: Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables -Original Message- [snip

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-27 Thread Jan Beulich
On 12.08.2019 18:26, Paul Durrant wrote: -Original Message- [snip] On 30.07.2019 15:44, Paul Durrant wrote: NOTE: This patch will cause a small amount of extra resource to be used to accommodate IOMMU page tables that may never be used, since the per-domain IOMMU flag

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-27 Thread Jan Beulich
On 12.08.2019 17:41, Paul Durrant wrote: From: Jan Beulich Sent: 07 August 2019 11:32 On 30.07.2019 15:44, Paul Durrant wrote: @@ -625,8 +548,7 @@ static void iommu_dump_p2m_table(unsigned char key) ops = iommu_get_ops(); for_each_domain(d) { -if (

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-14 Thread Paul Durrant
> (Xen.org) ; > George Dunlap ; 'Julien Grall' > ; 'Tamas K Lengyel' > ; Ian Jackson ; 'Alexandru > Isaila' > ; 'xen-devel@lists.xenproject.org' > ; > 'VolodymyrBabchuk' ; Roger Pau Monne > > Subject: Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) const

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-13 Thread Paul Durrant
> -Original Message- [snip] > > > > On 30.07.2019 15:44, Paul Durrant wrote: > > > NOTE: This patch will cause a small amount of extra resource to be used > > >to accommodate IOMMU page tables that may never be used, since the > > >per-domain IOMMU flag enable flag is

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-13 Thread Paul Durrant
lodymyrBabchuk ; George > Dunlap > ; Ian Jackson ; Stefano > Stabellini > ; Konrad Rzeszutek Wilk ; > Tamas K Lengyel > ; Tim (Xen.org) ; Wei Liu > Subject: Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of > IOMMU page tables > > On 30.07.2019 15:

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-07 Thread Jan Beulich
On 30.07.2019 15:44, Paul Durrant wrote: NOTE: This patch will cause a small amount of extra resource to be used to accommodate IOMMU page tables that may never be used, since the per-domain IOMMU flag enable flag is currently set to the value of the global iommu_enable

Re: [Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-08-01 Thread Alexandru Stefan ISAILA
On 30.07.2019 16:44, Paul Durrant wrote: > Now that there is a per-domain IOMMU enable flag, which should be enabled if > any device is going to be passed through, stop deferring page table > construction until the assignment is done. Also don't tear down the tables > again when the last device

[Xen-devel] [PATCH 3/6] remove late (on-demand) construction of IOMMU page tables

2019-07-30 Thread Paul Durrant
Now that there is a per-domain IOMMU enable flag, which should be enabled if any device is going to be passed through, stop deferring page table construction until the assignment is done. Also don't tear down the tables again when the last device is de-assigned; defer that task until domain