libxl: xl list bugs
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
Signature · 6 lines
---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