Re: [PATCH v3 00/10] direct-map memory map

2021-11-16 Thread Stefano Stabellini
On Tue, 16 Nov 2021, Penny Zheng wrote: > Cases where domU needs direct-map memory map: > * IOMMU not present in the system. > * IOMMU disabled if it doesn't cover a specific device and all the guests > are trusted. Thinking a mixed scenario, where a few devices with IOMMU and > a few without,

Re: [PATCH v3 00/10] direct-map memory map

2021-11-16 Thread Jan Beulich
On 16.11.2021 10:44, Julien Grall wrote: > On 16/11/2021 07:49, Jan Beulich wrote: >> On 16.11.2021 07:31, Penny Zheng wrote: >>> v3 changes: >>> - move flag XEN_DOMCTL_CDF_INTERNAL_directmap back to >>> xen/include/xen/domain.h, >>> to let it be only available for domain created by XEN. >>> - nam

Re: [PATCH v3 00/10] direct-map memory map

2021-11-16 Thread Julien Grall
Hi Jan, On 16/11/2021 07:49, Jan Beulich wrote: On 16.11.2021 07:31, Penny Zheng wrote: v3 changes: - move flag XEN_DOMCTL_CDF_INTERNAL_directmap back to xen/include/xen/domain.h, to let it be only available for domain created by XEN. - name it with extra "INTERNAL" and add comments to warn dev

Re: [PATCH v3 00/10] direct-map memory map

2021-11-15 Thread Jan Beulich
On 16.11.2021 07:31, Penny Zheng wrote: > v3 changes: > - move flag XEN_DOMCTL_CDF_INTERNAL_directmap back to > xen/include/xen/domain.h, > to let it be only available for domain created by XEN. > - name it with extra "INTERNAL" and add comments to warn developers not > to accidently use its bitfi

[PATCH v3 00/10] direct-map memory map

2021-11-15 Thread Penny Zheng
Cases where domU needs direct-map memory map: * IOMMU not present in the system. * IOMMU disabled if it doesn't cover a specific device and all the guests are trusted. Thinking a mixed scenario, where a few devices with IOMMU and a few without, then guest DMA security still could not be totally