]> xenbits.xensource.com Git - xen.git/commit
x86/srat: fix the end pfn check in valid_numa_range()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 6 Mar 2018 14:49:33 +0000 (15:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Mar 2018 14:49:33 +0000 (15:49 +0100)
commit4195d40e31c76d4ecf68ab31b3d20a0207eb6b1e
treef7a8183714b6f976cd9d4c7323030c141786426d
parentab62fc3171b560a64fc3156d42776672943228f0
x86/srat: fix the end pfn check in valid_numa_range()

... and fix the coding style on fly.

valid_numa_range(..., epfn << PAGE_SHIFT, ...) and its only caller
memory_add(..., epfn, pxm) interpret epfn inconsistently. The former
interprets epfn as the last pfn, while the latter interprets it as the
last pfn plus one. Fix this inconsistency in valid_numa_range(), since
most of other places use the latter interpretation.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 722648676751fda39086f54d961640f88174360b
master date: 2018-02-12 11:08:33 +0000
xen/arch/x86/srat.c