]> xenbits.xensource.com Git - xen.git/commit
x86: use 64 bit mask when masking away mfn bits
authorJuergen Gross <jgross@suse.com>
Thu, 30 Mar 2017 13:11:24 +0000 (15:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Mar 2017 13:11:24 +0000 (15:11 +0200)
commit4edb1a42e3320757e3559f17edf6903bc1777de3
tree13fd3511bd7ab0c784871db2ca94aa979dab988a
parent09ebe69c0c832e2cdbfc76f0338499bd8b50d9de
x86: use 64 bit mask when masking away mfn bits

When using _PAGE_PSE_PAT as base for a negated bit mask make sure it is
propagated to 64 bits when applied to a 64 bit value.

There seems to be only one place where this is a problem, so fix this
by casting _PAGE_PSE_PAT to 64 bits there.

Not doing so will probably lead to problems on hosts with more than
16 TB of memory.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pt.c