|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] [XEN] Don't let the tools take away	all o
 
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
# Date 1173442581 0
# Node ID bae81f7013a6d0568e83f8a9214bfe61aa72f4b3
# Parent  26e034395b8e045abb78849ca9369780c3871cfb
[XEN] Don't let the tools take away all of a domain's vcpus.
Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
---
 xen/common/domctl.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 26e034395b8e -r bae81f7013a6 xen/common/domctl.c
--- a/xen/common/domctl.c       Fri Mar 09 12:10:29 2007 +0000
+++ b/xen/common/domctl.c       Fri Mar 09 12:16:21 2007 +0000
@@ -360,7 +360,7 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc
         unsigned int i, max = op->u.max_vcpus.max, cpu;
 
         ret = -EINVAL;
-        if ( max > MAX_VIRT_CPUS )
+        if ( max > MAX_VIRT_CPUS || max == 0 )
             break;
 
         ret = -ESRCH;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-unstable] [XEN] Don't let the tools take away	all of a domain's vcpus.,
Xen patchbot-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |