xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Stub domain crash on Xen v4.6.1
@ 2016-04-05 15:17 Fanny Dwargee
  2016-04-06 11:12 ` Wei Liu
  2016-04-12  8:36 ` Wei Liu
  0 siblings, 2 replies; 10+ messages in thread
From: Fanny Dwargee @ 2016-04-05 15:17 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1162 bytes --]

Hi,

after adding the 'device_model_stubdomain_override = 1' to an otherwise
fine configuration the domain crashes on start.

Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:

   - ./configure --enable-stubdom --enable-githttp
   - make dist-xen
   - make dist-tools
   - make dist-stubdom
   - make install-xen
   - make install-tools
   - make install-stubdom

As pointed out before the same configuration file without the '
device_model_stubdomain_override' works flawlessly.

This is the 'xl list' command output while the domain is starting:

Name                    ID   Mem VCPUs      State   Time(s)
Domain-0                 0  1022     2     r-----     318.3
win7-sp1-x64-2          20  2048     1     r-----       5.5
win7-sp1-x64-2-dm       21    44     1     r-----       6.0


As you can see both domains are started (the stub and the original domain)

Find attached the domain configuration file, 'xl info' output, 'xl create'
output and the /var/log/xen/console/hypervisor.log file, notice the grant
table error on console-hypervisor.log

I'd very grateful for any help finding the cause of this problem.

Best regards,

Fanny

