RE: [RFC v2 03/22] intel_iommu: modify x-scalable-mode to be string option

2019-11-06 Thread Liu, Yi L
> From: Peter Xu [mailto:pet...@redhat.com] > Sent: Tuesday, November 5, 2019 8:50 PM > To: Liu, Yi L > Subject: Re: [RFC v2 03/22] intel_iommu: modify x-scalable-mode to be string > option > > On Tue, Nov 05, 2019 at 09:14:08AM +, Liu, Yi L wrote: > > > Som

Re: [RFC v2 03/22] intel_iommu: modify x-scalable-mode to be string option

2019-11-05 Thread Peter Xu
On Tue, Nov 05, 2019 at 09:14:08AM +, Liu, Yi L wrote: > > Something like: > > > > - s->scalable_mode_str to keep the string > > - s->scalable_mode still as a bool to cache the global enablement > > - s->scalable_modern as a bool to keep the mode > > > > ? > > So x-scalable-mode is sti

RE: [RFC v2 03/22] intel_iommu: modify x-scalable-mode to be string option

2019-11-05 Thread Liu, Yi L
> From: Peter Xu [mailto:pet...@redhat.com] > Sent: Friday, November 1, 2019 10:58 PM > To: Liu, Yi L > Subject: Re: [RFC v2 03/22] intel_iommu: modify x-scalable-mode to be string > option > > On Thu, Oct 24, 2019 at 08:34:24AM -0400, Liu Yi L wrote: > > Intel VT-d 3

Re: [RFC v2 03/22] intel_iommu: modify x-scalable-mode to be string option

2019-11-01 Thread Peter Xu
On Thu, Oct 24, 2019 at 08:34:24AM -0400, Liu Yi L wrote: > Intel VT-d 3.0 introduces scalable mode, and it has a bunch of capabilities > related to scalable mode translation, thus there are multiple combinations. > While this vIOMMU implementation wants simplify it for user by providing > typical