xen: change the limit of nr_extents to UINT_MAX >> MEMOP_EXTENT_SHIFT
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 17 Oct 2012 15:43:50 +0000 (16:43 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 17 Oct 2012 15:43:50 +0000 (16:43 +0100)
commit4f3c473d51d1c05bb08fecedfcf257d1a667bc5c
tree313e0f1208de7a39010b2a62a628e238664d9535
parent96e5963780e91661bea6ec20b0d66bca800b9515
xen: change the limit of nr_extents to UINT_MAX >> MEMOP_EXTENT_SHIFT

Currently do_memory_op has a different maximum limit for nr_extents on
32 bit and 64 bit.
Change the limit to UINT_MAX >> MEMOP_EXTENT_SHIFT, so that it is the
same in both cases.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/memory.c