Hello,
I have followed this guide
<
https://github.com/01org/gvt-linux/wiki/GVTg_Setup_Guide> to configure and
compile XenGT in my laptop. This laptop has an Nvidia Optimus configuration
with a i7-4720HQ and a Nvidia 980m.
I can boot Dom0 without any issues but when I try to create another domain
with the parameters that are provided on the guide I get an error (rc=-3).
This is the full trace from xl -vvvv create mio
Parsing config from mio
libxl: debug: libxl_create.c:1616:do_domain_create: Domain 0:ao
0x556b1df4f140: create: how=(nil) callback=(nil) poller=0x556b1df4e410
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:396:libxl__device_disk_set_backend: Disk
vdev=hda, using backend phy
libxl: debug: libxl_create.c:972:initiate_domain_create: Domain 8:running
bootloader
libxl: debug: libxl_bootloader.c:328:libxl__bootloader_run: Domain 8:not a
PV domain, skipping bootloader
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df4fcd8: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="(null)",
features="(null)"
domainbuilder: detail: xc_dom_kernel_file: filename="/usr/lib/xen/boot/
hvmloader"
domainbuilder: detail: xc_dom_malloc_filemap : 521 kB
libxl: debug: libxl_dom.c:901:libxl__load_hvm_firmware_module: Loading
BIOS: /usr/lib/xen/boot/seabios.bin
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.9, 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=0x8a3c4
xc: detail: ELF: memory: 0x100000 -> 0x18a3c4
domainbuilder: detail: xc_dom_mem_init: mem 4088 MB, pages 0xff800 pages,
4k each
domainbuilder: detail: xc_dom_mem_init: 0xff800 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: xc_dom_malloc : 10224 kB
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail: 4KB PAGES: 0x0000000000000200
xc: detail: 2MB PAGES: 0x00000000000003fb
xc: detail: 1GB PAGES: 0x0000000000000002
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn
0x100+0x8b at 0x7f84b419e000
domainbuilder: detail: xc_dom_alloc_segment: kernel : 0x100000 ->
0x18b000 (pfn 0x100 + 0x8b pages)
xc: detail: ELF: phdr 0 at 0x7f84b0b15000 -> 0x7f84b0b95820
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn
0x18b+0x40 at 0x7f84b415e000
domainbuilder: detail: xc_dom_alloc_segment: System Firmware module :
0x18b000 -> 0x1cb000 (pfn 0x18b + 0x40 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn
0x1cb+0x1 at 0x7f84b430f000
domainbuilder: detail: xc_dom_alloc_segment: HVM start info : 0x1cb000 ->
0x1cc000 (pfn 0x1cb + 0x1 pages)
domainbuilder: detail: alloc_pgtables_hvm: doing nothing
domainbuilder: detail: xc_dom_build_image : virt_alloc_end : 0x1cc000
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: clear_page: pfn 0xfefff, mfn 0xfefff
domainbuilder: detail: clear_page: pfn 0xfeffc, mfn 0xfeffc
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail: allocated
domainbuilder: detail: malloc : 10231 kB
domainbuilder: detail: anon mmap : 0 bytes
domainbuilder: detail: mapped
domainbuilder: detail: file mmap : 521 kB
domainbuilder: detail: domU mmap : 816 kB
domainbuilder: detail: vcpu_hvm: called
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x13f800
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x13f801
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch
w=0x556b1df53040 wpath=/local/domain/0/backend/vbd/8/768/state token=3/0:
register slotnum=3
libxl: debug: libxl_create.c:1653:do_domain_create: Domain 0:ao
0x556b1df4f140: inprogress: poller=0x556b1df4e410, flags=i
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x556b1df53040
wpath=/local/domain/0/backend/vbd/8/768/state token=3/0: event
epath=/local/domain/0/backend/vbd/8/768/state
libxl: debug: libxl_event.c:878:devstate_callback: backend
/local/domain/0/backend/vbd/8/768/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x556b1df53040
wpath=/local/domain/0/backend/vbd/8/768/state token=3/0: event
epath=/local/domain/0/backend/vbd/8/768/state
libxl: debug: libxl_event.c:874:devstate_callback: backend
/local/domain/0/backend/vbd/8/768/state wanted state 2 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch
w=0x556b1df53040 wpath=/local/domain/0/backend/vbd/8/768/state token=3/0:
deregister slotnum=3
libxl: debug: libxl_device.c:1060:device_backend_callback: Domain 8:calling
device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df53040: deregister unregistered
libxl: debug: libxl_linux.c:185:libxl__hotplug_disk: Domain 8:Args and
environment ready
libxl: debug: libxl_device.c:1161:device_hotplug: Domain 8:calling hotplug
script: /etc/xen/scripts/block add
libxl: debug: libxl_device.c:1162:device_hotplug: Domain 8:extra args:
libxl: debug: libxl_device.c:1170:device_hotplug: Domain 8:env:
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8: script:
/etc/xen/scripts/block
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8: XENBUS_TYPE:
vbd
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8: XENBUS_PATH:
backend/vbd/8/768
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8:
XENBUS_BASE_PATH: backend
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to
execute: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df53140: deregister unregistered
libxl: debug: libxl_linux.c:203:libxl__get_hotplug_script_info: Domain
8:num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1146:device_hotplug: Domain 8:No hotplug
script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df53140: deregister unregistered
libxl: debug: libxl_disk.c:992:libxl__device_disk_find_local_path: Directly
accessing local RAW disk /home/lordrafa/win10-red-stone.img
libxl: debug: libxl_dm.c:1695:libxl__build_device_model_args_new: Domain
8:Could not find user xen-qemuuser-shared, starting QEMU as root
libxl: debug: libxl_dm.c:2292:libxl__spawn_local_dm: Domain 8:Spawning
device-model /usr/lib/xen/bin/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
/usr/lib/xen/bin/qemu-system-i386
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -xen-domid
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: 8
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -chardev
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-8,server,nowait
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -no-shutdown
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -mon
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -chardev
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-8,server,nowait
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -mon
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
chardev=libxenstat-cmd,mode=control
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -nodefaults
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
-no-user-config
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -name
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: win10-1
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -vnc
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: 127.0.0.1:0
,to=99
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -display
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: none
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -k
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: en-us
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -serial
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: pty
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -vga
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: xengt
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
-vgt_low_gm_sz
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: 128
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -boot
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: order=dc
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -usb
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -usbdevice
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: tablet
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -smp
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: 2,maxcpus=2
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -device
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
e1000,id=nic0,netdev=net0,mac=00:25:10:03:0a:01
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -netdev
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
type=tap,id=net0,ifname=vif8.0-emu,script=no,downscript=no
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -machine
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: xenfv
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -m
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: 4088
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8: -drive
libxl: debug: libxl_dm.c:2294:libxl__spawn_local_dm: Domain 8:
file=/home/lordrafa/win10-red-stone.img,if=ide,index=0,
media=disk,format=raw,cache=writeback
libxl: debug: libxl_dm.c:2296:libxl__spawn_local_dm: Domain 8:Spawning
device-model /usr/lib/xen/bin/qemu-system-i386 with additional environment:
libxl: debug: libxl_dm.c:2298:libxl__spawn_local_dm: Domain 8:
XEN_QEMU_CONSOLE_LIMIT=1048576
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch
w=0x556b1df4ffd0 wpath=/local/domain/0/device-model/8/state token=3/1:
register slotnum=3
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x556b1df4ffd0
wpath=/local/domain/0/device-model/8/state token=3/1: event
epath=/local/domain/0/device-model/8/state
libxl: debug: libxl_exec.c:398:spawn_watch_event: domain 8 device model:
spawn watch p=(null)
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch
w=0x556b1df4ffd0 wpath=/local/domain/0/device-model/8/state token=3/1:
deregister slotnum=3
libxl: error: libxl_dm.c:2388:device_model_spawn_outcome: Domain 8:domain 8
device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1508:domcreate_devmodel_started: Domain
8:device model did not start: -3
libxl: error: libxl_dm.c:2502:kill_device_model: Device Model already exited
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch
w=0x556b1df580c0 wpath=/local/domain/0/backend/vbd/8/768/state token=3/2:
register slotnum=3
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x556b1df580c0
wpath=/local/domain/0/backend/vbd/8/768/state token=3/2: event
epath=/local/domain/0/backend/vbd/8/768/state
libxl: debug: libxl_event.c:874:devstate_callback: backend
/local/domain/0/backend/vbd/8/768/state wanted state 6 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch
w=0x556b1df580c0 wpath=/local/domain/0/backend/vbd/8/768/state token=3/2:
deregister slotnum=3
libxl: debug: libxl_device.c:1060:device_backend_callback: Domain 8:calling
device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df580c0: deregister unregistered
libxl: debug: libxl_linux.c:185:libxl__hotplug_disk: Domain 8:Args and
environment ready
libxl: debug: libxl_device.c:1161:device_hotplug: Domain 8:calling hotplug
script: /etc/xen/scripts/block remove
libxl: debug: libxl_device.c:1162:device_hotplug: Domain 8:extra args:
libxl: debug: libxl_device.c:1170:device_hotplug: Domain 8:env:
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8: script:
/etc/xen/scripts/block
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8: XENBUS_TYPE:
vbd
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8: XENBUS_PATH:
backend/vbd/8/768
libxl: debug: libxl_device.c:1177:device_hotplug: Domain 8:
XENBUS_BASE_PATH: backend
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to
execute: /etc/xen/scripts/block remove
libxl: debug: libxl_event.c:542:watchfd_callback: watch
epath=/local/domain/0/backend/vbd/8/768/state token=3/2: empty slot
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df581c0: deregister unregistered
libxl: debug: libxl_linux.c:203:libxl__get_hotplug_script_info: Domain
8:num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1146:device_hotplug: Domain 8:No hotplug
script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df581c0: deregister unregistered
libxl: debug: libxl_linux.c:226:libxl__get_hotplug_script_info: Domain
8:backend_kind 6, no need to execute scripts
libxl: debug: libxl_device.c:1146:device_hotplug: Domain 8:No hotplug
script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
w=0x556b1df58620: deregister unregistered
libxl: debug: libxl_domain.c:1166:devices_destroy_cb: Domain 8:Forked pid
2435 for destroy of domain
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x556b1df4f140:
complete, rc=-3
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x556b1df4f140:
destroy
libxl: debug: libxl_domain.c:871:libxl_domain_destroy: Domain 8:ao
0x556b1df4e050: create: how=(nil) callback=(nil) poller=0x556b1df4e410
libxl: error: libxl_domain.c:1027:libxl__destroy_domid: Domain
8:Non-existant domain
libxl: error: libxl_domain.c:986:domain_destroy_callback: Domain 8:Unable
to destroy guest
libxl: error: libxl_domain.c:889:domain_destroy_cb: Domain 8:Destruction of
domain failed
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x556b1df4e050:
complete, rc=-21
libxl: debug: libxl_domain.c:880:libxl_domain_destroy: Domain 8:ao
0x556b1df4e050: inprogress: poller=0x556b1df4e410, flags=ic
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x556b1df4e050:
destroy
xencall:buffer: debug: total allocations:681 total releases:681
xencall:buffer: debug: current allocations:0 maximum allocations:3
xencall:buffer: debug: cache current size:3
xencall:buffer: debug: cache hits:664 misses:3 toobig:14
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