No, not in a Xen direct-pagetable guest. The guest actually sees real
hardware page numbers (mfns) when the hypervisor gives it a page. By
the time the hypervisor gives it a page reference, it already
guaranteeing that the page is available for guest use. The only thing
that we could do is prevent the guest from mapping the page, but that
doesn't really achieve much.
I think we're getting off track here; this is a lot of extra complexity
to justify allowing usermode to use /sys to online a chunk of hotplugged
memory.
J
--