xen: separate p2m allocation from setting