On Tue, 14 Jul 2020 at 19:21, ‍小太 <nos...@kota.moe> wrote:
>
> On Tue, 14 Jul 2020 at 00:19, Hans van Kranenburg <h...@knorrie.org> wrote:
> > 小太, can you do...
> >
> >   xl create -vvv <domU.cfg>
> >
> > ...which should show how qemu is invoked. Can you show that command?
> >
> > I can provide you with some test packages with the mentioned upstream
> > patch applied (on top of 4.11.4+24-gddaaccbbab-1), so you can test if
> > your domU starts with them.
> >
> > If so, we can request the backport upstream and/or maybe pick it for
> > Debian 4.11 into the patch queue, whatever happens earlier.
>
> I've updated Xen to 4.11.4+24-gddaaccbbab-1 now, but qemu is still at 1:5.0-5.
> I'll update qemu again to 1:5.0-6 tomorrow and run a test

I've tried qemu 1:5.0-6 with xen 4.11.4+24-gddaaccbbab-1 today, and
attached is the full output of: xl -vvv create windows.xen.cfg -F
It's a bit too long to directly include in this email :/

The contents on windows.xen.cfg for this run were:

name = "windows"
builder = "hvm"
vcpus = "4"
memory = "1024"
boot = "c"
Parsing config from windows.xen.cfg
libxl: debug: libxl_create.c:1671:do_domain_create: Domain 0:ao 0x55aad1cfc270: create: how=(nil) callback=(nil) poller=0x55aad1cfc300
libxl: debug: libxl_create.c:1007:initiate_domain_create: Domain 2:running bootloader
libxl: debug: libxl_bootloader.c:328:libxl__bootloader_run: Domain 2:not a PV/PVH domain, skipping bootloader
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x55aad1d015f0: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="", features=""
domainbuilder: detail: xc_dom_kernel_file: filename="/usr/lib/xen-4.11/boot/hvmloader"
domainbuilder: detail: xc_dom_malloc_filemap    : 174 kB
libxl: debug: libxl_dom.c:973:libxl__load_hvm_firmware_module: Loading BIOS: /usr/share/seabios/bios-256k.bin
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.11, caps xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying HVM-generic loader ...
domainbuilder: detail: loader probe OK
xc: detail: ELF: phdr: paddr=0x100000 memsz=0x35104
xc: detail: ELF: memory: 0x100000 -> 0x135104
domainbuilder: detail: xc_dom_mem_init: mem 1016 MB, pages 0x3f800 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x3f800 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: range: start=0x0 end=0x3f800000
domainbuilder: detail: xc_dom_malloc            : 2032 kB
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail:   4KB PAGES: 0x0000000000000400
xc: detail:   2MB PAGES: 0x00000000000001fa
xc: detail:   1GB PAGES: 0x0000000000000000
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x100+0x36 at 0x7f3680f56000
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0x100000 -> 0x136000  (pfn 0x100 + 0x36 pages)
xc: detail: ELF: phdr 0 at 0x7f3680f20000 -> 0x7f3680f4b680
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x136+0x40 at 0x7f3680f16000
domainbuilder: detail: xc_dom_alloc_segment:   System Firmware module : 0x136000 -> 0x176000  (pfn 0x136 + 0x40 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x176+0x1 at 0x7f368158d000
domainbuilder: detail: xc_dom_alloc_segment:   HVM start info : 0x176000 -> 0x177000  (pfn 0x176 + 0x1 pages)
domainbuilder: detail: alloc_pgtables_hvm: doing nothing
domainbuilder: detail: xc_dom_build_image  : virt_alloc_end : 0x177000
domainbuilder: detail: xc_dom_build_image  : virt_pgtab_end : 0x0
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_64
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_32p
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32 <= matches
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32p
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_64
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 2037 kB
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 174 kB
domainbuilder: detail:       domU mmap          : 476 kB
domainbuilder: detail: vcpu_hvm: called
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff000
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff001
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_dm.c:1655:libxl__build_device_model_args_new: Domain 2:dm_restrict disabled, starting QEMU as root
libxl: debug: libxl_dm.c:2331:libxl__spawn_local_dm: Domain 2:Spawning device-model /usr/bin/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  /usr/bin/qemu-system-i386
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -xen-domid
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  2
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -chardev
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -no-shutdown
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -mon
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -chardev
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-2,server,nowait
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -mon
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  chardev=libxenstat-cmd,mode=control
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -nodefaults
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -no-user-config
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -name
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  windows
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -vnc
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  127.0.0.1:0,to=99
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -display
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  none
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -device
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  cirrus-vga,vgamem_mb=8
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -boot
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  order=c
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -smp
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  4,maxcpus=4
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -net
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  none
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -machine
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  xenfv
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  -m
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 2:  1016
libxl: debug: libxl_dm.c:2335:libxl__spawn_local_dm: Domain 2:Spawning device-model /usr/bin/qemu-system-i386 with additional environment:
libxl: debug: libxl_dm.c:2337:libxl__spawn_local_dm: Domain 2:  XEN_QEMU_CONSOLE_LIMIT=1048576
libxl: debug: libxl_event.c:635:libxl__ev_xswatch_register: watch w=0x55aad1d018e8 wpath=/local/domain/0/device-model/2/state token=3/0: register slotnum=3
libxl: debug: libxl_create.c:1708:do_domain_create: Domain 0:ao 0x55aad1cfc270: inprogress: poller=0x55aad1cfc300, flags=i
libxl: debug: libxl_event.c:572:watchfd_callback: watch w=0x55aad1d018e8 wpath=/local/domain/0/device-model/2/state token=3/0: event epath=/local/domain/0/device-model/2/state
libxl: debug: libxl_exec.c:398:spawn_watch_event: domain 2 device model: spawn watch p=(null)
libxl: debug: libxl_event.c:572:watchfd_callback: watch w=0x55aad1d018e8 wpath=/local/domain/0/device-model/2/state token=3/0: event epath=/local/domain/0/device-model/2/state
libxl: debug: libxl_exec.c:398:spawn_watch_event: domain 2 device model: spawn watch p=running
libxl: debug: libxl_event.c:672:libxl__ev_xswatch_deregister: watch w=0x55aad1d018e8 wpath=/local/domain/0/device-model/2/state token=3/0: deregister slotnum=3
libxl: debug: libxl_exec.c:127:libxl_report_child_exitstatus: domain 2 device model (dying as expected) [6380] died due to fatal signal Killed
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x55aad1d018e8: deregister unregistered
libxl: debug: libxl_qmp.c:734:libxl__qmp_initialize: Domain 2:connected to /var/run/xen/qmp-libxl-2
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: qmp
libxl: debug: libxl_qmp.c:315:qmp_handle_response: Domain 2:QEMU version: 5.0.0
libxl: debug: libxl_qmp.c:583:qmp_send_prepare: Domain 2:next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: return
libxl: debug: libxl_qmp.c:583:qmp_send_prepare: Domain 2:next qmp command: '{
    "execute": "query-chardev",
    "id": 2
}
'
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: return
libxl: debug: libxl_qmp.c:583:qmp_send_prepare: Domain 2:next qmp command: '{
    "execute": "query-vnc",
    "id": 3
}
'
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: return
libxl: debug: libxl_event.c:2184:libxl__ao_progress_report: ao 0x55aad1cfc270: progress report: ignored
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x55aad1cfc270: complete, rc=0
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x55aad1cfc270: destroy
libxl: debug: libxl_qmp.c:734:libxl__qmp_initialize: Domain 2:connected to /var/run/xen/qmp-libxl-2
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: qmp
libxl: debug: libxl_qmp.c:315:qmp_handle_response: Domain 2:QEMU version: 5.0.0
libxl: debug: libxl_qmp.c:583:qmp_send_prepare: Domain 2:next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: return
libxl: debug: libxl_qmp.c:583:qmp_send_prepare: Domain 2:next qmp command: '{
    "execute": "cont",
    "id": 2
}
'
libxl: debug: libxl_qmp.c:301:qmp_handle_response: Domain 2:message type: return
Waiting for domain windows (domid 2) to die [pid 6371]
libxl: debug: libxl_event.c:635:libxl__ev_xswatch_register: watch w=0x55aad1cfb460 wpath=@releaseDomain token=3/1: register slotnum=3
libxl: debug: libxl_event.c:572:watchfd_callback: watch w=0x55aad1cfb460 wpath=@releaseDomain token=3/1: event epath=@releaseDomain
libxl: debug: libxl_domain.c:764:domain_death_xswatch_callback: Domain 2:[evg=0x55aad1d07b00] nentries=1 rc=1 2..2
libxl: debug: libxl_domain.c:775:domain_death_xswatch_callback: Domain 2:[evg=0x55aad1d07b00]   got=domaininfos[0] got->domain=2
libxl: debug: libxl_domain.c:803:domain_death_xswatch_callback: Domain 2:Exists shutdown_reported=0 dominf.flags=ffff0122
libxl: debug: libxl_domain.c:771:domain_death_xswatch_callback: [evg=0] all reported
libxl: debug: libxl_domain.c:833:domain_death_xswatch_callback: domain death search done
libxl: debug: libxl_event.c:572:watchfd_callback: watch w=0x55aad1cfb460 wpath=@releaseDomain token=3/1: event epath=@releaseDomain
libxl: debug: libxl_domain.c:764:domain_death_xswatch_callback: Domain 2:[evg=0x55aad1d07b00] nentries=1 rc=1 2..2
libxl: debug: libxl_domain.c:775:domain_death_xswatch_callback: Domain 2:[evg=0x55aad1d07b00]   got=domaininfos[0] got->domain=2
libxl: debug: libxl_domain.c:803:domain_death_xswatch_callback: Domain 2:Exists shutdown_reported=0 dominf.flags=30106
libxl: debug: libxl_domain.c:816:domain_death_xswatch_callback:  shutdown reporting
libxl: debug: libxl_domain.c:771:domain_death_xswatch_callback: [evg=0] all reported
libxl: debug: libxl_domain.c:833:domain_death_xswatch_callback: domain death search done
Domain 2 has shut down, reason code 3 0x3
Action for shutdown reason code 3 is destroy
Domain 2 needs to be cleaned up: destroying the domain
libxl: debug: libxl_domain.c:902:libxl_domain_destroy: Domain 2:ao 0x55aad1d052a0: create: how=(nil) callback=(nil) poller=0x55aad1cfc300
libxl: debug: libxl_dm.c:2544:kill_device_model: Device Model signaled
libxl: debug: libxl_domain.c:911:libxl_domain_destroy: Domain 2:ao 0x55aad1d052a0: inprogress: poller=0x55aad1cfc300, flags=i
libxl: debug: libxl_linux.c:225:libxl__get_hotplug_script_info: Domain 2:backend_kind 6, no need to execute scripts
libxl: debug: libxl_device.c:1203:device_hotplug: Domain 2:No hotplug script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x55aad1d07190: deregister unregistered
libxl: debug: libxl_domain.c:1172:devices_destroy_cb: Domain 2:Forked pid 6397 for destroy of domain
libxl: debug: libxl_event.c:572:watchfd_callback: watch w=0x55aad1cfb460 wpath=@releaseDomain token=3/1: event epath=@releaseDomain
libxl: debug: libxl_domain.c:764:domain_death_xswatch_callback: Domain 2:[evg=0x55aad1d07b00] nentries=1 rc=1 2..2
libxl: debug: libxl_domain.c:775:domain_death_xswatch_callback: Domain 2:[evg=0x55aad1d07b00]   got=domaininfos[0] got->domain=2
libxl: debug: libxl_domain.c:803:domain_death_xswatch_callback: Domain 2:Exists shutdown_reported=1 dominf.flags=3010f
libxl: debug: libxl_domain.c:724:domain_death_occurred: Domain 2:dying
libxl: debug: libxl_domain.c:771:domain_death_xswatch_callback: [evg=0] all reported
libxl: debug: libxl_domain.c:833:domain_death_xswatch_callback: domain death search done
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x55aad1d052a0: complete, rc=0
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x55aad1d052a0: destroy
Done. Exiting now
libxl: debug: libxl_event.c:672:libxl__ev_xswatch_deregister: watch w=0x55aad1cfb460 wpath=@releaseDomain token=3/1: deregister slotnum=3
xencall:buffer: debug: total allocations:463 total releases:463
xencall:buffer: debug: current allocations:0 maximum allocations:3
xencall:buffer: debug: cache current size:3
xencall:buffer: debug: cache hits:439 misses:3 toobig:21
xencall:buffer: debug: total allocations:0 total releases:0
xencall:buffer: debug: current allocations:0 maximum allocations:0
xencall:buffer: debug: cache current size:0
xencall:buffer: debug: cache hits:0 misses:0 toobig:0

Reply via email to