WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xenbaked.c: fix "bad domain id: 32"

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xenbaked.c: fix "bad domain id: 32"
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2006 10:15:37 +0900 (JST)
Delivery-date: Thu, 20 Jul 2006 18:18:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

This patch fixes a problem that xenmon.py gets the message "bad domain
id: 32" when a domain of domain ID 32 is running.

This only removes checking the maximun of domain ID because NDOMAINS
does not mean the maximum of domain ID.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>

Thanks,
-- 
  KUWAMURA Shin'ya
diff -r bbabdebc54ad tools/xenmon/xenbaked.c
--- a/tools/xenmon/xenbaked.c   Wed Jul 19 21:13:36 2006 +0100
+++ b/tools/xenmon/xenbaked.c   Fri Jul 21 10:09:53 2006 +0900
@@ -766,7 +766,7 @@ int indexof(int domid)
   int xc_handle, ndomains;
   extern void qos_kill_thread(int domid);
   
-  if (domid < 0 || domid >= NDOMAINS) {        // shouldn't happen
+  if (domid < 0) {     // shouldn't happen
     if (domid != IDLE_DOMAIN_ID) {
       printf("bad domain id: %d\r\n", domid);
       return 0;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xenbaked.c: fix "bad domain id: 32", KUWAMURA Shin'ya <=