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] xc_domain_create problem

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xc_domain_create problem
From: David Becker <becker@xxxxxxxxxxx>
Date: Fri, 13 Feb 2004 16:15:55 -0500
Delivery-date: Fri, 13 Feb 2004 21:30:06 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.4i
I pulled the latest xeno-1.2.bk this morning and am getting
a glitch in xc.domain_create

The domain ID it returns is a large bogus 64 bit number
This prints  'created 4613842385142171136 (4007a934400a4600)'
        id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name )
        output ('created %d (%x) ' % (id, id))

A sane domain id appears from 'xc_dom_control.py list', but the domain
scripts fail because they use the bogus id returned from xc.domain_create

If I know the next ID that will get created (eg. 13), I can successfully
start up a new ID with something like this in xc_dom_create.py:

        id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name )
        id = 13

The sources actually look OK.  xc_domain_create says
        u64 *pdomid
        *pdomid = (u64)op.u.createdomain.domain;
and pyxc_domain_create says
        u64 dom;
        xc_domain_create(xc->xc_handle, mem_kb, name, &dom)
        return PyLong_FromUnsignedLongLong(dom);
so I would expect xc.domain_create to return the right number.

This is all with xen, xenolinux and the utils built from the current 1.2
tree with gcc version 3.3.2 (Debian) and Python 2.3.2



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>