]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/i386: follow-up to "replace order-based range checking of M2P table by linear...
authorJan Beulich <JBeulich@suse.com>
Thu, 15 Sep 2011 07:52:40 +0000 (08:52 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 15 Sep 2011 08:09:42 +0000 (04:09 -0400)
commit6294fe72c4d4166134e13fe0f293b624a8ecdcb2
tree9a7fe7390778f20bfadcd5ecb9679785b5380cf7
parenta7079a6404ed2106315327fff6be3464d10814e7
xen/i386: follow-up to "replace order-based range checking of M2P table by linear one"

The numbers obtained from the hypervisor really can't ever lead to an
overflow here, only the original calculation going through the order
of the range could have. This avoids the (as Jeremy points outs)
somewhat ugly NULL-based calculation here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c