From: Simon Horman Subject: Re: Re: Possible regression in "passthough: add no_wb option for pci conf write" Date: Mon, 7 Dec 2009 14:43:07 +1100 Message-ID: <20091207034307.GA419@verge.net.au> References: <20091206055500.GA16332@verge.net.au> <20091207021640.GD20810@ub-qhe2> <20091207025511.GD13775@verge.net.au> <20091207025750.GE20810@ub-qhe2> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VbJkn9YxBvnuCH5J" Return-path: Content-Disposition: inline In-Reply-To: <20091207025750.GE20810@ub-qhe2> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Qing He Cc: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 07, 2009 at 10:57:50AM +0800, Qing He wrote: > On Mon, 2009-12-07 at 10:55 +0800, Simon Horman wrote: > > On Mon, Dec 07, 2009 at 10:16:40AM +0800, Qing He wrote: > > > On Sun, 2009-12-06 at 13:55 +0800, Simon Horman wrote: > > > > > passthough: add no_wb option for pci conf write > > > > > > > > > > Current pt_pci_write_config always writes back to real pci conf > > > > > space. However, in the case of MSI address and data registers, > > > > > if guest changes the affinity of the interrupt, stale data will > > > > > be written to these registers. This is particularly a problem > > > > > if Xen uses per-CPU vector, where the interrupt in question fails > > > > > to work. This patch fixes this by adding an option to disable the > > > > > write back of certain controls. > > > > > > > > This patch seems to cause the creation of passing a domain > > > > to fail when passing through either an intel 82576 or 82572EI. > > > > I didn't try any others. > > > > > > > > > > Hi Simon, > > > Do you notice anything unusual in the ioemu and hypervisor logs? > > > > I couldn't see anything of particular note. I'll try and poke a bit harder. > > > > Thank you, I'll also try at my side. What's your configuration? On what > changeset are you experiencing this? Hi, I have attached logs from xend and qemu-dm. Unfortunately they don't seem to shed much light on the problem other than that qemu-dm exits prematurely. The "bad" logs are using staging/xen-unstable.hg: changeset: 20587:763bc7e6b3b4 tag: tip user: Keir Fraser date: Sat Dec 05 12:32:34 2009 +0000 summary: x86_32: Fix build after 20575:0930d17589a6 And staging/qemu-xen-unstable.git: commit e2b98415256cb264bc25e6df539ec0dc9d1b85b0 Author: Ian Jackson Date: Fri Nov 6 18:11:50 2009 +0000 passthough: add no_wb option for pci conf write Current pt_pci_write_config always writes back to real pci conf space. However, in the case of MSI address and data registers, if guest changes the affinity of the interrupt, stale data will be written to these registers. This is particularly a problem if Xen uses per-CPU vector, where the interrupt in question fails to work. This patch fixes this by adding an option to disable the write back of certain controls. Signed-off-by: Qing He the "good" logs use the same version of staging/xen-unstable.hg and the previous commit of staging/qemu-xen-unstable.git: commit de6c06808e300b35368178a281660ae8acf64f66 Author: Ian Jackson Date: Fri Nov 6 18:10:44 2009 +0000 Enlarge the size of the global mmio_space mmio[]. With the Multi-Function passthrough, we're actually able to assign more than 32 functions to guest, so we should enlarge the MAX_MMIO. 1024 should be big enough. Signed-off-by: Dexuan Cui Dom0 is linux-xen 2.6.18.8 + by igb backport URL: http://hg.vergenet.net/xen/linux-2.6.18-xen-igb/ changeset: 1123:f4deded581e6 tag: tip parent: 1121:4b89768ad33b parent: 1122:f1a207ccb493 user: Simon Horman date: Mon Aug 31 09:54:00 2009 +1000 summary: Merge with http://xenbits.xensource.com/linux-2.6.18-xen.hg --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xend.good" Content-Transfer-Encoding: quoted-printable [2009-12-07 12:29:43 3360] WARNING (XendConfig:853) Unconverted key: Descri= ption [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:100) XendDomainInfo.create= (['vm', ['name', 'hvm'], ['memory', 128], ['on_xend_start', 'ignore'], ['on= _xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['hvm', ['kerne= l', '/home/horms/projects/xen/hg/staging/xen-unstable.hg/tools/firmware/hvm= loader/hvmloader'], ['videoram', 4], ['acpi', 1], ['apic', 1], ['boot', 'c'= ], ['cpuid', []], ['cpuid_check', []], ['device_model', '/home/horms/projec= ts/xen/hg/staging/xen-unstable.hg/tools/ioemu-remote/i386-dm/qemu-dm'], ['f= da', ''], ['fdb', ''], ['guest_os_type', 'default'], ['hap', 1], ['hpet', 0= ], ['isa', 0], ['keymap', ''], ['localtime', 0], ['monitor', 0], ['nographi= c', 0], ['opengl', 0], ['oos', 1], ['pae', 1], ['pci', [['0x0000', '0x01', = '0x00', '0x0', '0x100', [], '01:00.0']]], ['pci_msitranslate', 1], ['pci_po= wer_mgmt', 0], ['rtc_timeoffset', 0], ['sdl', 0], ['serial', 'pty'], ['soun= dhw', ''], ['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice', ''],= ['vcpus', 1], ['vnc', 1], ['vnclisten', '0.0.0.0'], ['vncunused', 1], ['vi= ridian', 0], ['vpt_align', 1], ['xauthority', '/home/horms/.Xauthority'], [= 'xen_platform_pci', 1], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity= ', 1], ['device', ['vbd', ['uname', 'file:/home/horms/projects/xen/media/de= bian-unstable.disk'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['pci', [= 'dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '01:00.0'], ['bus', = '0x01'], ['vdevfn', '0x100'], ['func', '0x0']]]]]) [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:2416) XendDomainInfo.const= ructDomain [2009-12-07 12:29:43 3360] DEBUG (balloon:220) Balloon: 3003936 KiB free; n= eed 4096; done. [2009-12-07 12:29:43 3360] DEBUG (XendDomain:464) Adding Domain: 7 [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:2726) XendDomainInfo.initD= omain: 7 256 [2009-12-07 12:29:43 3360] DEBUG (image:338) No VNC passwd configured for v= fb access [2009-12-07 12:29:43 3360] DEBUG (image:877) args: boot, val: c [2009-12-07 12:29:43 3360] DEBUG (image:877) args: fda, val: None [2009-12-07 12:29:43 3360] DEBUG (image:877) args: fdb, val: None [2009-12-07 12:29:43 3360] DEBUG (image:877) args: soundhw, val: None [2009-12-07 12:29:43 3360] DEBUG (image:877) args: localtime, val: 0 [2009-12-07 12:29:43 3360] DEBUG (image:877) args: serial, val: ['pty'] [2009-12-07 12:29:43 3360] DEBUG (image:877) args: std-vga, val: 0 [2009-12-07 12:29:43 3360] DEBUG (image:877) args: isa, val: 0 [2009-12-07 12:29:43 3360] DEBUG (image:877) args: acpi, val: 1 [2009-12-07 12:29:43 3360] DEBUG (image:877) args: usb, val: 0 [2009-12-07 12:29:43 3360] DEBUG (image:877) args: usbdevice, val: None [2009-12-07 12:29:43 3360] DEBUG (image:877) args: gfx_passthru, val: None [2009-12-07 12:29:43 3360] INFO (image:813) Need to create platform device.= [domid:7] [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:2753) _initDomain:shadow_m= emory=3D0x0, memory_static_max=3D0x8000000, memory_static_min=3D0x0. [2009-12-07 12:29:43 3360] INFO (image:181) buildDomain os=3Dhvm dom=3D7 vc= pus=3D1 [2009-12-07 12:29:43 3360] DEBUG (image:935) domid =3D 7 [2009-12-07 12:29:43 3360] DEBUG (image:936) image =3D /home/horms= /projects/xen/hg/staging/xen-unstable.hg/tools/firmware/hvmloader/hvmloader [2009-12-07 12:29:43 3360] DEBUG (image:937) store_evtchn =3D 2 [2009-12-07 12:29:43 3360] DEBUG (image:938) memsize =3D 128 [2009-12-07 12:29:43 3360] DEBUG (image:939) target =3D 128 [2009-12-07 12:29:43 3360] DEBUG (image:940) vcpus =3D 1 [2009-12-07 12:29:43 3360] DEBUG (image:941) acpi =3D 1 [2009-12-07 12:29:43 3360] DEBUG (image:942) apic =3D 1 [2009-12-07 12:29:43 3360] INFO (XendDomainInfo:2279) createDevice: vfb : {= 'vncunused': 1, 'vnclisten': '0.0.0.0', 'vnc': '1', 'uuid': 'dd21680b-aa08-= 4222-c85f-8f8ccf8854c6', 'other_config': {'vncunused': 1, 'vnclisten': '0.0= =2E0.0', 'vnc': '1'}} [2009-12-07 12:29:43 3360] DEBUG (DevController:95) DevController: writing = {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/7= /0'} to /local/domain/7/device/vfb/0. [2009-12-07 12:29:43 3360] DEBUG (DevController:97) DevController: writing = {'vncunused': '1', 'domain': 'hvm', 'frontend': '/local/domain/7/device/vfb= /0', 'uuid': 'dd21680b-aa08-4222-c85f-8f8ccf8854c6', 'frontend-id': '7', 'v= nclisten': '0.0.0.0', 'state': '1', 'online': '1', 'vnc': '1'} to /local/do= main/0/backend/vfb/7/0. [2009-12-07 12:29:43 3360] INFO (XendDomainInfo:2279) createDevice: vbd : {= 'uuid': '02a870cc-2a4f-e149-aae8-b92d709ac515', 'bootable': 1, 'driver': 'p= aravirtualised', 'dev': 'hda', 'uname': 'file:/home/horms/projects/xen/medi= a/debian-unstable.disk', 'mode': 'w'} [2009-12-07 12:29:43 3360] DEBUG (DevController:95) DevController: writing = {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state'= : '1', 'backend': '/local/domain/0/backend/vbd/7/768'} to /local/domain/7/d= evice/vbd/768. [2009-12-07 12:29:43 3360] DEBUG (DevController:97) DevController: writing = {'domain': 'hvm', 'frontend': '/local/domain/7/device/vbd/768', 'uuid': '02= a870cc-2a4f-e149-aae8-b92d709ac515', 'bootable': '1', 'dev': 'hda', 'state'= : '1', 'params': '/home/horms/projects/xen/media/debian-unstable.disk', 'mo= de': 'w', 'online': '1', 'frontend-id': '7', 'type': 'file'} to /local/doma= in/0/backend/vbd/7/768. [2009-12-07 12:29:43 3360] INFO (XendDomainInfo:2279) createDevice: pci : {= 'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '01:00.0', 'bus': '0x0= 1', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'faf0df88-3636-d5c7-c9e1-8635= eaa3cd92'}], 'uuid': '12efc65b-0f6b-c03b-b713-793fa9608394'} [2009-12-07 12:29:43 3360] INFO (image:410) spawning device models: /home/h= orms/projects/xen/hg/staging/xen-unstable.hg/tools/ioemu-remote/i386-dm/qem= u-dm ['/home/horms/projects/xen/hg/staging/xen-unstable.hg/tools/ioemu-remo= te/i386-dm/qemu-dm', '-d', '7', '-domain-name', 'hvm', '-videoram', '4', '-= vnc', '0.0.0.0:0', '-vncunused', '-vcpus', '1', '-boot', 'c', '-serial', 'p= ty', '-acpi', '-net', 'none', '-M', 'xenfv'] [2009-12-07 12:29:43 3360] INFO (image:459) device model pid: 8135 [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:855) XendDomainInfo.pci_de= vice_configure: ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['k= ey', '01:00.0'], ['bus', '0x01'], ['vdevfn', '0x100'], ['func', '0x0'], ['u= uid', 'faf0df88-3636-d5c7-c9e1-8635eaa3cd92']], ['state', 'Initialising'], = ['sub_state', 'Booting']] [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:754) XendDomainInfo.hvm_pc= i_device_insert: {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '01:= 00.0', 'bus': '0x01', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'faf0df88-3= 636-d5c7-c9e1-8635eaa3cd92'}], 'states': ['Initialising']} [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:765) XendDomainInfo.hvm_pc= i_device_insert_dev: {'slot': '0x00', 'domain': '0x0000', 'key': '01:00.0',= 'bus': '0x01', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'faf0df88-3636-d5= c7-c9e1-8635eaa3cd92'} [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:774) XendDomainInfo.hvm_pc= i_device_insert_dev: 0000:01:00.0@100 [2009-12-07 12:29:43 3360] INFO (image:582) waiting for sentinel_fifo [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:778) pci: assign device 00= 00:01:00.0@100 [2009-12-07 12:29:43 3360] INFO (image:530) signalDeviceModel:restore dm st= ate to running [2009-12-07 12:29:43 3360] DEBUG (pciif:452) pci: register aer watch /local= /domain/0/backend/pci/7/0/aerState [2009-12-07 12:29:43 3360] DEBUG (DevController:95) DevController: writing = {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/pci/7= /0'} to /local/domain/7/device/pci/0. [2009-12-07 12:29:43 3360] DEBUG (DevController:97) DevController: writing = {'domain': 'hvm', 'key-0': '01:00.0', 'vdevfn-0': '100', 'uuid': '12efc65b-= 0f6b-c03b-b713-793fa9608394', 'power_mgmt': '0', 'msitranslate': '1', 'dev-= 0': '0000:01:00.0', 'frontend-id': '7', 'state': '1', 'online': '1', 'front= end': '/local/domain/7/device/pci/0', 'uuid-0': 'faf0df88-3636-d5c7-c9e1-86= 35eaa3cd92', 'num_devs': '1'} to /local/domain/0/backend/pci/7/0. [2009-12-07 12:29:43 3360] DEBUG (pciif:160) Reconfiguring PCI device 0000:= 01:00.0. [2009-12-07 12:29:43 3360] INFO (pciquirk:92) NO quirks found for PCI devic= e [8086:10c9:8086:a03c] [2009-12-07 12:29:43 3360] DEBUG (pciquirk:135) Permissive mode NOT enabled= for PCI device [8086:10c9:8086:a03c] [2009-12-07 12:29:43 3360] DEBUG (pciif:318) pci: enabling ioport 0x3100/0x= 20 [2009-12-07 12:29:43 3360] DEBUG (pciif:332) pci: enabling iomem 0xf0800000= /0x20000 pfn 0xf0800/0x20 [2009-12-07 12:29:43 3360] DEBUG (pciif:332) pci: enabling iomem 0xf0840000= /0x4000 pfn 0xf0840/0x4 [2009-12-07 12:29:43 3360] DEBUG (pciif:332) pci: enabling iomem 0xf1000000= /0x400000 pfn 0xf1000/0x400 [2009-12-07 12:29:43 3360] DEBUG (pciif:349) pci: enabling irq 16 [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:3308) Storing VM details: = {'on_xend_stop': 'ignore', 'shadow_memory': '2', 'uuid': '2b116c12-49dc-844= 2-cd5a-6a5b51d4f4e2', 'on_reboot': 'restart', 'start_time': '1260156583.46'= , 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore= ', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_av= ail': '1', 'bootloader': '', 'image': '(hvm (kernel ) (superpages 0) (tsc_m= ode 0) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0.0.0) (loader /home/h= orms/projects/xen/hg/staging/xen-unstable.hg/tools/firmware/hvmloader/hvmlo= ader) (serial pty) (vncunused 1) (xen_platform_pci 1) (opengl 0) (boot c) (= rtc_timeoffset 0) (pci ((0x0000 0x01 0x00 0x0 0x100 ()))) (pae 1) (vpt_alig= n 1) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (no= graphic 0) (guest_os_type default) (pci_msitranslate 1) (oos 1) (apic 1) (s= dl 0) (nomigrate 0) (monitor 0) (device_model /home/horms/projects/xen/hg/s= taging/xen-unstable.hg/tools/ioemu-remote/i386-dm/qemu-dm) (pci_power_mgmt = 0) (usb 0) (xauthority /home/horms/.Xauthority) (isa 0) (notes (SUSPEND_CAN= CEL 1)))', 'name': 'hvm'} [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:1719) Storing domain detai= ls: {'console/port': '3', 'description': '', 'console/limit': '1048576', 's= tore/port': '2', 'vm': '/vm/2b116c12-49dc-8442-cd5a-6a5b51d4f4e2', 'domid':= '7', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/= target': '131072', 'control/platform-feature-multiprocessor-suspend': '1', = 'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'hvm'} [2009-12-07 12:29:43 3360] DEBUG (DevController:95) DevController: writing = {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/conso= le/7/0'} to /local/domain/7/device/console/0. [2009-12-07 12:29:43 3360] DEBUG (DevController:97) DevController: writing = {'domain': 'hvm', 'frontend': '/local/domain/7/device/console/0', 'uuid': '= a491a32d-1f19-c890-c9f3-c7873dc33397', 'frontend-id': '7', 'state': '1', 'l= ocation': '3', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backe= nd/console/7/0. [2009-12-07 12:29:43 3360] DEBUG (pciif:456) XendDomainInfo.handleAerStateW= atch [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vi= f2. [2009-12-07 12:29:43 3360] DEBUG (XendDomainInfo:1806) XendDomainInfo.handl= eShutdownWatch [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vi= f. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vs= csi. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vb= d. [2009-12-07 12:29:43 3360] DEBUG (DevController:144) Waiting for 768. [2009-12-07 12:29:43 3360] DEBUG (DevController:628) hotplugStatusCallback = /local/domain/0/backend/vbd/7/768/hotplug-status. [2009-12-07 12:29:43 3360] DEBUG (DevController:642) hotplugStatusCallback = 1. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices io= ports. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices ir= q. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vk= bd. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vf= b. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices co= nsole. [2009-12-07 12:29:43 3360] DEBUG (DevController:144) Waiting for 0. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices pc= i. [2009-12-07 12:29:43 3360] DEBUG (DevController:144) Waiting for 0. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices ta= p2. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices ta= p. [2009-12-07 12:29:43 3360] DEBUG (DevController:139) Waiting for devices vt= pm. [2009-12-07 12:29:43 3360] INFO (XendDomain:1206) Domain hvm (7) unpaused. --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qemu-dm.good" domid: 7 qemu: the number of cpus is 1 Watching /local/domain/0/device-model/7/logdirty/cmd Watching /local/domain/0/device-model/7/command char device redirected to /dev/pts/3 qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 2b116c12-49dc-8442-cd5a-6a5b51d4f4e2 Time offset set 0 populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/7/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/2b116c12-49dc-8442-cd5a-6a5b51d4f4e2/vncpasswd. Log-dirty: no command yet. I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 xs_read(/local/domain/7/log-throttling): read error dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 01:00.0 ... pt_iomul_init: Error: pt_iomul_init: No such device: setup io multiplexing failed! 0x1:0x0.0x0 pt_register_regions: IO region registered (size=0x00020000 base_addr=0xf0800000) pt_register_regions: IO region registered (size=0x00000020 base_addr=0x00003101) pt_register_regions: IO region registered (size=0x00004000 base_addr=0xf0840000) pt_register_regions: Expansion ROM registered (size=0x00400000 base_addr=0xf1000000) pt_msix_init: get MSI-X table bar base f0840000 pt_msix_init: table_off = 0, total_entries = 10 pt_msix_init: errno = 19 pt_msix_init: mapping physical MSI-X table to 2af205e3b000 register_real_device: Real physical device 01:00.0 registered successfuly! IRQ type = INTx pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:04.0][Offset:14h][Length:4] cirrus vga map change while on lfb mode pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:04.0][Offset:14h][Length:4] pt_iomem_map: e_phys=f3800000 maddr=f0800000 type=0 len=131072 index=0 first_map=1 pt_iomem_map: e_phys=f3820000 maddr=f0840000 type=0 len=16384 index=3 first_map=1 pt_ioport_map: e_phys=c100 pio_base=3100 len=32 index=2 first_map=1 mapping vram to f0000000 - f0400000 platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. pt_pci_write_config: Warning: Guest attempt to set address to unused Base Address Register. [00:04.0][Offset:14h][Length:4] pt_ioport_map: e_phys=ffff pio_base=3100 len=32 index=2 first_map=0 pt_ioport_map: e_phys=c100 pio_base=3100 len=32 index=2 first_map=0 pt_msix_update_one: Update msix entry 0 with pirq 0 gvec 51 pt_msix_update_one: Error: Updating msix irq info for entry 0 pt_msix_update_one: Error: Unmapping of MSI-X failed. pt_msix_update_one: Update msix entry 1 with pirq 37 gvec 59 pt_msix_update_one: Update msix entry 2 with pirq 36 gvec 61 pci_msix_writel: Error: Can't update msix entry 0 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 0 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 0 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 1 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 1 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 1 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 2 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 2 since MSI-X is already function. pci_msix_writel: Error: Can't update msix entry 2 since MSI-X is already function. --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xend.bad" Content-Transfer-Encoding: quoted-printable [2009-12-07 12:32:02 3360] WARNING (XendConfig:853) Unconverted key: Descri= ption [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:100) XendDomainInfo.create= (['vm', ['name', 'hvm'], ['memory', 128], ['on_xend_start', 'ignore'], ['on= _xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['hvm', ['kerne= l', '/home/horms/projects/xen/hg/staging/xen-unstable.hg/tools/firmware/hvm= loader/hvmloader'], ['videoram', 4], ['acpi', 1], ['apic', 1], ['boot', 'c'= ], ['cpuid', []], ['cpuid_check', []], ['device_model', '/home/horms/projec= ts/xen/hg/staging/xen-unstable.hg/tools/ioemu-remote/i386-dm/qemu-dm'], ['f= da', ''], ['fdb', ''], ['guest_os_type', 'default'], ['hap', 1], ['hpet', 0= ], ['isa', 0], ['keymap', ''], ['localtime', 0], ['monitor', 0], ['nographi= c', 0], ['opengl', 0], ['oos', 1], ['pae', 1], ['pci', [['0x0000', '0x01', = '0x00', '0x0', '0x100', [], '01:00.0']]], ['pci_msitranslate', 1], ['pci_po= wer_mgmt', 0], ['rtc_timeoffset', 0], ['sdl', 0], ['serial', 'pty'], ['soun= dhw', ''], ['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice', ''],= ['vcpus', 1], ['vnc', 1], ['vnclisten', '0.0.0.0'], ['vncunused', 1], ['vi= ridian', 0], ['vpt_align', 1], ['xauthority', '/home/horms/.Xauthority'], [= 'xen_platform_pci', 1], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity= ', 1], ['device', ['vbd', ['uname', 'file:/home/horms/projects/xen/media/de= bian-unstable.disk'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['pci', [= 'dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '01:00.0'], ['bus', = '0x01'], ['vdevfn', '0x100'], ['func', '0x0']]]]]) [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:2416) XendDomainInfo.const= ructDomain [2009-12-07 12:32:02 3360] DEBUG (balloon:220) Balloon: 3003936 KiB free; n= eed 4096; done. [2009-12-07 12:32:02 3360] DEBUG (XendDomain:464) Adding Domain: 8 [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:2726) XendDomainInfo.initD= omain: 8 256 [2009-12-07 12:32:02 3360] DEBUG (image:338) No VNC passwd configured for v= fb access [2009-12-07 12:32:02 3360] DEBUG (image:877) args: boot, val: c [2009-12-07 12:32:02 3360] DEBUG (image:877) args: fda, val: None [2009-12-07 12:32:02 3360] DEBUG (image:877) args: fdb, val: None [2009-12-07 12:32:02 3360] DEBUG (image:877) args: soundhw, val: None [2009-12-07 12:32:02 3360] DEBUG (image:877) args: localtime, val: 0 [2009-12-07 12:32:02 3360] DEBUG (image:877) args: serial, val: ['pty'] [2009-12-07 12:32:02 3360] DEBUG (image:877) args: std-vga, val: 0 [2009-12-07 12:32:02 3360] DEBUG (image:877) args: isa, val: 0 [2009-12-07 12:32:02 3360] DEBUG (image:877) args: acpi, val: 1 [2009-12-07 12:32:02 3360] DEBUG (image:877) args: usb, val: 0 [2009-12-07 12:32:02 3360] DEBUG (image:877) args: usbdevice, val: None [2009-12-07 12:32:02 3360] DEBUG (image:877) args: gfx_passthru, val: None [2009-12-07 12:32:02 3360] INFO (image:813) Need to create platform device.= [domid:8] [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:2753) _initDomain:shadow_m= emory=3D0x0, memory_static_max=3D0x8000000, memory_static_min=3D0x0. [2009-12-07 12:32:02 3360] INFO (image:181) buildDomain os=3Dhvm dom=3D8 vc= pus=3D1 [2009-12-07 12:32:02 3360] DEBUG (image:935) domid =3D 8 [2009-12-07 12:32:02 3360] DEBUG (image:936) image =3D /home/horms= /projects/xen/hg/staging/xen-unstable.hg/tools/firmware/hvmloader/hvmloader [2009-12-07 12:32:02 3360] DEBUG (image:937) store_evtchn =3D 2 [2009-12-07 12:32:02 3360] DEBUG (image:938) memsize =3D 128 [2009-12-07 12:32:02 3360] DEBUG (image:939) target =3D 128 [2009-12-07 12:32:02 3360] DEBUG (image:940) vcpus =3D 1 [2009-12-07 12:32:02 3360] DEBUG (image:941) acpi =3D 1 [2009-12-07 12:32:02 3360] DEBUG (image:942) apic =3D 1 [2009-12-07 12:32:02 3360] INFO (XendDomainInfo:2279) createDevice: vfb : {= 'vncunused': 1, 'vnclisten': '0.0.0.0', 'vnc': '1', 'uuid': 'a163b749-1ac1-= afa6-205c-52afb01d8901', 'other_config': {'vncunused': 1, 'vnclisten': '0.0= =2E0.0', 'vnc': '1'}} [2009-12-07 12:32:02 3360] DEBUG (DevController:95) DevController: writing = {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/8= /0'} to /local/domain/8/device/vfb/0. [2009-12-07 12:32:02 3360] DEBUG (DevController:97) DevController: writing = {'vncunused': '1', 'domain': 'hvm', 'frontend': '/local/domain/8/device/vfb= /0', 'uuid': 'a163b749-1ac1-afa6-205c-52afb01d8901', 'frontend-id': '8', 'v= nclisten': '0.0.0.0', 'state': '1', 'online': '1', 'vnc': '1'} to /local/do= main/0/backend/vfb/8/0. [2009-12-07 12:32:02 3360] INFO (XendDomainInfo:2279) createDevice: vbd : {= 'uuid': '44cae777-1d2f-58cd-8911-56d603f7e45a', 'bootable': 1, 'driver': 'p= aravirtualised', 'dev': 'hda', 'uname': 'file:/home/horms/projects/xen/medi= a/debian-unstable.disk', 'mode': 'w'} [2009-12-07 12:32:02 3360] DEBUG (DevController:95) DevController: writing = {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state'= : '1', 'backend': '/local/domain/0/backend/vbd/8/768'} to /local/domain/8/d= evice/vbd/768. [2009-12-07 12:32:02 3360] DEBUG (DevController:97) DevController: writing = {'domain': 'hvm', 'frontend': '/local/domain/8/device/vbd/768', 'uuid': '44= cae777-1d2f-58cd-8911-56d603f7e45a', 'bootable': '1', 'dev': 'hda', 'state'= : '1', 'params': '/home/horms/projects/xen/media/debian-unstable.disk', 'mo= de': 'w', 'online': '1', 'frontend-id': '8', 'type': 'file'} to /local/doma= in/0/backend/vbd/8/768. [2009-12-07 12:32:02 3360] INFO (XendDomainInfo:2279) createDevice: pci : {= 'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '01:00.0', 'bus': '0x0= 1', 'vdevfn': '0x100', 'func': '0x0', 'uuid': '35f83df7-b279-4a09-8c94-9fb5= 32024b40'}], 'uuid': '9d1bd77f-6aba-f251-6ee6-d8e10e370d01'} [2009-12-07 12:32:02 3360] INFO (image:410) spawning device models: /home/h= orms/projects/xen/hg/staging/xen-unstable.hg/tools/ioemu-remote/i386-dm/qem= u-dm ['/home/horms/projects/xen/hg/staging/xen-unstable.hg/tools/ioemu-remo= te/i386-dm/qemu-dm', '-d', '8', '-domain-name', 'hvm', '-videoram', '4', '-= vnc', '0.0.0.0:0', '-vncunused', '-vcpus', '1', '-boot', 'c', '-serial', 'p= ty', '-acpi', '-net', 'none', '-M', 'xenfv'] [2009-12-07 12:32:02 3360] INFO (image:459) device model pid: 8472 [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:855) XendDomainInfo.pci_de= vice_configure: ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['k= ey', '01:00.0'], ['bus', '0x01'], ['vdevfn', '0x100'], ['func', '0x0'], ['u= uid', '35f83df7-b279-4a09-8c94-9fb532024b40']], ['state', 'Initialising'], = ['sub_state', 'Booting']] [2009-12-07 12:32:02 3360] INFO (image:582) waiting for sentinel_fifo [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:754) XendDomainInfo.hvm_pc= i_device_insert: {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '01:= 00.0', 'bus': '0x01', 'vdevfn': '0x100', 'func': '0x0', 'uuid': '35f83df7-b= 279-4a09-8c94-9fb532024b40'}], 'states': ['Initialising']} [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:765) XendDomainInfo.hvm_pc= i_device_insert_dev: {'slot': '0x00', 'domain': '0x0000', 'key': '01:00.0',= 'bus': '0x01', 'vdevfn': '0x100', 'func': '0x0', 'uuid': '35f83df7-b279-4a= 09-8c94-9fb532024b40'} [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:774) XendDomainInfo.hvm_pc= i_device_insert_dev: 0000:01:00.0@100 [2009-12-07 12:32:02 3360] DEBUG (XendDomainInfo:778) pci: assign device 00= 00:01:00.0@100 [2009-12-07 12:32:03 3360] INFO (image:530) signalDeviceModel:restore dm st= ate to running [2009-12-07 12:32:03 3360] DEBUG (pciif:452) pci: register aer watch /local= /domain/0/backend/pci/8/0/aerState [2009-12-07 12:32:03 3360] DEBUG (DevController:95) DevController: writing = {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/pci/8= /0'} to /local/domain/8/device/pci/0. [2009-12-07 12:32:03 3360] DEBUG (DevController:97) DevController: writing = {'domain': 'hvm', 'key-0': '01:00.0', 'vdevfn-0': '100', 'uuid': '9d1bd77f-= 6aba-f251-6ee6-d8e10e370d01', 'power_mgmt': '0', 'msitranslate': '1', 'dev-= 0': '0000:01:00.0', 'frontend-id': '8', 'state': '1', 'online': '1', 'front= end': '/local/domain/8/device/pci/0', 'uuid-0': '35f83df7-b279-4a09-8c94-9f= b532024b40', 'num_devs': '1'} to /local/domain/0/backend/pci/8/0. [2009-12-07 12:32:03 3360] DEBUG (pciif:160) Reconfiguring PCI device 0000:= 01:00.0. [2009-12-07 12:32:03 3360] INFO (pciquirk:92) NO quirks found for PCI devic= e [8086:10c9:8086:a03c] [2009-12-07 12:32:03 3360] DEBUG (pciquirk:135) Permissive mode NOT enabled= for PCI device [8086:10c9:8086:a03c] [2009-12-07 12:32:03 3360] DEBUG (pciif:318) pci: enabling ioport 0x3100/0x= 20 [2009-12-07 12:32:03 3360] DEBUG (pciif:332) pci: enabling iomem 0xf0800000= /0x20000 pfn 0xf0800/0x20 [2009-12-07 12:32:03 3360] DEBUG (pciif:332) pci: enabling iomem 0xf0840000= /0x4000 pfn 0xf0840/0x4 [2009-12-07 12:32:03 3360] DEBUG (pciif:332) pci: enabling iomem 0xf1000000= /0x400000 pfn 0xf1000/0x400 [2009-12-07 12:32:03 3360] DEBUG (pciif:349) pci: enabling irq 16 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:3308) Storing VM details: = {'on_xend_stop': 'ignore', 'shadow_memory': '2', 'uuid': '81578c44-afcc-157= 7-813a-8afd3eb6e7ef', 'on_reboot': 'restart', 'start_time': '1260156723.07'= , 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore= ', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_av= ail': '1', 'bootloader': '', 'image': '(hvm (kernel ) (superpages 0) (tsc_m= ode 0) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0.0.0) (loader /home/h= orms/projects/xen/hg/staging/xen-unstable.hg/tools/firmware/hvmloader/hvmlo= ader) (serial pty) (vncunused 1) (xen_platform_pci 1) (opengl 0) (boot c) (= rtc_timeoffset 0) (pci ((0x0000 0x01 0x00 0x0 0x100 ()))) (pae 1) (vpt_alig= n 1) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (no= graphic 0) (guest_os_type default) (pci_msitranslate 1) (oos 1) (apic 1) (s= dl 0) (nomigrate 0) (monitor 0) (device_model /home/horms/projects/xen/hg/s= taging/xen-unstable.hg/tools/ioemu-remote/i386-dm/qemu-dm) (pci_power_mgmt = 0) (usb 0) (xauthority /home/horms/.Xauthority) (isa 0) (notes (SUSPEND_CAN= CEL 1)))', 'name': 'hvm'} [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:1719) Storing domain detai= ls: {'console/port': '3', 'description': '', 'console/limit': '1048576', 's= tore/port': '2', 'vm': '/vm/81578c44-afcc-1577-813a-8afd3eb6e7ef', 'domid':= '8', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/= target': '131072', 'control/platform-feature-multiprocessor-suspend': '1', = 'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'hvm'} [2009-12-07 12:32:03 3360] DEBUG (DevController:95) DevController: writing = {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/conso= le/8/0'} to /local/domain/8/device/console/0. [2009-12-07 12:32:03 3360] DEBUG (DevController:97) DevController: writing = {'domain': 'hvm', 'frontend': '/local/domain/8/device/console/0', 'uuid': '= f448d8bb-50f9-afbb-05f4-d502eca613f9', 'frontend-id': '8', 'state': '1', 'l= ocation': '3', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backe= nd/console/8/0. [2009-12-07 12:32:03 3360] DEBUG (pciif:456) XendDomainInfo.handleAerStateW= atch [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:1806) XendDomainInfo.handl= eShutdownWatch [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vi= f2. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vi= f. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vs= csi. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vb= d. [2009-12-07 12:32:03 3360] DEBUG (DevController:144) Waiting for 768. [2009-12-07 12:32:03 3360] DEBUG (DevController:628) hotplugStatusCallback = /local/domain/0/backend/vbd/8/768/hotplug-status. [2009-12-07 12:32:03 3360] DEBUG (DevController:642) hotplugStatusCallback = 1. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices io= ports. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices ir= q. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vk= bd. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vf= b. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices co= nsole. [2009-12-07 12:32:03 3360] DEBUG (DevController:144) Waiting for 0. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices pc= i. [2009-12-07 12:32:03 3360] DEBUG (DevController:144) Waiting for 0. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices ta= p2. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices ta= p. [2009-12-07 12:32:03 3360] DEBUG (DevController:139) Waiting for devices vt= pm. [2009-12-07 12:32:03 3360] INFO (XendDomain:1206) Domain hvm (8) unpaused. [2009-12-07 12:32:03 3360] WARNING (image:544) domain hvm: device model fai= lure: pid 8472: died due to signal 11; see /var/log/xen/qemu-dm-hvm.log=20 [2009-12-07 12:32:03 3360] WARNING (XendDomainInfo:1983) Domain has crashed= : name=3Dhvm id=3D8. [2009-12-07 12:32:03 3360] ERROR (XendDomainInfo:2117) VM hvm restarting to= o fast (Elapsed time: 0.161757 seconds). Refusing to restart to avoid loops. [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2961) XendDomainInfo.destr= oy: domid=3D8 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2319) Destroying device mo= del [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2326) Releasing devices [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2332) Removing vbd/768 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:1213) XendDomainInfo.destr= oyDevice: deviceClass =3D vbd, device =3D vbd/768 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2332) Removing vfb/0 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:1213) XendDomainInfo.destr= oyDevice: deviceClass =3D vfb, device =3D vfb/0 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2332) Removing console/0 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:1213) XendDomainInfo.destr= oyDevice: deviceClass =3D console, device =3D console/0 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:2332) Removing pci/0 [2009-12-07 12:32:03 3360] DEBUG (XendDomainInfo:1213) XendDomainInfo.destr= oyDevice: deviceClass =3D pci, device =3D pci/0 [2009-12-07 12:32:03 3360] DEBUG (pciif:456) XendDomainInfo.handleAerStateW= atch [2009-12-07 12:32:03 3360] DEBUG (pciif:574) pci: unregister aer watch --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qemu-dm.bad" domid: 8 qemu: the number of cpus is 1 Watching /local/domain/0/device-model/8/logdirty/cmd Watching /local/domain/0/device-model/8/command char device redirected to /dev/pts/3 qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 81578c44-afcc-1577-813a-8afd3eb6e7ef Time offset set 0 populating video RAM at ff000000 mapping video RAM from ff000000 Register xen platform. Done register platform. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/8/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/81578c44-afcc-1577-813a-8afd3eb6e7ef/vncpasswd. Log-dirty: no command yet. I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 xs_read(/local/domain/8/log-throttling): read error dm-command: hot insert pass-through pci dev register_real_device: Assigning real physical device 01:00.0 ... pt_iomul_init: Error: pt_iomul_init: No such device: setup io multiplexing failed! 0x1:0x0.0x0 pt_register_regions: IO region registered (size=0x00020000 base_addr=0xf0800000) pt_register_regions: IO region registered (size=0x00000020 base_addr=0x00003101) pt_register_regions: IO region registered (size=0x00004000 base_addr=0xf0840000) pt_register_regions: Expansion ROM registered (size=0x00400000 base_addr=0xf1000000) pt_msix_init: get MSI-X table bar base f0840000 pt_msix_init: table_off = 0, total_entries = 10 pt_msix_init: errno = 19 pt_msix_init: mapping physical MSI-X table to 2b261fda9000 register_real_device: Real physical device 01:00.0 registered successfuly! IRQ type = INTx --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --VbJkn9YxBvnuCH5J--