[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/mm: Alter is_xen_fixed_mfn() to use mfn_t



On 08/02/17 13:07, Jan Beulich wrote:
>>>> On 07.02.17 at 19:57, <andrew.cooper3@xxxxxxxxxx> wrote:
>> --- a/xen/include/xen/mm.h
>> +++ b/xen/include/xen/mm.h
>> @@ -599,4 +599,10 @@ static inline void filtered_flush_tlb_mask(uint32_t 
>> tlbflush_timestamp)
>>      }
>>  }
>>  
>> +static inline bool is_xen_fixed_mfn(mfn_t mfn)
>> +{
>> +    return (pfn_to_paddr(mfn_x(mfn)) >= __pa(&_start) &&
>> +            pfn_to_paddr(mfn_x(mfn)) <= __pa(&_end));
>> +}
> 
> Even if you only morph what's been there before, I do think the
> latter wants to be < instead of <= . With that adjusted
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> but I'm also unconvinced it wouldn't be better to compare PFNs
> instead of physical addresses here.

Not positive this falls under my remit but just in case:

Acked-by: George Dunlap <george.dunlap@xxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.