[-- Attachment #1.2: Type: text/html, Size: 2321 bytes --]

[-- Attachment #2: console-hypervisor.log --]
[-- Type: application/octet-stream, Size: 21817 bytes --]

(d21) Bootstrapping...
(d21) Xen Minimal OS!
(d21)   start_info: 0x57a000(VA)
(d21)     nr_pages: 0x2c00
(d21)   shared_inf: 0xb50e8000(MA)
(d21)      pt_base: 0x57d000(VA)
(d21) nr_pt_frames: 0x7
(d21)     mfn_list: 0x564000(VA)
(d21)    mod_start: 0x0(VA)
(d21)      mod_len: 0
(d21)        flags: 0x0
(d21)     cmd_line:  -d 20
(d21)        stack: 0x523080-0x543080
(d21) MM: Init
(d21)       _text: 0x0(VA)
(d21)      _etext: 0x113312(VA)
(d21)    _erodata: 0x164000(VA)
(d21)      _edata: 0x16a328(VA)
(d21) stack start: 0x523080(VA)
(d21)        _end: 0x5639a8(VA)
(d21)   start_pfn: 587
(d21)     max_pfn: 2c00
(d21) Mapping memory range 0x800000 - 0x2c00000
(d21) setting 0x0-0x164000 readonly
(d21) skipped 1000
(d21) MM: Initialise page allocator for 599000(599000)-2c00000(2c00000)
(d21) MM: done
(d21) Demand map pfns at 2c01000-0x2002c01000.
(d21) Heap resides at 2002c02000-4002c02000.
(d21) Initialising timer interface
(d21) Initialising console ... done.
(d21) gnttab_table mapped at 0x2c01000.
(d21) Initialising scheduler
(d21) Thread "Idle": pointer: 0x0x2002c02050, stack: 0x0x5c0000
(d21) Thread "xenstore": pointer: 0x0x2002c02800, stack: 0x0x5d0000
(d21) xenbus initialised on irq 1 mfn 0x2397b
(d21) Thread "shutdown": pointer: 0x0x2002c02fb0, stack: 0x0x5e0000
(d21) main.c: dummy main: start_info=0x543180
(d21) Thread "main": pointer: 0x0x2002c03760, stack: 0x0x5f0000
(d21) Thread "pcifront": pointer: 0x0x2002c03f50, stack: 0x0x600000
(d21) pcifront_watches: waiting for backend path to appear device/pci/0/backend
(d21) dom vm is at /vm/b9291362-da8d-4581-87c9-7644bec4c672
(d21) ************************ NETFRONT for device/vif/0 **********
(d21) 
(d21) 
(d21) net TX ring size 256
(d21) net RX ring size 256
(d21) backend at /local/domain/0/backend/vif/21/0
(d21) mac is 00:06:5b:66:66:66
(d21) **************************
(d21) tap_open((null)) -> 3
(d21) xs_daemon_open -> 5, 0x168c28
(d21) ******************* BLKFRONT for /local/domain/21/device/vbd/768 **********
(d21) 
(d21) 
(d21) backend at /local/domain/0/backend/vbd/21/768
(d21) 20971520 sectors of 512 bytes
(d21) **************************
(d21) blk_open(/local/domain/21/device/vbd/768) -> 6
(d21) xs_watch(/local/domain/0/backend/vbd/21/5632/params, hdc)
(d21) ******************* BLKFRONT for /local/domain/21/device/vbd/5632 **********
(d21) 
(d21) 
(d21) backend at /local/domain/0/backend/vbd/21/5632
(d21) 2604956 sectors of 512 bytes
(d21) **************************
(d21) blk_open(/local/domain/21/device/vbd/5632) -> 7
(d21) xs_watch(device-model/20/logdirty/cmd, logdirty)
(d21) xs_watch(device-model/20/command, dm-command)
(d21) xs_watch(/local/domain/20/cpu, vcpu-set)
(d21) xs_read(/local/domain/0/backend/pci/20/0/msitranslate): ENOENT
(d21) xs_read(/local/domain/0/backend/pci/20/0/power_mgmt): ENOENT
(d21) ******************* CONSFRONT for device/console/3 **********
(d21) 
(d21) 
(d21) backend at /local/domain/0/backend/console/21/3
(d21) **************************
(d21) fd(8) = posix_openpt
(d21) fcntl(8, 3, 16/26)
(d21) fcntl(8, 4, ffffffff/37777777777)
(d21) fcntl(8, 3, 23/43)
(d21) fcntl(8, 4, ffffffff/37777777777)
(d21) xs_watch(/local/domain/0/backend/console/20, be:0x153ecd:20:0x164440)
(d21) xs_directory(/local/domain/0/backend/console/20): EACCES
(d21) xs_watch(/local/domain/0/backend/vkbd/20, be:0x1507c2:20:0x1643c0)
(d21) xs_directory(/local/domain/0/backend/vkbd/20): EACCES
(d21) xs_read(device-model/20/disable_pf): ENOENT
(d21) xs_watch(/local/domain/20/log-throttling, /local/domain/20/log-throttling)
(d21) Thread "kbdfront": pointer: 0x0x2002c2d890, stack: 0x0xcc0000
(d21) ******************* FBFRONT for /local/domain/21/device/vfb/0 **********
(d21) 
(d21) 
(d21) ******************* KBDFRONT for /local/domain/21/device/vkbd/0 **********
(d21) 
(d21) 
(d21) backend at /local/domain/0/backend/vkbd/21/0
(d21) backend at /local/domain/0/backend/vfb/21/0
(d21) /local/domain/0/backend/vkbd/21/0 connected
(d21) ************************** KBDFRONT
(d21) Thread "kbdfront" exited.
(d21) /local/domain/0/backend/vfb/21/0 connected
(d21) ************************** FBFRONT
(d21) kbd_open(/local/domain/21/device/vkbd/0) -> 10
(d21) fb_open(/local/domain/21/device/vfb/0) -> 11
(d21) xs_read_watch() -> /local/domain/20/log-throttling /local/domain/20/log-throttling
(d21) xs_read(/local/domain/20/log-throttling): ENOENT
(d21) xs_read_watch() -> /local/domain/20/cpu vcpu-set
(d21) xs_read_watch() -> device-model/20/command dm-command
(d21) xs_read(device-model/20/command): ENOENT
(d21) xs_read_watch() -> device-model/20/logdirty/cmd logdirty
(d21) xs_read(device-model/20/logdirty/cmd): ENOENT
(d21) xs_read_watch() -> /local/domain/0/backend/vbd/21/5632/params hdc
(d20) HVM Loader
(d20) Detected Xen v4.6.1
(d20) Xenbus rings @0xfeffc000, event channel 1
(d20) System requested ROMBIOS
(d20) CPU speed is 2791 MHz
(d20) Relocating guest memory for lowmem MMIO space enabled
(XEN) irq.c:275: Dom20 PCI link 0 changed 0 -> 5
(d20) PCI-ISA link 0 routed to IRQ5
(XEN) irq.c:275: Dom20 PCI link 1 changed 0 -> 10
(d20) PCI-ISA link 1 routed to IRQ10
(XEN) irq.c:275: Dom20 PCI link 2 changed 0 -> 11
(d20) PCI-ISA link 2 routed to IRQ11
(XEN) irq.c:275: Dom20 PCI link 3 changed 0 -> 5
(d20) PCI-ISA link 3 routed to IRQ5
(d20) pci dev 01:2 INTD->IRQ5
(d20) pci dev 01:3 INTA->IRQ10
(d20) pci dev 03:0 INTA->IRQ5
(d20) pci dev 04:0 INTA->IRQ5
(d20) No RAM in high memory; setting high_mem resource base to 100000000
(d20) pci dev 02:0 bar 10 size 001000000: 0f0000008
(d20) pci dev 03:0 bar 14 size 001000000: 0f1000008
(d20) pci dev 04:0 bar 10 size 000020000: 0f2000000
(d20) pci dev 03:0 bar 10 size 000000100: 00000c001
(d20) pci dev 04:0 bar 14 size 000000040: 00000c101
(d20) pci dev 01:2 bar 20 size 000000020: 00000c141
(d20) pci dev 01:1 bar 20 size 000000010: 00000c161
(d20) Multiprocessor initialisation:
(d20)  - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [1/8] ... done.
(d20)  - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [1/8] ... done.
(d20) Testing HVM environment:
(d20)  - REP INSB across page boundaries ... passed
(d20)  - GS base MSRs and SWAPGS ... passed
(d20) Passed 2 of 2 tests
(d20) Writing SMBIOS tables ...
(d20) Loading ROMBIOS ...
(d20) 16732 bytes of ROMBIOS high-memory extensions:
(d20)   Relocating to 0xfc001000-0xfc00515c ... done
(d20) Creating MP tables ...
(d20) Loading Standard VGABIOS ...
(d20) Loading PCI Option ROM ...
(d20)  - Manufacturer: http://ipxe.org
(d20)  - Product name: iPXE
(d20) Option ROMs:
(d20)  c0000-c9fff: VGA BIOS
(d20)  ca000-db7ff: Etherboot ROM
(d20) Loading ACPI ...
(d20) vm86 TSS at fc011380
(d20) BIOS map:
(d20)  f0000-fffff: Main BIOS
(d20) E820 table:
(d20)  [00]: 00000000:00000000 - 00000000:0009e000: RAM
(d20)  [01]: 00000000:0009e000 - 00000000:000a0000: RESERVED
(d20)  HOLE: 00000000:000a0000 - 00000000:000e0000
(d20)  [02]: 00000000:000e0000 - 00000000:00100000: RESERVED
(d20)  [03]: 00000000:00100000 - 00000000:7f000000: RAM
(d20)  HOLE: 00000000:7f000000 - 00000000:fc000000
(d20)  [04]: 00000000:fc000000 - 00000001:00000000: RESERVED
(d20) Invoking ROMBIOS ...
(XEN) stdvga.c:173:d20v0 entering stdvga mode
(XEN) stdvga.c:117:d20v0 entering caching mode
(d20) VGABios $Id: vgabios.c,v 1.67 2008/01/27 09:44:12 vruppert Exp $
(d20) VBE Bios $Id: vbe.c,v 1.60 2008/03/02 07:47:21 vruppert Exp $
(XEN) stdvga.c:126:d20v0 leaving caching mode
(d20) Bochs BIOS - build: 06/23/99
(d20) $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $
(d20) Options: apmbios pcibios eltorito PMM 
(d20) 
(d20) ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (10240 MBytes)
(d20) ata1 master: QEMU DVD-ROM ATAPI-4 CD-Rom/DVD-Rom
(d20) 
(d20) 
(d20) 
(d20) Press F12 for boot menu.
(d20) 
(d20) Booting from Hard Disk...
(XEN) irq.c:275: Dom20 PCI link 0 changed 5 -> 0
(XEN) irq.c:275: Dom20 PCI link 1 changed 10 -> 0
(XEN) irq.c:275: Dom20 PCI link 2 changed 11 -> 0
(XEN) irq.c:275: Dom20 PCI link 3 changed 5 -> 0
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v1 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v1 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v1 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v1 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v1 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(d21) close(12)

[-- Attachment #3: xl-create.log --]
[-- Type: application/octet-stream, Size: 20651 bytes --]

Parsing config from win7-sp1-x64-2.cfg
libxl: debug: libxl_create.c:1560:do_domain_create: ao 0x2149940: create: how=(nil) callback=(nil) poller=0x21499d0
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hda, using backend phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hdc, using backend phy
libxl: debug: libxl_create.c:945:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:324:libxl__bootloader_run: not a PV domain, skipping bootloader
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214a378: deregister unregistered
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xc52e4
xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1c52e4
xc: detail: VIRTUAL MEMORY ARRANGEMENT:
xc: detail:   Loader:   0000000000100000->00000000001c52e4
xc: detail:   Modules:  0000000000000000->0000000000000000
xc: detail:   TOTAL:    0000000000000000->000000007f000000
xc: detail:   ENTRY:    000000000010002c
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail:   4KB PAGES: 0x0000000000000200
xc: detail:   2MB PAGES: 0x00000000000003f7
xc: detail:   1GB PAGES: 0x0000000000000000
xc: detail: elf_load_binary: phdr 0 at 0x7f67d904e000 -> 0x7f67d9109758
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff000
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x214c460 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: register slotnum=3
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x214d730 wpath=/local/domain/0/backend/vbd/20/5632/state token=2/1: register slotnum=2
libxl: debug: libxl_create.c:1583:do_domain_create: ao 0x2149940: inprogress: poller=0x21499d0, flags=i
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214c460 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: event epath=/local/domain/0/backend/vbd/20/768/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/20/768/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x214c460 wpath=/local/domain/0/backend/vbd/20/768/state token=3/0: deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214c460: deregister unregistered
libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add 
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/20/768/state token=3/0: empty slot
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214d730 wpath=/local/domain/0/backend/vbd/20/5632/state token=2/1: event epath=/local/domain/0/backend/vbd/20/5632/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/20/5632/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x214d730 wpath=/local/domain/0/backend/vbd/20/5632/state token=2/1: deregister slotnum=2
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214d730: deregister unregistered
libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add 
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/20/5632/state token=2/1: empty slot
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214c560: deregister unregistered
libxl: debug: libxl_linux.c:246:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214c560: deregister unregistered
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214d830: deregister unregistered
libxl: debug: libxl_linux.c:246:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214d830: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline=" -d 20", features=""
libxl: debug: libxl_dom.c:631:libxl__build_pv: pv kernel mapped 0 path /usr/local/lib/xen/boot/ioemu-stubdom.gz
domainbuilder: detail: xc_dom_kernel_file: filename="/usr/local/lib/xen/boot/ioemu-stubdom.gz"
domainbuilder: detail: xc_dom_malloc_filemap    : 2463 kB
domainbuilder: detail: xc_dom_malloc            : 13934 kB
domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x267c1b -> 0xd9b8a8
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.6, 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 Linux bzImage loader ... 
domainbuilder: detail: xc_dom_probe_bzimage_kernel: kernel is not a bzImage
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying ELF-generic loader ... 
domainbuilder: detail: loader probe OK
xc: detail: elf_parse_binary: phdr: paddr=0x0 memsz=0x5639a8
xc: detail: elf_parse_binary: memory: 0x0 -> 0x5639a8
xc: detail: elf_xen_parse: __xen_guest: "GUEST_OS=Mini-OS,XEN_VER=xen-3.0,VIRT_BASE=0x0,ELF_PADDR_OFFSET=0x0,HYPERCALL_PAGE=0x2,LOADER=generic"
xc: detail: elf_xen_parse_guest_info: GUEST_OS="Mini-OS"
xc: detail: elf_xen_parse_guest_info: XEN_VER="xen-3.0"
xc: detail: elf_xen_parse_guest_info: VIRT_BASE="0x0"
xc: detail: elf_xen_parse_guest_info: ELF_PADDR_OFFSET="0x0"
xc: detail: elf_xen_parse_guest_info: HYPERCALL_PAGE="0x2"
xc: detail: elf_xen_parse_guest_info: LOADER="generic"
xc: detail: elf_xen_addr_calc_check: addresses:
xc: detail:     virt_base        = 0x0
xc: detail:     elf_paddr_offset = 0x0
xc: detail:     virt_offset      = 0x0
xc: detail:     virt_kstart      = 0x0
xc: detail:     virt_kend        = 0x5639a8
xc: detail:     virt_entry       = 0x0
xc: detail:     p2m_base         = 0xffffffffffffffff
domainbuilder: detail: xc_dom_parse_elf_kernel: xen-3.0-x86_64: 0x0 -> 0x5639a8
domainbuilder: detail: xc_dom_mem_init: mem 44 MB, pages 0x2c00 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x2c00 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: x86_compat: guest xen-3.0-x86_64, address size 64
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0x0 -> 0x564000  (pfn 0x0 + 0x564 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x0+0x564 at 0x7f67d4cfb000
xc: detail: elf_load_binary: phdr 0 at 0x7f67d4cfb000 -> 0x7f67d525e9a8
domainbuilder: detail: xc_dom_alloc_segment:   phys2mach    : 0x564000 -> 0x57a000  (pfn 0x564 + 0x16 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x564+0x16 at 0x7f67d90fe000
domainbuilder: detail: xc_dom_alloc_page   :   start info   : 0x57a000 (pfn 0x57a)
domainbuilder: detail: xc_dom_alloc_page   :   xenstore     : 0x57b000 (pfn 0x57b)
domainbuilder: detail: xc_dom_alloc_page   :   console      : 0x57c000 (pfn 0x57c)
domainbuilder: detail: nr_page_tables: 0x0000ffffffffffff/48: 0x0000000000000000 -> 0x0000ffffffffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x0000007fffffffff/39: 0x0000000000000000 -> 0x0000007fffffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x000000003fffffff/30: 0x0000000000000000 -> 0x000000003fffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x00000000001fffff/21: 0x0000000000000000 -> 0x00000000007fffff, 4 table(s)
domainbuilder: detail: xc_dom_alloc_segment:   page tables  : 0x57d000 -> 0x584000  (pfn 0x57d + 0x7 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x57d+0x7 at 0x7f67d90f7000
domainbuilder: detail: xc_dom_alloc_page   :   boot stack   : 0x584000 (pfn 0x584)
domainbuilder: detail: xc_dom_build_image  : virt_alloc_end : 0x585000
domainbuilder: detail: xc_dom_build_image  : virt_pgtab_end : 0x800000
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: arch_setup_bootearly: doing nothing
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_64 <= matches
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
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: xc_dom_update_guest_p2m: dst 64bit, pages 0x2c00
domainbuilder: detail: clear_page: pfn 0x57c, mfn 0x2397c
domainbuilder: detail: clear_page: pfn 0x57b, mfn 0x2397b
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x57a+0x1 at 0x7f67d9120000
domainbuilder: detail: start_info_x86_64: called
domainbuilder: detail: setup_hypercall_page: vaddr=0x2000 pfn=0x2
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 14058 kB
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 2463 kB
domainbuilder: detail:       domU mmap          : 5640 kB
domainbuilder: detail: arch_setup_bootlate: shared_info: pfn 0x0, mfn 0xb50e8
domainbuilder: detail: shared_info_x86_64: called
domainbuilder: detail: vcpu_x86_64: called
domainbuilder: detail: vcpu_x86_64: cr3: pfn 0x57d mfn 0x2397d
domainbuilder: detail: launch_vm: called, ctxt=0x7f67d9121004
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x2151b70 wpath=/local/domain/0/backend/vbd/21/768/state token=2/2: register slotnum=2
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x214f000 wpath=/local/domain/0/backend/vbd/21/5632/state token=3/3: register slotnum=3
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x2151b70 wpath=/local/domain/0/backend/vbd/21/768/state token=2/2: event epath=/local/domain/0/backend/vbd/21/768/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/21/768/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x2151b70 wpath=/local/domain/0/backend/vbd/21/768/state token=2/2: deregister slotnum=2
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2151b70: deregister unregistered
libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add 
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/21/768/state token=2/2: empty slot
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214f000 wpath=/local/domain/0/backend/vbd/21/5632/state token=3/3: event epath=/local/domain/0/backend/vbd/21/5632/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/21/5632/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x214f000 wpath=/local/domain/0/backend/vbd/21/5632/state token=3/3: deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214f000: deregister unregistered
libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add 
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/21/5632/state token=3/3: empty slot
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2151c70: deregister unregistered
libxl: debug: libxl_linux.c:246:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2151c70: deregister unregistered
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214f100: deregister unregistered
libxl: debug: libxl_linux.c:246:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214f100: deregister unregistered
libxl: debug: libxl_dm.c:1778:libxl__spawn_local_dm: Spawning device-model /usr/local/lib/xen/bin/qemu-dm with arguments:
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   /usr/local/lib/xen/bin/qemu-dm
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -d
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   21
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -domain-name
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   win7-sp1-x64-2-dm
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -vnc
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   0.0.0.0:2
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -M
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   xenpv
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x214ac30 wpath=/local/domain/0/device-model/21/state token=3/4: register slotnum=3
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214ac30 wpath=/local/domain/0/device-model/21/state token=3/4: event epath=/local/domain/0/device-model/21/state
libxl: debug: libxl_exec.c:399:spawn_watch_event: domain 21 device model: spawn watch p=(null)
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214ac30 wpath=/local/domain/0/device-model/21/state token=3/4: event epath=/local/domain/0/device-model/21/state
libxl: debug: libxl_exec.c:399:spawn_watch_event: domain 21 device model: spawn watch p=running
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x214ac30 wpath=/local/domain/0/device-model/21/state token=3/4: deregister slotnum=3
libxl: debug: libxl_exec.c:129:libxl_report_child_exitstatus: domain 21 device model (dying as expected) [7314] died due to fatal signal Killed
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x214ac30: deregister unregistered
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x2158580 wpath=/local/domain/0/backend/vif/21/0/state token=3/5: register slotnum=3
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x2158580 wpath=/local/domain/0/backend/vif/21/0/state token=3/5: event epath=/local/domain/0/backend/vif/21/0/state
libxl: debug: libxl_event.c:884:devstate_callback: backend /local/domain/0/backend/vif/21/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x2158580 wpath=/local/domain/0/backend/vif/21/0/state token=3/5: event epath=/local/domain/0/backend/vif/21/0/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vif/21/0/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x2158580 wpath=/local/domain/0/backend/vif/21/0/state token=3/5: deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2158580: deregister unregistered
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-openvswitch online
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/vif-openvswitch online 
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2158680: deregister unregistered
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2158680: deregister unregistered
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x214ada0 wpath=/local/domain/21/device-model/20/state token=3/6: register slotnum=3
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214ada0 wpath=/local/domain/21/device-model/20/state token=3/6: event epath=/local/domain/21/device-model/20/state
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x214ada0 wpath=/local/domain/21/device-model/20/state token=3/6: event epath=/local/domain/21/device-model/20/state
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x214ada0 wpath=/local/domain/21/device-model/20/state token=3/6: deregister slotnum=3
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x2152c40 wpath=/local/domain/0/backend/vif/20/0/state token=3/7: register slotnum=3
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x2152c40 wpath=/local/domain/0/backend/vif/20/0/state token=3/7: event epath=/local/domain/0/backend/vif/20/0/state
libxl: debug: libxl_event.c:884:devstate_callback: backend /local/domain/0/backend/vif/20/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x2152c40 wpath=/local/domain/0/backend/vif/20/0/state token=3/7: event epath=/local/domain/0/backend/vif/20/0/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vif/20/0/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x2152c40 wpath=/local/domain/0/backend/vif/20/0/state token=3/7: deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2152c40: deregister unregistered
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-openvswitch online
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/vif-openvswitch online 
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2152d40: deregister unregistered
libxl: debug: libxl_linux.c:259:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x2152d40: deregister unregistered
libxl: debug: libxl_event.c:2183:libxl__ao_progress_report: ao 0x2149940: progress report: ignored
libxl: debug: libxl_event.c:1874:libxl__ao_complete: ao 0x2149940: complete, rc=0
libxl: debug: libxl_event.c:1843:libxl__ao__destroy: ao 0x2149940: destroy
xc: debug: hypercall buffer: total allocations:1370 total releases:1370
xc: debug: hypercall buffer: current allocations:0 maximum allocations:3
xc: debug: hypercall buffer: cache current size:3
xc: debug: hypercall buffer: cache hits:1351 misses:3 toobig:16

[-- Attachment #4: xl-info.log --]
[-- Type: application/octet-stream, Size: 1420 bytes --]

host                   : vmi-test
release                : 3.16.0-4-amd64
version                : #1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02)
machine                : x86_64
nr_cpus                : 4
max_cpu_id             : 7
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 2
cpu_mhz                : 2790
hw_caps                : bfebfbff:28100800:00000000:00003f00:17bae3ff:00000000:00000001:00000000
virt_caps              : hvm hvm_directio
total_memory           : 3983
free_memory            : 2895
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 6
xen_extra              : .1
xen_version            : 4.6.1
xen_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
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          :
xen_commandline        : placeholder dom0_mem=1024M,max:1024M dom0_max_vcpus=2 dom0_vcpus_pin=true hap_1gb=false hap_2mb=false altp2m=1 consoleblank=0 vga=normal loglvl=all guest_loglvl=all
cc_compiler            : gcc (Debian 4.9.2-10) 4.9.2
cc_compile_by          : root
cc_compile_domain      :
cc_compile_date        : Tue Apr  5 09:27:54 CEST 2016
xend_config_format     : 4

[-- Attachment #5: win7-sp1-x64-2.cfg --]
[-- Type: application/octet-stream, Size: 639 bytes --]

name = "win7-sp1-x64-2"

builder = 'hvm'
memory  = 2048
vcpus   = 2
maxcpus = 2

hap       = 1
acpi      = 1
altp2mhvm = 1

on_poweroff = 'destroy'
on_reboot   = 'destroy'
on_crash    = 'destroy'

device_model_stubdomain_override = 1

vif = [ 'type=ioemu,model=e1000,bridge=xenbr1.200,script=vif-openvswitch,backend=0' ]
disk = [ 'phy:/dev/group-vm/win7-sp1-x64-2,hda,w', 'file:/opt/iso/win7-ultimate-sp1-x64.iso,hdc:cdrom,r' ]

boot="cd"

vnc        = 1
vnclisten  = '0.0.0.0'
vncpasswd  = ''
vncunused  = 0
vncdisplay = 2

serial = 'pty'

usb       = 1
usbdevice = 'tablet'

vga = 'stdvga'
videoram = 16

[-- Attachment #6: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-05 15:17 Stub domain crash on Xen v4.6.1 Fanny Dwargee
@ 2016-04-06 11:12 ` Wei Liu
  2016-04-06 12:49   ` Fanny Dwargee
  2016-04-12  8:36 ` Wei Liu
  1 sibling, 1 reply; 10+ messages in thread
From: Wei Liu @ 2016-04-06 11:12 UTC (permalink / raw)
  To: Fanny Dwargee; +Cc: Wei Liu, xen-devel

On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
> Hi,
> 
> after adding the 'device_model_stubdomain_override = 1' to an otherwise
> fine configuration the domain crashes on start.
> 
> Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:
> 
>    - ./configure --enable-stubdom --enable-githttp
>    - make dist-xen
>    - make dist-tools
>    - make dist-stubdom
>    - make install-xen
>    - make install-tools
>    - make install-stubdom
> 
> As pointed out before the same configuration file without the '
> device_model_stubdomain_override' works flawlessly.
> 
> This is the 'xl list' command output while the domain is starting:
> 
> Name                    ID   Mem VCPUs      State   Time(s)
> Domain-0                 0  1022     2     r-----     318.3
> win7-sp1-x64-2          20  2048     1     r-----       5.5
> win7-sp1-x64-2-dm       21    44     1     r-----       6.0
> 
> 
> As you can see both domains are started (the stub and the original domain)
> 
> Find attached the domain configuration file, 'xl info' output, 'xl create'
> output and the /var/log/xen/console/hypervisor.log file, notice the grant
> table error on console-hypervisor.log
> 
> I'd very grateful for any help finding the cause of this problem.
> 


The hypervsior log show some error, but unfortunately it is not
immediately clear what went wrong.

Do you have a working base line setup so that I can compare the
difference?

Wei.

> Best regards,
> 
> Fanny





> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-06 11:12 ` Wei Liu
@ 2016-04-06 12:49   ` Fanny Dwargee
  2016-04-07 16:13     ` Wei Liu
  0 siblings, 1 reply; 10+ messages in thread
From: Fanny Dwargee @ 2016-04-06 12:49 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu


[-- Attachment #1.1: Type: text/plain, Size: 2082 bytes --]

Hi Wei,

first: thanks for your effort. :)

Find attached the 'xl create' output and the
/var/log/xen/console/hypervisor.log
files after creating the same domain without the
'device_model_stubdomain_override' configuration option.

'xl list' command output...
Name                 ID   Mem VCPUs      State   Time(s)
Domain-0              0  1023     2     r-----   11608.1
win7-sp1-x64-2       28  2048     1     ------       0.4

Regards,

Fanny




2016-04-06 13:12 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:

> On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
> > Hi,
> >
> > after adding the 'device_model_stubdomain_override = 1' to an otherwise
> > fine configuration the domain crashes on start.
> >
> > Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:
> >
> >    - ./configure --enable-stubdom --enable-githttp
> >    - make dist-xen
> >    - make dist-tools
> >    - make dist-stubdom
> >    - make install-xen
> >    - make install-tools
> >    - make install-stubdom
> >
> > As pointed out before the same configuration file without the '
> > device_model_stubdomain_override' works flawlessly.
> >
> > This is the 'xl list' command output while the domain is starting:
> >
> > Name                    ID   Mem VCPUs      State   Time(s)
> > Domain-0                 0  1022     2     r-----     318.3
> > win7-sp1-x64-2          20  2048     1     r-----       5.5
> > win7-sp1-x64-2-dm       21    44     1     r-----       6.0
> >
> >
> > As you can see both domains are started (the stub and the original
> domain)
> >
> > Find attached the domain configuration file, 'xl info' output, 'xl
> create'
> > output and the /var/log/xen/console/hypervisor.log file, notice the grant
> > table error on console-hypervisor.log
> >
> > I'd very grateful for any help finding the cause of this problem.
> >
>
>
> The hypervsior log show some error, but unfortunately it is not
> immediately clear what went wrong.
>
> Do you have a working base line setup so that I can compare the
> difference?
>
> Wei.
>
> > Best regards,
> >
> > Fanny
>
>

[-- Attachment #1.2: Type: text/html, Size: 3286 bytes --]

[-- Attachment #2: console-hypervisor-success.log --]
[-- Type: application/octet-stream, Size: 4904 bytes --]

(d28) HVM Loader
(d28) Detected Xen v4.6.1
(d28) Xenbus rings @0xfeffc000, event channel 1
(d28) System requested SeaBIOS
(d28) CPU speed is 2791 MHz
(d28) Relocating guest memory for lowmem MMIO space disabled
(XEN) irq.c:275: Dom28 PCI link 0 changed 0 -> 5
(d28) PCI-ISA link 0 routed to IRQ5
(XEN) irq.c:275: Dom28 PCI link 1 changed 0 -> 10
(d28) PCI-ISA link 1 routed to IRQ10
(XEN) irq.c:275: Dom28 PCI link 2 changed 0 -> 11
(d28) PCI-ISA link 2 routed to IRQ11
(XEN) irq.c:275: Dom28 PCI link 3 changed 0 -> 5
(d28) PCI-ISA link 3 routed to IRQ5
(d28) pci dev 01:2 INTD->IRQ5
(d28) pci dev 01:3 INTA->IRQ10
(d28) pci dev 02:0 INTA->IRQ11
(d28) pci dev 04:0 INTA->IRQ5
(d28) No RAM in high memory; setting high_mem resource base to 100000000
(d28) pci dev 02:0 bar 14 size 001000000: 0f0000008
(d28) pci dev 03:0 bar 10 size 001000000: 0f1000008
(d28) pci dev 04:0 bar 30 size 000040000: 0f2000000
(d28) pci dev 04:0 bar 10 size 000020000: 0f2040000
(d28) pci dev 03:0 bar 30 size 000010000: 0f2060000
(d28) pci dev 03:0 bar 18 size 000001000: 0f2070000
(d28) pci dev 02:0 bar 10 size 000000100: 00000c001
(d28) pci dev 04:0 bar 14 size 000000040: 00000c101
(d28) pci dev 01:2 bar 20 size 000000020: 00000c141
(d28) pci dev 01:1 bar 20 size 000000010: 00000c161
(d28) Multiprocessor initialisation:
(d28)  - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [1/8] ... done.
(d28)  - CPU1 ... 36-bit phys ... fixed MTRRs ... var MTRRs [1/8] ... done.
(d28) Testing HVM environment:
(d28)  - REP INSB across page boundaries ... passed
(d28)  - GS base MSRs and SWAPGS ... passed
(d28) Passed 2 of 2 tests
(d28) Writing SMBIOS tables ...
(d28) Loading SeaBIOS ...
(d28) Creating MP tables ...
(d28) Loading ACPI ...
(d28) vm86 TSS at fc00a180
(d28) BIOS map:
(d28)  10000-100d3: Scratch space
(d28)  c0000-fffff: Main BIOS
(d28) E820 table:
(d28)  [00]: 00000000:00000000 - 00000000:000a0000: RAM
(d28)  HOLE: 00000000:000a0000 - 00000000:000c0000
(d28)  [01]: 00000000:000c0000 - 00000000:00100000: RESERVED
(d28)  [02]: 00000000:00100000 - 00000000:7f000000: RAM
(d28)  HOLE: 00000000:7f000000 - 00000000:fc000000
(d28)  [03]: 00000000:fc000000 - 00000001:00000000: RESERVED
(d28) Invoking SeaBIOS ...
(d28) SeaBIOS (version rel-1.8.2-0-g33fbe13-20160405_085824-vmi-test)
(d28) 
(d28) Found Xen hypervisor signature at 40000000
(d28) Running on QEMU (i440fx)
(d28) xen: copy e820...
(d28) Relocating init from 0x000df3a0 to 0x7efaf480 (size 68288)
(d28) CPU Mhz=2792
(d28) Found 8 PCI devices (max PCI bus is 00)
(d28) Allocated Xen hypercall page at 7efff000
(d28) Detected Xen v4.6.1
(d28) xen: copy BIOS tables...
(d28) Copying SMBIOS entry point from 0x00010010 to 0x000f66f0
(d28) Copying MPTABLE from 0xfc001160/fc001170 to 0x000f65f0
(d28) Copying PIR from 0x00010030 to 0x000f6570
(d28) Copying ACPI RSDP from 0x000100b0 to 0x000f6540
(d28) Using pmtimer, ioport 0xb008
(d28) Scan for VGA option rom
(d28) Running option rom at c000:0003
(XEN) stdvga.c:173:d28v0 entering stdvga mode
(XEN) stdvga.c:117:d28v0 entering caching mode
(d28) pmm call arg1=0
(d28) Turning on vga text mode console
(XEN) stdvga.c:126:d28v0 leaving caching mode
(d28) SeaBIOS (version rel-1.8.2-0-g33fbe13-20160405_085824-vmi-test)
(d28) Machine UUID 78abeef6-152f-4e1e-8c52-2c233a7dcae0
(d28) UHCI init on dev 00:01.2 (io=c140)
(d28) Found 0 lpt ports
(d28) Found 1 serial ports
(d28) ATA controller 1 at 1f0/3f4/0 (irq 14 dev 9)
(d28) ATA controller 2 at 170/374/0 (irq 15 dev 9)
(d28) ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (10240 MiBytes)
(d28) Searching bootorder for: /pci@i0cf8/*@1,1/drive@0/disk@0
(d28) DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
(d28) Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0
(d28) PS2 keyboard initialized
(d28) All threads complete.
(d28) Scan for option roms
(d28) Running option rom at c980:0003
(d28) pmm call arg1=1
(d28) pmm call arg1=0
(d28) pmm call arg1=1
(d28) pmm call arg1=0
(d28) Searching bootorder for: /pci@i0cf8/*@4
(d28) 
(d28) Press F12 for boot menu.
(d28) 
(d28) Searching bootorder for: HALT
(d28) drive 0x000f64f0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=20971520
(d28) Space available for UMB: ca800-ee800, f5f10-f6490
(d28) Returned 258048 bytes of ZoneHigh
(d28) e820 map has 6 items:
(d28)   0: 0000000000000000 - 000000000009fc00 = 1 RAM
(d28)   1: 000000000009fc00 - 00000000000a0000 = 2 RESERVED
(d28)   2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
(d28)   3: 0000000000100000 - 000000007efff000 = 1 RAM
(d28)   4: 000000007efff000 - 000000007f000000 = 2 RESERVED
(d28)   5: 00000000fc000000 - 0000000100000000 = 2 RESERVED
(d28) enter handle_19:
(d28)   NULL
(d28) Booting from Hard Disk...
(d28) Booting from 0000:7c00
(XEN) irq.c:275: Dom28 PCI link 0 changed 5 -> 0
(XEN) irq.c:275: Dom28 PCI link 1 changed 10 -> 0
(XEN) irq.c:275: Dom28 PCI link 2 changed 11 -> 0
(XEN) irq.c:275: Dom28 PCI link 3 changed 5 -> 0

[-- Attachment #3: xl-create-success.log --]
[-- Type: application/octet-stream, Size: 13631 bytes --]

Parsing config from win7-sp1-x64-2.cfg
libxl: debug: libxl_create.c:1560:do_domain_create: ao 0x63d130: create: how=(nil) callback=(nil) poller=0x647830
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hda, using backend phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hdc, using backend phy
libxl: debug: libxl_create.c:945:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:324:libxl__bootloader_run: not a PV domain, skipping bootloader
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x63db18: deregister unregistered
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xc52e4
xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1c52e4
xc: detail: VIRTUAL MEMORY ARRANGEMENT:
xc: detail:   Loader:   0000000000100000->00000000001c52e4
xc: detail:   Modules:  0000000000000000->0000000000000000
xc: detail:   TOTAL:    0000000000000000->000000007f000000
xc: detail:   ENTRY:    000000000010002c
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail:   4KB PAGES: 0x0000000000000200
xc: detail:   2MB PAGES: 0x00000000000003f7
xc: detail:   1GB PAGES: 0x0000000000000000
xc: detail: elf_load_binary: phdr 0 at 0x7f6233daf000 -> 0x7f6233e6a758
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff000
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x63fee0 wpath=/local/domain/0/backend/vbd/28/768/state token=3/0: register slotnum=3
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x6411b0 wpath=/local/domain/0/backend/vbd/28/5632/state token=2/1: register slotnum=2
libxl: debug: libxl_create.c:1583:do_domain_create: ao 0x63d130: inprogress: poller=0x647830, flags=i
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x63fee0 wpath=/local/domain/0/backend/vbd/28/768/state token=3/0: event epath=/local/domain/0/backend/vbd/28/768/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/28/768/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x63fee0 wpath=/local/domain/0/backend/vbd/28/768/state token=3/0: deregister slotnum=3
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x63fee0: deregister unregistered
libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add 
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/28/768/state token=3/0: empty slot
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x6411b0 wpath=/local/domain/0/backend/vbd/28/5632/state token=2/1: event epath=/local/domain/0/backend/vbd/28/5632/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vbd/28/5632/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x6411b0 wpath=/local/domain/0/backend/vbd/28/5632/state token=2/1: deregister slotnum=2
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6411b0: deregister unregistered
libxl: debug: libxl_linux.c:229:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add 
libxl: debug: libxl_event.c:545:watchfd_callback: watch epath=/local/domain/0/backend/vbd/28/5632/state token=2/1: empty slot
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x63ffe0: deregister unregistered
libxl: debug: libxl_linux.c:246:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x63ffe0: deregister unregistered
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6412b0: deregister unregistered
libxl: debug: libxl_linux.c:246:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6412b0: deregister unregistered
libxl: debug: libxl_dm.c:1778:libxl__spawn_local_dm: Spawning device-model /usr/local/lib/xen/bin/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   /usr/local/lib/xen/bin/qemu-system-i386
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -xen-domid
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   28
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -chardev
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-28,server,nowait
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -no-shutdown
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -mon
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -chardev
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-28,server,nowait
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -mon
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   chardev=libxenstat-cmd,mode=control
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -nodefaults
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -name
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   win7-sp1-x64-2
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -vnc
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   0.0.0.0:2
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -display
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   none
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -serial
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   pty
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -device
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   VGA,vgamem_mb=16
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -boot
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   order=cd
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -usb
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -usbdevice
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   tablet
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -smp
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   2,maxcpus=2
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -device
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   e1000,id=nic0,netdev=net0,mac=00:06:5b:66:66:66
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -netdev
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   type=tap,id=net0,ifname=vif28.0-emu,script=no,downscript=no
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -machine
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   xenfv
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -nodefaults
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -m
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   2032
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   file=/dev/group-vm/win7-sp1-x64-2,if=ide,index=0,media=disk,format=raw,cache=writeback
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:1780:libxl__spawn_local_dm:   file=/opt/iso/win7-ultimate-sp1-x64-lite-full-without-asian-languages-by-nil.iso,if=ide,index=2,readonly=on,media=cdrom,format=raw,cache=writeback,id=ide-5632
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x63de10 wpath=/local/domain/0/device-model/28/state token=2/2: register slotnum=2
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x63de10 wpath=/local/domain/0/device-model/28/state token=2/2: event epath=/local/domain/0/device-model/28/state
libxl: debug: libxl_exec.c:399:spawn_watch_event: domain 28 device model: spawn watch p=(null)
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x63de10 wpath=/local/domain/0/device-model/28/state token=2/2: event epath=/local/domain/0/device-model/28/state
libxl: debug: libxl_exec.c:399:spawn_watch_event: domain 28 device model: spawn watch p=running
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x63de10 wpath=/local/domain/0/device-model/28/state token=2/2: deregister slotnum=2
libxl: debug: libxl_exec.c:129:libxl_report_child_exitstatus: domain 28 device model (dying as expected) [13928] died due to fatal signal Killed
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x63de10: deregister unregistered
libxl: debug: libxl_qmp.c:706:libxl__qmp_initialize: connected to /var/run/xen/qmp-libxl-28
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: qmp
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "query-chardev",
    "id": 2
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "change",
    "id": 3,
    "arguments": {
        "device": "vnc",
        "target": "password",
        "arg": ""
    }
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: error
libxl: error: libxl_qmp.c:287:qmp_handle_error_response: received an error message from QMP server: Could not set password
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch w=0x6450e0 wpath=/local/domain/0/backend/vif/28/0/state token=2/3: register slotnum=2
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x6450e0 wpath=/local/domain/0/backend/vif/28/0/state token=2/3: event epath=/local/domain/0/backend/vif/28/0/state
libxl: debug: libxl_event.c:884:devstate_callback: backend /local/domain/0/backend/vif/28/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x6450e0 wpath=/local/domain/0/backend/vif/28/0/state token=2/3: event epath=/local/domain/0/backend/vif/28/0/state
libxl: debug: libxl_event.c:880:devstate_callback: backend /local/domain/0/backend/vif/28/0/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch w=0x6450e0 wpath=/local/domain/0/backend/vif/28/0/state token=2/3: deregister slotnum=2
libxl: debug: libxl_device.c:937:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6450e0: deregister unregistered
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-openvswitch online
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/vif-openvswitch online 
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6451e0: deregister unregistered
libxl: debug: libxl_device.c:1034:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-openvswitch add
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/vif-openvswitch add 
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6451e0: deregister unregistered
libxl: debug: libxl_linux.c:259:libxl__get_hotplug_script_info: num_exec 2, not running hotplug scripts
libxl: debug: libxl_device.c:1021:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch w=0x6451e0: deregister unregistered
libxl: debug: libxl_event.c:2183:libxl__ao_progress_report: ao 0x63d130: progress report: ignored
libxl: debug: libxl_event.c:1874:libxl__ao_complete: ao 0x63d130: complete, rc=0
libxl: debug: libxl_event.c:1843:libxl__ao__destroy: ao 0x63d130: destroy
libxl: debug: libxl_qmp.c:706:libxl__qmp_initialize: connected to /var/run/xen/qmp-libxl-28
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: qmp
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:555:qmp_send_prepare: next qmp command: '{
    "execute": "cont",
    "id": 2
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
xc: debug: hypercall buffer: total allocations:1006 total releases:1006
xc: debug: hypercall buffer: current allocations:0 maximum allocations:3
xc: debug: hypercall buffer: cache current size:3
xc: debug: hypercall buffer: cache hits:995 misses:3 toobig:8

[-- Attachment #4: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-06 12:49   ` Fanny Dwargee
@ 2016-04-07 16:13     ` Wei Liu
  2016-04-07 16:51       ` Fanny Dwargee
  0 siblings, 1 reply; 10+ messages in thread
From: Wei Liu @ 2016-04-07 16:13 UTC (permalink / raw)
  To: Fanny Dwargee; +Cc: Wei Liu, xen-devel

On Wed, Apr 06, 2016 at 02:49:19PM +0200, Fanny Dwargee wrote:
> Hi Wei,
> 
> first: thanks for your effort. :)
> 
> Find attached the 'xl create' output and the
> /var/log/xen/console/hypervisor.log
> files after creating the same domain without the
> 'device_model_stubdomain_override' configuration option.
> 
> 'xl list' command output...
> Name                 ID   Mem VCPUs      State   Time(s)
> Domain-0              0  1023     2     r-----   11608.1
> win7-sp1-x64-2       28  2048     1     ------       0.4
> 

I was hoping that you somehow had a running setup with stubdom enabled.
Have you tried earlier version of Xen or is this your first attempt to
use stubdom?

Wei.

> Regards,
> 
> Fanny
> 
> 
> 
> 
> 2016-04-06 13:12 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:
> 
> > On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
> > > Hi,
> > >
> > > after adding the 'device_model_stubdomain_override = 1' to an otherwise
> > > fine configuration the domain crashes on start.
> > >
> > > Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:
> > >
> > >    - ./configure --enable-stubdom --enable-githttp
> > >    - make dist-xen
> > >    - make dist-tools
> > >    - make dist-stubdom
> > >    - make install-xen
> > >    - make install-tools
> > >    - make install-stubdom
> > >
> > > As pointed out before the same configuration file without the '
> > > device_model_stubdomain_override' works flawlessly.
> > >
> > > This is the 'xl list' command output while the domain is starting:
> > >
> > > Name                    ID   Mem VCPUs      State   Time(s)
> > > Domain-0                 0  1022     2     r-----     318.3
> > > win7-sp1-x64-2          20  2048     1     r-----       5.5
> > > win7-sp1-x64-2-dm       21    44     1     r-----       6.0
> > >
> > >
> > > As you can see both domains are started (the stub and the original
> > domain)
> > >
> > > Find attached the domain configuration file, 'xl info' output, 'xl
> > create'
> > > output and the /var/log/xen/console/hypervisor.log file, notice the grant
> > > table error on console-hypervisor.log
> > >
> > > I'd very grateful for any help finding the cause of this problem.
> > >
> >
> >
> > The hypervsior log show some error, but unfortunately it is not
> > immediately clear what went wrong.
> >
> > Do you have a working base line setup so that I can compare the
> > difference?
> >
> > Wei.
> >
> > > Best regards,
> > >
> > > Fanny
> >
> >




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-07 16:13     ` Wei Liu
@ 2016-04-07 16:51       ` Fanny Dwargee
  2016-04-11 11:06         ` Wei Liu
  0 siblings, 1 reply; 10+ messages in thread
From: Fanny Dwargee @ 2016-04-07 16:51 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu


[-- Attachment #1.1: Type: text/plain, Size: 2886 bytes --]

I'm sorry but this is my first attempt to use stubdom.

This is a test machine so feel free to propose xen recompilation adding
printk's/obscured options or settings modification.

With regards,

Fanny

2016-04-07 18:13 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:

> On Wed, Apr 06, 2016 at 02:49:19PM +0200, Fanny Dwargee wrote:
> > Hi Wei,
> >
> > first: thanks for your effort. :)
> >
> > Find attached the 'xl create' output and the
> > /var/log/xen/console/hypervisor.log
> > files after creating the same domain without the
> > 'device_model_stubdomain_override' configuration option.
> >
> > 'xl list' command output...
> > Name                 ID   Mem VCPUs      State   Time(s)
> > Domain-0              0  1023     2     r-----   11608.1
> > win7-sp1-x64-2       28  2048     1     ------       0.4
> >
>
> I was hoping that you somehow had a running setup with stubdom enabled.
> Have you tried earlier version of Xen or is this your first attempt to
> use stubdom?
>
> Wei.
>
> > Regards,
> >
> > Fanny
> >
> >
> >
> >
> > 2016-04-06 13:12 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:
> >
> > > On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
> > > > Hi,
> > > >
> > > > after adding the 'device_model_stubdomain_override = 1' to an
> otherwise
> > > > fine configuration the domain crashes on start.
> > > >
> > > > Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:
> > > >
> > > >    - ./configure --enable-stubdom --enable-githttp
> > > >    - make dist-xen
> > > >    - make dist-tools
> > > >    - make dist-stubdom
> > > >    - make install-xen
> > > >    - make install-tools
> > > >    - make install-stubdom
> > > >
> > > > As pointed out before the same configuration file without the '
> > > > device_model_stubdomain_override' works flawlessly.
> > > >
> > > > This is the 'xl list' command output while the domain is starting:
> > > >
> > > > Name                    ID   Mem VCPUs      State   Time(s)
> > > > Domain-0                 0  1022     2     r-----     318.3
> > > > win7-sp1-x64-2          20  2048     1     r-----       5.5
> > > > win7-sp1-x64-2-dm       21    44     1     r-----       6.0
> > > >
> > > >
> > > > As you can see both domains are started (the stub and the original
> > > domain)
> > > >
> > > > Find attached the domain configuration file, 'xl info' output, 'xl
> > > create'
> > > > output and the /var/log/xen/console/hypervisor.log file, notice the
> grant
> > > > table error on console-hypervisor.log
> > > >
> > > > I'd very grateful for any help finding the cause of this problem.
> > > >
> > >
> > >
> > > The hypervsior log show some error, but unfortunately it is not
> > > immediately clear what went wrong.
> > >
> > > Do you have a working base line setup so that I can compare the
> > > difference?
> > >
> > > Wei.
> > >
> > > > Best regards,
> > > >
> > > > Fanny
> > >
> > >
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 4381 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-07 16:51       ` Fanny Dwargee
@ 2016-04-11 11:06         ` Wei Liu
  0 siblings, 0 replies; 10+ messages in thread
From: Wei Liu @ 2016-04-11 11:06 UTC (permalink / raw)
  To: Fanny Dwargee; +Cc: Wei Liu, xen-devel

On Thu, Apr 07, 2016 at 06:51:11PM +0200, Fanny Dwargee wrote:
> I'm sorry but this is my first attempt to use stubdom.
> 
> This is a test machine so feel free to propose xen recompilation adding
> printk's/obscured options or settings modification.
> 
> With regards,

Sorry for the late reply.

In the case successfully booting DomU, do you see similar error like
this in xl dmesg?

(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)

Another thing to try is to add to your config without
device_model_override=xxx,

  device_model_version="qemu-xen-traditional"

and see if it still works.

Here is why: the default device model is upstream qemu, but when you
need to use stubdom, the device model is another version of qemu
(qemu-trad). The newly added config option forces Xen to use the same
qemu that would be used when stubdom is in use. It's useful to figure
out if qemu-trad is not functioning.


Wei.

> 
> Fanny
> 
> 2016-04-07 18:13 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:
> 
> > On Wed, Apr 06, 2016 at 02:49:19PM +0200, Fanny Dwargee wrote:
> > > Hi Wei,
> > >
> > > first: thanks for your effort. :)
> > >
> > > Find attached the 'xl create' output and the
> > > /var/log/xen/console/hypervisor.log
> > > files after creating the same domain without the
> > > 'device_model_stubdomain_override' configuration option.
> > >
> > > 'xl list' command output...
> > > Name                 ID   Mem VCPUs      State   Time(s)
> > > Domain-0              0  1023     2     r-----   11608.1
> > > win7-sp1-x64-2       28  2048     1     ------       0.4
> > >
> >
> > I was hoping that you somehow had a running setup with stubdom enabled.
> > Have you tried earlier version of Xen or is this your first attempt to
> > use stubdom?
> >
> > Wei.
> >
> > > Regards,
> > >
> > > Fanny
> > >
> > >
> > >
> > >
> > > 2016-04-06 13:12 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:
> > >
> > > > On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
> > > > > Hi,
> > > > >
> > > > > after adding the 'device_model_stubdomain_override = 1' to an
> > otherwise
> > > > > fine configuration the domain crashes on start.
> > > > >
> > > > > Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:
> > > > >
> > > > >    - ./configure --enable-stubdom --enable-githttp
> > > > >    - make dist-xen
> > > > >    - make dist-tools
> > > > >    - make dist-stubdom
> > > > >    - make install-xen
> > > > >    - make install-tools
> > > > >    - make install-stubdom
> > > > >
> > > > > As pointed out before the same configuration file without the '
> > > > > device_model_stubdomain_override' works flawlessly.
> > > > >
> > > > > This is the 'xl list' command output while the domain is starting:
> > > > >
> > > > > Name                    ID   Mem VCPUs      State   Time(s)
> > > > > Domain-0                 0  1022     2     r-----     318.3
> > > > > win7-sp1-x64-2          20  2048     1     r-----       5.5
> > > > > win7-sp1-x64-2-dm       21    44     1     r-----       6.0
> > > > >
> > > > >
> > > > > As you can see both domains are started (the stub and the original
> > > > domain)
> > > > >
> > > > > Find attached the domain configuration file, 'xl info' output, 'xl
> > > > create'
> > > > > output and the /var/log/xen/console/hypervisor.log file, notice the
> > grant
> > > > > table error on console-hypervisor.log
> > > > >
> > > > > I'd very grateful for any help finding the cause of this problem.
> > > > >
> > > >
> > > >
> > > > The hypervsior log show some error, but unfortunately it is not
> > > > immediately clear what went wrong.
> > > >
> > > > Do you have a working base line setup so that I can compare the
> > > > difference?
> > > >
> > > > Wei.
> > > >
> > > > > Best regards,
> > > > >
> > > > > Fanny
> > > >
> > > >
> >
> >
> >
> >

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-05 15:17 Stub domain crash on Xen v4.6.1 Fanny Dwargee
  2016-04-06 11:12 ` Wei Liu
@ 2016-04-12  8:36 ` Wei Liu
  2016-04-12  9:44   ` Fanny Dwargee
  1 sibling, 1 reply; 10+ messages in thread
From: Wei Liu @ 2016-04-12  8:36 UTC (permalink / raw)
  To: Fanny Dwargee; +Cc: Wei Liu, xen-devel

On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
> Hi,
> 
> after adding the 'device_model_stubdomain_override = 1' to an otherwise
> fine configuration the domain crashes on start.
> 
> Xen is v4.6.1 compiled from source on Debian Jessie 64bits this way:
> 
>    - ./configure --enable-stubdom --enable-githttp
>    - make dist-xen
>    - make dist-tools
>    - make dist-stubdom
>    - make install-xen
>    - make install-tools
>    - make install-stubdom
> 
> As pointed out before the same configuration file without the '
> device_model_stubdomain_override' works flawlessly.
> 
> This is the 'xl list' command output while the domain is starting:
> 
> Name                    ID   Mem VCPUs      State   Time(s)
> Domain-0                 0  1022     2     r-----     318.3
> win7-sp1-x64-2          20  2048     1     r-----       5.5
> win7-sp1-x64-2-dm       21    44     1     r-----       6.0
> 
> 
> As you can see both domains are started (the stub and the original domain)
> 
> Find attached the domain configuration file, 'xl info' output, 'xl create'
> output and the /var/log/xen/console/hypervisor.log file, notice the grant
> table error on console-hypervisor.log
> 
> I'd very grateful for any help finding the cause of this problem.
> 
> Best regards,
> 
> Fanny


(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num bytes 512
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)

This reminds me of a bug that would cause error in disk:

http://lists.xen.org/archives/html/minios-devel/2016-04/msg00000.html

Are you able to apply the patch in that thread and test?

For your convenience I've attached the patch. It needs to be applied to
xen.git/extras/mini-os.

---8<---
From c519e3dfcdbc1edeac994dfa3918c175aae44983 Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Fri, 1 Apr 2016 20:17:01 +0200
Subject: [PATCH] Mini-OS: netfront: fix off-by-one error introduced in
 7c8f3483

7c8f3483 introduced a break within a loop in netfront.c such that
cons and nr_consumed were no longer always being incremented. The
offset at cons will be processed multiple times with the break in
place.

This commit reverts to using the "some" variable in the loop condition,
but avoids ifdefs for the non-libc case. It also renames it to dobreak
to make its usage clearer.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Sarah Newman <srn@prgmr.com>
---
 netfront.c | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/netfront.c b/netfront.c
index 0eca5b5..b8fac62 100644
--- a/netfront.c
+++ b/netfront.c
@@ -97,19 +97,15 @@ void network_rx(struct netfront_dev *dev)
 {
     RING_IDX rp,cons,req_prod;
     int nr_consumed, more, i, notify;
-#ifdef HAVE_LIBC
-    int some;
-#endif
+    int dobreak;
 
     nr_consumed = 0;
 moretodo:
     rp = dev->rx.sring->rsp_prod;
     rmb(); /* Ensure we see queued responses up to 'rp'. */
 
-#ifdef HAVE_LIBC
-    some = 0;
-#endif
-    for (cons = dev->rx.rsp_cons; cons != rp; nr_consumed++, cons++)
+    dobreak = 0;
+    for (cons = dev->rx.rsp_cons; cons != rp && !dobreak; nr_consumed++, cons++)
     {
         struct net_buffer* buf;
         unsigned char* page;
@@ -134,8 +130,8 @@ moretodo:
 		    len = dev->len;
 		memcpy(dev->data, page+rx->offset, len);
 		dev->rlen = len;
-		some = 1;
-                break;
+		/* No need to receive the rest for now */
+		dobreak = 1;
 	    } else
 #endif
 		dev->netif_rx(page+rx->offset,rx->status);
@@ -144,11 +140,7 @@ moretodo:
     dev->rx.rsp_cons=cons;
 
     RING_FINAL_CHECK_FOR_RESPONSES(&dev->rx,more);
-#ifdef HAVE_LIBC
-    if(more && !some) goto moretodo;
-#else
-    if(more) goto moretodo;
-#endif
+    if(more && !dobreak) goto moretodo;
 
     req_prod = dev->rx.req_prod_pvt;
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-12  8:36 ` Wei Liu
@ 2016-04-12  9:44   ` Fanny Dwargee
  2016-04-12  9:49     ` Wei Liu
  0 siblings, 1 reply; 10+ messages in thread
From: Fanny Dwargee @ 2016-04-12  9:44 UTC (permalink / raw)
  To: Wei Liu; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3452 bytes --]

Wei,

It works now!

Many, many thanks for your invaluable time.

By the way, Do you know when the patch will be included in the stable-4.6
branch? Maybe will be on time for the 4.6.2 version?

IMHO is an important patch because of the added security shielding it
provides (allowing the use of stub domains on some cases).

Best regards,

Fanny

2016-04-12 10:36 GMT+02:00 Wei Liu <wei.liu2@citrix.com>:

> On Tue, Apr 05, 2016 at 05:17:00PM +0200, Fanny Dwargee wrote:
>
> (d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num
> bytes 512
> (XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
> (d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num
> bytes 512
> (XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
>
> This reminds me of a bug that would cause error in disk:
>
> http://lists.xen.org/archives/html/minios-devel/2016-04/msg00000.html
>
> Are you able to apply the patch in that thread and test?
>
> For your convenience I've attached the patch. It needs to be applied to
> xen.git/extras/mini-os.
>
> ---8<---
> From c519e3dfcdbc1edeac994dfa3918c175aae44983 Mon Sep 17 00:00:00 2001
> From: Samuel Thibault <samuel.thibault@ens-lyon.org>
> Date: Fri, 1 Apr 2016 20:17:01 +0200
> Subject: [PATCH] Mini-OS: netfront: fix off-by-one error introduced in
>  7c8f3483
>
> 7c8f3483 introduced a break within a loop in netfront.c such that
> cons and nr_consumed were no longer always being incremented. The
> offset at cons will be processed multiple times with the break in
> place.
>
> This commit reverts to using the "some" variable in the loop condition,
> but avoids ifdefs for the non-libc case. It also renames it to dobreak
> to make its usage clearer.
>
> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> Tested-by: Sarah Newman <srn@prgmr.com>
> ---
>  netfront.c | 20 ++++++--------------
>  1 file changed, 6 insertions(+), 14 deletions(-)
>
> diff --git a/netfront.c b/netfront.c
> index 0eca5b5..b8fac62 100644
> --- a/netfront.c
> +++ b/netfront.c
> @@ -97,19 +97,15 @@ void network_rx(struct netfront_dev *dev)
>  {
>      RING_IDX rp,cons,req_prod;
>      int nr_consumed, more, i, notify;
> -#ifdef HAVE_LIBC
> -    int some;
> -#endif
> +    int dobreak;
>
>      nr_consumed = 0;
>  moretodo:
>      rp = dev->rx.sring->rsp_prod;
>      rmb(); /* Ensure we see queued responses up to 'rp'. */
>
> -#ifdef HAVE_LIBC
> -    some = 0;
> -#endif
> -    for (cons = dev->rx.rsp_cons; cons != rp; nr_consumed++, cons++)
> +    dobreak = 0;
> +    for (cons = dev->rx.rsp_cons; cons != rp && !dobreak; nr_consumed++,
> cons++)
>      {
>          struct net_buffer* buf;
>          unsigned char* page;
> @@ -134,8 +130,8 @@ moretodo:
>                     len = dev->len;
>                 memcpy(dev->data, page+rx->offset, len);
>                 dev->rlen = len;
> -               some = 1;
> -                break;
> +               /* No need to receive the rest for now */
> +               dobreak = 1;
>             } else
>  #endif
>                 dev->netif_rx(page+rx->offset,rx->status);
> @@ -144,11 +140,7 @@ moretodo:
>      dev->rx.rsp_cons=cons;
>
>      RING_FINAL_CHECK_FOR_RESPONSES(&dev->rx,more);
> -#ifdef HAVE_LIBC
> -    if(more && !some) goto moretodo;
> -#else
> -    if(more) goto moretodo;
> -#endif
> +    if(more && !dobreak) goto moretodo;
>
>      req_prod = dev->rx.req_prod_pvt;
>
> --
> 2.1.4
>
>

[-- Attachment #1.2: Type: text/html, Size: 4809 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
  2016-04-12  9:44   ` Fanny Dwargee
@ 2016-04-12  9:49     ` Wei Liu
  0 siblings, 0 replies; 10+ messages in thread
From: Wei Liu @ 2016-04-12  9:49 UTC (permalink / raw)
  To: Fanny Dwargee; +Cc: Wei Liu, xen-devel

On Tue, Apr 12, 2016 at 11:44:16AM +0200, Fanny Dwargee wrote:
> Wei,
> 
> It works now!
> 

Good to know.

> Many, many thanks for your invaluable time.
> 

You're welcome.

> By the way, Do you know when the patch will be included in the stable-4.6
> branch? Maybe will be on time for the 4.6.2 version?
> 
> IMHO is an important patch because of the added security shielding it
> provides (allowing the use of stub domains on some cases).
> 

Yes, it's on my radar. I hope to get it committed to xen-unstable soon.
And then it will need to wait a bit to land in 4.6.2.

Thanks for testing.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Stub domain crash on Xen v4.6.1
@ 2016-04-12  8:27 Fanny Dwargee
  0 siblings, 0 replies; 10+ messages in thread
From: Fanny Dwargee @ 2016-04-12  8:27 UTC (permalink / raw)
  To: Wei Liu, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3481 bytes --]

Wei, thanks for your help.

After following your advice I added to the DomU config the
'device_model_version = "qemu-xen-traditional"' (and removing
'device_model_stubdomain_override'), the DomU started successfully as
without stub domain:


(d18) Press F12 for boot menu.
(d18)
(d18) Booting from Hard Disk...
(XEN) irq.c:275: Dom18 PCI link 0 changed 5 -> 0
(XEN) irq.c:275: Dom18 PCI link 1 changed 10 -> 0
(XEN) irq.c:275: Dom18 PCI link 2 changed 11 -> 0
(XEN) irq.c:275: Dom18 PCI link 3 changed 5 -> 0



Just for the sake of remember this is the log of the DomU with the initial
configuration (no 'device_model_version' and no
'device_model_stubdomain_override'):

(d19) Press F12 for boot menu.
(d19)
(d19) Searching bootorder for: HALT
(d19) drive 0x000f64f0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=20971520
(d19) Space available for UMB: ca800-ef000, f5f10-f64f0
(d19) Returned 258048 bytes of ZoneHigh
(d19) e820 map has 6 items:
(d19)   0: 0000000000000000 - 000000000009fc00 = 1 RAM
(d19)   1: 000000000009fc00 - 00000000000a0000 = 2 RESERVED
(d19)   2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
(d19)   3: 0000000000100000 - 000000007efff000 = 1 RAM
(d19)   4: 000000007efff000 - 000000007f000000 = 2 RESERVED
(d19)   5: 00000000fc000000 - 0000000100000000 = 2 RESERVED
(d19) enter handle_19:
(d19)   NULL
(d19) Booting from Hard Disk...
(d19) Booting from 0000:7c00
(XEN) irq.c:275: Dom19 PCI link 0 changed 5 -> 0
(XEN) irq.c:275: Dom19 PCI link 1 changed 10 -> 0
(XEN) irq.c:275: Dom19 PCI link 2 changed 11 -> 0
(XEN) irq.c:275: Dom19 PCI link 3 changed 5 -> 0



...and this is the log with 'device_model_stubdomain_override = 1' (the
DomU hangs starting Windows7):

(d20) Press F12 for boot menu.
(d20)
(d20) Booting from Hard Disk...
(XEN) irq.c:275: Dom20 PCI link 0 changed 5 -> 0
(XEN) irq.c:275: Dom20 PCI link 1 changed 10 -> 0
(XEN) irq.c:275: Dom20 PCI link 2 changed 11 -> 0
(XEN) irq.c:275: Dom20 PCI link 3 changed 5 -> 0
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num
bytes 512
[...]
     [several logs with the same 2 previous lines, snipped for brevity]
[...]
(XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
(d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num
bytes 512
(d21) close(11)



As you can see the error message appears only with the stub domain config.

Regards,

Fanny

On Mon, 11 Apr 2016 at 12:06:38 +0100, Wei Liu wrote:
>
> Sorry for the late reply.
>
> In the case successfully booting DomU, do you see similar error like
> this in xl dmesg?
>
> (d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num
bytes
> 512
> (XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
> (d21) read error -1 on /local/domain/21/device/vbd/768 at offset 0, num
bytes
> 512
> (XEN) grant_table.c:525:d0v0 Bad flags (0) or dom (0). (expected dom 0)
>
> Another thing to try is to add to your config without
> device_model_override=xxx,
>
>   device_model_version="qemu-xen-traditional"
>
> and see if it still works.
>
> Here is why: the default device model is upstream qemu, but when you
> need to use stubdom, the device model is another version of qemu
> (qemu-trad). The newly added config option forces Xen to use the same
> qemu that would be used when stubdom is in use. It's useful to figure
> out if qemu-trad is not functioning.
>
>
>
> Wei.

[-- Attachment #1.2: Type: text/html, Size: 7227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-12  9:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-05 15:17 Stub domain crash on Xen v4.6.1 Fanny Dwargee
2016-04-06 11:12 ` Wei Liu
2016-04-06 12:49   ` Fanny Dwargee
2016-04-07 16:13     ` Wei Liu
2016-04-07 16:51       ` Fanny Dwargee
2016-04-11 11:06         ` Wei Liu
2016-04-12  8:36 ` Wei Liu
2016-04-12  9:44   ` Fanny Dwargee
2016-04-12  9:49     ` Wei Liu
2016-04-12  8:27 Fanny Dwargee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).