prevent 0 from being used as a dynamic domid
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 11 Apr 2014 09:20:08 +0000 (11:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Apr 2014 09:20:08 +0000 (11:20 +0200)
commit920641d9c4a9216952c2200cd4a10938ec90e0f0
tree1e844583d6227e5a67d4ba619984e7e4a672f472
parent0a1c4db2481b13b2212d43923e996da3a379c26a
prevent 0 from being used as a dynamic domid

When the hardware domain is made distinct from dom0, it becomes possible
to shut down and destroy domain 0 while leaving the hypervisor running.
If this happens, prevent this domain ID from being considered for
allocation to a new guest.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/domctl.c