All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] Fix the dom0 crash issue when "vcpus=0" in HVM guest configuration file
@ 2007-03-09  2:47 Han, Weidong
  2007-03-09  9:48 ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: Han, Weidong @ 2007-03-09  2:47 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

Dom0 would crash when "vcpus=0" in HVM guest configuration file. The
attached patch fixes the issue.

-- Weidong
Signed-off-by: Weidong Han <weidong.han@intel.com>

[-- Attachment #2: vcpu0.patch --]
[-- Type: application/octet-stream, Size: 428 bytes --]

diff -r 8117f6684991 xen/common/domctl.c
--- a/xen/common/domctl.c	Wed Mar 07 16:21:21 2007 +0000
+++ b/xen/common/domctl.c	Thu Mar 08 10:23:41 2007 +0800
@@ -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;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-09 19:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09  2:47 [Patch] Fix the dom0 crash issue when "vcpus=0" in HVM guest configuration file Han, Weidong
2007-03-09  9:48 ` Keir Fraser
2007-03-09 10:58   ` Han, Weidong
2007-03-09 19:02   ` [Patch] Fix the dom0 crash issue when "vcpus=0"in " Li, Xin B
2007-03-09 19:17     ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.