Re: [PATCH v1 22/29] cxl/region: Use translated HPA ranges to create a region
From: Robert Richter
Date: Thu Feb 06 2025 - 08:26:41 EST
On 07.01.25 18:08:59, Gregory Price wrote:
> On Tue, Jan 07, 2025 at 03:10:08PM +0100, Robert Richter wrote:
> > To create a region, SPA ranges must be used. With address translation
> > the endpoint's HPA range is not the same as the SPA range. Use the
> > previously calculated SPA range instead.
> >
> > Signed-off-by: Robert Richter <rrichter@xxxxxxx>
>
> Patches 22-25 seem reliant on each other. Should I expect errors if I
> were to test them individually?
>
> The individual changes in 22-24 seem ok, but is spa->* expected to be
> correct in the absense of the PRMT translation functions when HPA==SPA?
Exactly, as long as ->to_hpa() is not enabled, there is HPA==SPA and
code should work as before.
-Robert