RE: [RFC v2 04/22] hw/iommu: introduce IOMMUContext

2019-11-06 Thread Liu, Yi L
> From: David Gibson [mailto:da...@gibson.dropbear.id.au] > Sent: Monday, October 28, 2019 1:39 AM > To: Liu, Yi L > Subject: Re: [RFC v2 04/22] hw/iommu: introduce IOMMUContext > > On Thu, Oct 24, 2019 at 08:34:25AM -0400, Liu Yi L wrote: > > From: Peter Xu > > &g

Re: [RFC v2 04/22] hw/iommu: introduce IOMMUContext

2019-10-27 Thread David Gibson
On Thu, Oct 24, 2019 at 08:34:25AM -0400, Liu Yi L wrote: > From: Peter Xu > > This patch adds IOMMUContext as an abstract layer of IOMMU related > operations. The current usage of this abstract layer is setup dual- > stage IOMMU translation (vSVA) for vIOMMU. > > To setup dual-stage IOMMU trans

[RFC v2 04/22] hw/iommu: introduce IOMMUContext

2019-10-24 Thread Liu Yi L
From: Peter Xu This patch adds IOMMUContext as an abstract layer of IOMMU related operations. The current usage of this abstract layer is setup dual- stage IOMMU translation (vSVA) for vIOMMU. To setup dual-stage IOMMU translation, vIOMMU needs to propagate guest changes to host via passthru cha