tools/xenstored: Use XC_PAGE_SIZE rather than getpagesize()
authorJulien Grall <julien.grall@linaro.org>
Mon, 11 May 2015 11:55:35 +0000 (12:55 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Jul 2015 14:10:45 +0000 (15:10 +0100)
commit7c0a96af170d051453b2d7a8858f76358a51363e
treef8e73f35da93346d1a2a6f5fa8ee4c308c27f4ba
parent39c6664a0e6e1b4ed80660d545dff34ce41bee31
tools/xenstored: Use XC_PAGE_SIZE rather than getpagesize()

Linux may not use the same page granularity as Xen. This will result to
a domain crash because it will try to map more page than required.

As the xenstore page size willl always be equal to a Xen page size, use
XC_PAGE_SIZE.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstore/xenstored_domain.c