From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: libxl: xl list bugs Date: Thu, 23 Sep 2010 13:32:49 +0200 Message-ID: <201009231332.50481.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi! I can reproduce several bugs with xl list. (I commented out the 'exit(1);' right after the "Neither kernel nor bootloader specified" message to get the output) I call 'xl list -l 1' twice: # xl list -l 1 Neither kernel nor bootloader specified (domain (domid 1) (domain_create_info) (hvm 0) (hap 1) (oos 1) (ssidref 0) (name test) (uuid a42db8be-fec6-df11-b4b5-00e081806fbe) (cpupool Pool-0 (0)) (xsdata (null)) (platformdata (null)) (domain_build_info) (max_vcpus 1) (tsc_mode 0) (max_memkb 32768) (target_memkb 32768) (nomigrate 0) (image (linux 0) (kernel (null)) (cmdline ) (ramdisk (null)) ) ) ) # xl list -l 1 Neither kernel nor bootloader specified (domain (domid 1) (domain_create_info) (hvm 0) (hap 1) (oos 1) (ssidref 0) (name test) (uuid 21b30ed1-fec6-df11-b4b5-00e081806fbe) (cpupool Pool-0 (0)) (xsdata (null)) (platformdata (null)) (domain_build_info) (max_vcpus 1) (tsc_mode 0) (max_memkb 32768) (target_memkb 32768) (nomigrate 0) (image (linux 0) (kernel (null)) (cmdline ) (ramdisk (null)) ) ) ) Note, the uuid is different. Also having (hvm 0) and (hap 1) at the same time is wrong (A pv guest uses hap?). When I call 'xl list -v' twice, the uuid is the same and matches the uuid shown with 'xm list -l 1'. # xl list -v Name ID Mem VCPUs State Time(s) Domain-0 0 512 1 r----- 323.6 00000000-0000-0000-0000-000000000000 HVM64-NetBSD 1 3075 4 -b---- 87.5 6c4717a6-e74a-c5db-c83f-7fd4e9e242d9 brandon# xl list -v Name ID Mem VCPUs State Time(s) Domain-0 0 512 1 r----- 323.7 00000000-0000-0000-0000-000000000000 HVM64-NetBSD 1 3075 4 -b---- 87.5 6c4717a6-e74a-c5db-c83f-7fd4e9e242d9 Christoph -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632