On Wed, Nov 29, 2017 at 07:56:24PM +0100, Daniel Kiper wrote:

[...]

> So, it looks that the condition should look like this right now:
>
> xen_phys_start >= XEN_IMG_OFFSET + _end - _start

XEN_IMG_OFFSET + _end - _start == __pa(_end)

> xen_phys_start == e
> e = end - reloc_size
>
> end - reloc_size >= XEN_IMG_OFFSET + _end - _start
>
> So, finally it should be:
>
> if ( ( end > s ) && (end - reloc_size >= XEN_IMG_OFFSET + _end - _start) )

So, we have:

if ( (end > s) && (end - reloc_size >= __pa(_end)) )

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to