[RFC] Extend zImage format to support notes
julien.grall at linaro.org
Wed Apr 9 09:31:00 PDT 2014
On 04/07/2014 07:25 PM, Mark Rutland wrote:
> I'm probably being thick here, but is there anything preventing those
> foreign pages from being idmapped into DOM0 (at least for the duration
> of the DMA access) such that there is a 1-1 PA<->IPA mapping?
> That would mean that from the point of view of Linux, there's nothing to
> care about, as every address it knows it can deal with is a valid IPA.
> Existing kernels would function with the IOMMU(s) on.
> I assume I'm missing something fairly obvious :)
I didn't though about this solution. It works on midway only when the
physical address size is 32 bits.
I didn't yet figure out why. I guess this is because I have a bug in my
SMMU driver in Xen.
>> We though about runtime approach (see the whole discussion here
>> https://patches.linaro.org/26034/), but it's not as extensible as notes.
>> In fact, we might need more notes in the future when new feature will be
>> added and requires a DOM0/guest side support.
> I can certainly see the usefulness of notes.
> If it makes sense for this case then I can see why we would want it on
With the solution of idmapping, the RFC seems irrelevant for now. But we
may need to add notes in the future.
I'm wondering if it would be worth to agree on a solution now. Thus, we
will be able to add a note quickly when it will be necessary.
More information about the linux-arm-kernel