|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/3] xen/p2m: Using INVALID_MFN instead of mfn_valid
On Thu, 16 Aug 2012 10:31:30 +0000
"Hao, Xudong" <xudong.hao@xxxxxxxxx> wrote:
> > */
> > >> > - if ( mfn_valid(mfn_x(mfn)) &&
> > >> > + if ( (mfn_x(mfn) != INVALID_MFN) &&
> > >> > (gfn + (1UL << order) - 1 > p2m->max_mapped_pfn) )
> > >> > p2m->max_mapped_pfn = gfn + (1UL << order) - 1;
> > >>
BTW, here's the change in my PVH/hybrid tree that Tim D had suggested
couple months ago:
/* Track the highest gfn for which we have ever had a valid mapping */
- if ( mfn_valid(mfn_x(mfn)) &&
+ if ( p2mt != p2m_invalid && p2mt != p2m_mmio_dm &&
(gfn + (1UL << order) - 1 > p2m->max_mapped_pfn) )
p2m->max_mapped_pfn = gfn + (1UL << order) - 1;
thanks,
Mukesh
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |