Re: [Xen-devel] [PATCH] x86/p2m: fix non-translated handling of iommu mappings

2019-08-20 Thread Roger Pau Monné
On Mon, Aug 19, 2019 at 06:57:06PM -0700, Roman Shaposhnik wrote: > On Mon, Jul 22, 2019 at 8:33 AM Roger Pau Monne wrote: > > > > The current usage of need_iommu_pt_sync in p2m for non-translated > > guests is wrong because it doesn't correctly handle a relaxed PV > > hardware domain, that has

Re: [Xen-devel] [PATCH] x86/p2m: fix non-translated handling of iommu mappings

2019-08-19 Thread Roman Shaposhnik
On Mon, Jul 22, 2019 at 8:33 AM Roger Pau Monne wrote: > > The current usage of need_iommu_pt_sync in p2m for non-translated > guests is wrong because it doesn't correctly handle a relaxed PV > hardware domain, that has need_sync set to false, but still need > entries to be added from calls to

Re: [Xen-devel] [PATCH] x86/p2m: fix non-translated handling of iommu mappings

2019-07-23 Thread Roger Pau Monné
On Tue, Jul 23, 2019 at 10:32:41AM +, Jan Beulich wrote: > On 22.07.2019 17:32, Roger Pau Monne wrote: > > The current usage of need_iommu_pt_sync in p2m for non-translated > > guests is wrong because it doesn't correctly handle a relaxed PV > > hardware domain, that has need_sync set to

Re: [Xen-devel] [PATCH] x86/p2m: fix non-translated handling of iommu mappings

2019-07-23 Thread Jan Beulich
On 22.07.2019 17:32, Roger Pau Monne wrote: > The current usage of need_iommu_pt_sync in p2m for non-translated > guests is wrong because it doesn't correctly handle a relaxed PV > hardware domain, that has need_sync set to false, but still need > entries to be added from calls to

Re: [Xen-devel] [PATCH] x86/p2m: fix non-translated handling of iommu mappings

2019-07-22 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 22 July 2019 16:32 > To: xen-devel@lists.xenproject.org > Cc: Roger Pau Monne ; George Dunlap > ; Jan Beulich > ; Andrew Cooper ; Wei Liu > ; Paul Durrant > > Subject: [PATCH] x86/p2m: fix non-translated handling of iommu mappings >

[Xen-devel] [PATCH] x86/p2m: fix non-translated handling of iommu mappings

2019-07-22 Thread Roger Pau Monne
The current usage of need_iommu_pt_sync in p2m for non-translated guests is wrong because it doesn't correctly handle a relaxed PV hardware domain, that has need_sync set to false, but still need entries to be added from calls to {set/clear}_identity_p2m_entry. Adjust the code in