Re: [PATCH v2 8/9] xue: mark DMA buffers as reserved for the device

2022-07-21 Thread Jan Beulich
On 20.07.2022 22:17, Marek Marczykowski-Górecki wrote: > On Thu, Jul 14, 2022 at 01:51:06PM +0200, Jan Beulich wrote: >> On 06.07.2022 17:32, Marek Marczykowski-Górecki wrote: >>> +/* >>> + * Don't place anything else on this page - it will be >>> + * DMA-reachable by the USB controller

Re: [PATCH v2 8/9] xue: mark DMA buffers as reserved for the device

2022-07-20 Thread Marek Marczykowski-Górecki
On Thu, Jul 14, 2022 at 01:51:06PM +0200, Jan Beulich wrote: > On 06.07.2022 17:32, Marek Marczykowski-Górecki wrote: > > +/* > > + * Don't place anything else on this page - it will be > > + * DMA-reachable by the USB controller. > > + */ > > +char _pad[0] __aligned(XUE_PAGE_SI

Re: [PATCH v2 8/9] xue: mark DMA buffers as reserved for the device

2022-07-18 Thread Marek Marczykowski-Górecki
On Thu, Jul 14, 2022 at 01:51:06PM +0200, Jan Beulich wrote: > On 06.07.2022 17:32, Marek Marczykowski-Górecki wrote: > > The important part is to include those buffers in IOMMU page table > > relevant for the USB controller. Otherwise, DbC will stop working as > > soon as IOMMU is enabled, regardl

Re: [PATCH v2 8/9] xue: mark DMA buffers as reserved for the device

2022-07-14 Thread Jan Beulich
On 06.07.2022 17:32, Marek Marczykowski-Górecki wrote: > The important part is to include those buffers in IOMMU page table > relevant for the USB controller. Otherwise, DbC will stop working as > soon as IOMMU is enabled, regardless of to which domain device assigned > (be it xen or dom0). > If th

[PATCH v2 8/9] xue: mark DMA buffers as reserved for the device

2022-07-06 Thread Marek Marczykowski-Górecki
The important part is to include those buffers in IOMMU page table relevant for the USB controller. Otherwise, DbC will stop working as soon as IOMMU is enabled, regardless of to which domain device assigned (be it xen or dom0). If the device is passed through to dom0 or other domain (see later pat