[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] prevent 0 from being used as a dynamic domid
commit 920641d9c4a9216952c2200cd4a10938ec90e0f0 Author: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> AuthorDate: Fri Apr 11 11:20:08 2014 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Apr 11 11:20:08 2014 +0200 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@xxxxxxxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- xen/common/domctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 5e807ab..af3614b 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -436,7 +436,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) for ( dom = rover + 1; dom != rover; dom++ ) { if ( dom == DOMID_FIRST_RESERVED ) - dom = 0; + dom = 1; if ( is_free_domid(dom) ) break; } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |