From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soas7-0006HX-RQ for qemu-devel@nongnu.org; Tue, 10 Jul 2012 09:53:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Soarw-0002bf-Ou for qemu-devel@nongnu.org; Tue, 10 Jul 2012 09:52:59 -0400 Received: from va3ehsobe001.messaging.microsoft.com ([216.32.180.11]:32033 helo=va3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Soarw-0002bP-JO for qemu-devel@nongnu.org; Tue, 10 Jul 2012 09:52:48 -0400 Message-ID: <4FFC2FB4.605@amd.com> Date: Tue, 10 Jul 2012 15:35:48 +0200 From: Wei Wang MIME-Version: 1.0 References: <1341920606-11942-1-git-send-email-wei.wang2@amd.com> <4FFC28A3.5090306@citrix.com> In-Reply-To: <4FFC28A3.5090306@citrix.com> Content-Type: multipart/mixed; boundary="------------000307060505050604020007" Subject: Re: [Qemu-devel] [PATCH] Fix xen pci passthrough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony PERARD Cc: "xen-devel@lists.xensource.com" , "qemu-devel@nongnu.org" , Stefano Stabellini --------------000307060505050604020007 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit On 07/10/2012 03:05 PM, Anthony PERARD wrote: > On 10/07/12 12:43, Wei Wang wrote: >> Hi, I find a passthrough issue in qemu when pci device has multiple mmio >> regions. In this case, the last few bytes of qmp response string are >> trimmed >> and then passthru fails with following output. > > Could you compile libxl with DEBUG_RECEIVED (uncomment the #define in > tools/libxl/libxl_qmp.c) and then give the output of `xl -vvv create ...`. > > Thanks, Hi, Log file has been attached. Please check them. Thanks, Wei >> *** glibc detected *** xl: realloc(): invalid pointer: >> 0x0000000002163f90 *** >> ======= Backtrace: ========= >> /lib64/libc.so.6(+0x74c06)[0x7f62970e4c06] >> /lib64/libc.so.6(+0x77d25)[0x7f62970e7d25] >> /lib/libxenlight.so.2.0(+0x28d02)[0x7f6297a78d02] >> /lib/libxenlight.so.2.0(+0x2eccf)[0x7f6297a7eccf] >> /lib/libxenlight.so.2.0(+0x2f2f6)[0x7f6297a7f2f6] >> /lib/libxenlight.so.2.0(+0x2fe18)[0x7f6297a7fe18] >> /lib/libxenlight.so.2.0(+0x20027)[0x7f6297a70027] >> /lib/libxenlight.so.2.0(+0x212a6)[0x7f6297a712a6] >> /lib/libxenlight.so.2.0(+0x19e82)[0x7f6297a69e82] >> /lib/libxenlight.so.2.0(+0x1c288)[0x7f6297a6c288] >> /lib/libxenlight.so.2.0(+0x1c2a8)[0x7f6297a6c2a8] >> /lib/libxenlight.so.2.0(+0x2657e)[0x7f6297a7657e] >> /lib/libxenlight.so.2.0(+0x34076)[0x7f6297a84076] >> /lib/libxenlight.so.2.0(libxl__fork_selfpipe_woken+0x92)[0x7f6297a84394] >> /lib/libxenlight.so.2.0(+0x3254a)[0x7f6297a8254a] >> /lib/libxenlight.so.2.0(+0x3276d)[0x7f6297a8276d] >> /lib/libxenlight.so.2.0(+0x33944)[0x7f6297a83944] >> /lib/libxenlight.so.2.0(+0x1c0a8)[0x7f6297a6c0a8] >> /lib/libxenlight.so.2.0(libxl_domain_create_new+0x14)[0x7f6297a6c14f] >> xl[0x40c1f2] >> xl[0x40fc94] >> xl[0x406c21] >> /lib64/libc.so.6(__libc_start_main+0xed)[0x7f629709123d] >> xl[0x406439] >> >> Attached patch can fix this issue. >> >> Thanks, >> Wei >> >> Signed-off-by: Wei Wang >> >> --- >> monitor.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/monitor.c b/monitor.c >> index f6107ba..9f30f5f 100644 >> --- a/monitor.c >> +++ b/monitor.c >> @@ -165,7 +165,7 @@ struct Monitor { >> int reset_seen; >> int flags; >> int suspend_cnt; >> - uint8_t outbuf[1024]; >> + uint8_t outbuf[2048]; >> int outbuf_index; >> ReadLineState *rs; >> MonitorControl *mc; >> > > --------------000307060505050604020007 Content-Type: text/x-log; name="with_qemu_fix.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="with_qemu_fix.log" Content-Description: with_qemu_fix.log freyja:/workdir # xl -vvv create xmexample.hvm Parsing config from xmexample.hvm WARNING: specifying "tsc_mode" as an integer is deprecated. Please use th= e named parameter variant. e.g. tsc_mode=3D"default" WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_overrid= e" instead if you really want a non-default firmware libxl: debug: libxl_create.c:1028:do_domain_create: ao 0xa548c0: create: = how=3D(nil) callback=3D(nil) poller=3D0xa588a0 libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vde= v=3Dhda spec.backend=3Dunknown libxl: debug: libxl_device.c:142:disk_try_backend: Disk vdev=3Dhda, backe= nd phy unsuitable as phys path not a block device libxl: debug: libxl_device.c:149:disk_try_backend: Disk vdev=3Dhda, backe= nd tap unsuitable because blktap not available libxl: debug: libxl_device.c:224:libxl__device_disk_set_backend: Disk vde= v=3Dhda, using backend qdisk libxl: debug: libxl_create.c:628:initiate_domain_create: running bootload= er libxl: debug: libxl_bootloader.c:290:libxl__bootloader_run: not a PV doma= in, skipping bootloader libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=3D0= xa5a208: deregister unregistered xc: detail: elf_parse_binary: phdr: paddr=3D0x100000 memsz=3D0x9e460 xc: detail: elf_parse_binary: memory: 0x100000 -> 0x19e460 xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader: 0000000000100000->000000000019e460 TOTAL: 0000000000000000->000000007f800000 ENTRY ADDRESS: 0000000000100000 xc: info: PHYSICAL MEMORY ALLOCATION: 4KB PAGES: 0x0000000000000200 2MB PAGES: 0x00000000000003fb 1GB PAGES: 0x0000000000000000 xc: detail: elf_load_binary: phdr 0 at 0x0x7f4039f38000 -> 0x0x7f4039fcd2= 2d libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vde= v=3Dhda spec.backend=3Dqdisk libxl: debug: libxl_dm.c:1026:libxl__spawn_local_dm: Spawning device-mode= l /workdir/qemu-system-i386 with arguments: libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: /workdir/qemu-syst= em-i386 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -xen-domid libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 15 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -chardev libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: socket,id=3Dlibxl-= cmd,path=3D/var/run/xen/qmp-libxl-15,server,nowait libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -mon libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: chardev=3Dlibxl-cm= d,mode=3Dcontrol libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -name libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: ExampleHVMDomain libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -vnc libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 0.0.0.0:0,password= ,to=3D99 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -serial libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: pty libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -vga libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: cirrus libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -boot libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: order=3Dcda libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -smp libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 2,maxcpus=3D2 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -net libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: none libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -M libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: xenfv libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -m libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 2040 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -drive libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: file=3D/workdir/hv= m-guest/opensuse_11_3_64b_raw.img,if=3Dide,index=3D0,media=3Ddisk,format=3D= raw libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=3D0xa= 5a430 wpath=3D/local/domain/0/device-model/15/state token=3D3/0: register= slotnum=3D3 libxl: debug: libxl_create.c:1041:do_domain_create: ao 0xa548c0: inprogre= ss: poller=3D0xa588a0, flags=3Di libxl: debug: libxl_event.c:457:watchfd_callback: watch w=3D0xa5a430 wpat= h=3D/local/domain/0/device-model/15/state token=3D3/0: event epath=3D/loc= al/domain/0/device-model/15/state libxl: debug: libxl_event.c:457:watchfd_callback: watch w=3D0xa5a430 wpat= h=3D/local/domain/0/device-model/15/state token=3D3/0: event epath=3D/loc= al/domain/0/device-model/15/state libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=3D0= xa5a430 wpath=3D/local/domain/0/device-model/15/state token=3D3/0: deregi= ster slotnum=3D3 libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=3D0= xa5a430: deregister unregistered libxl: debug: libxl_qmp.c:659:libxl__qmp_initialize: connected to /var/ru= n/xen/qmp-libxl-15 libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"= qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabiliti= es": []}} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: qmp libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "qmp_capabilities", "id": 1 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 1= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "query-chardev", "id": 2 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": [{"filename= ": "vc", "label": "parallel0"}, {"filename": "pty:/dev/pts/2", "label": "= serial0"}, {"filename": "unix:/var/run/xen/qmp-libxl-15,server", "label":= "libxl-cmd"}], "id": 2} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "change", "id": 3, "arguments": { "device": "vnc", "target": "password", "arg": "xennow" } } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 3= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "query-vnc", "id": 4 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {"enabled":= true, "auth": "vnc", "family": "ipv4", "clients": [], "service": "5900",= "host": "0.0.0.0"}, "id": 4} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:659:libxl__qmp_initialize: connected to /var/ru= n/xen/qmp-libxl-15 libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"= qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabiliti= es": []}} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: qmp libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "qmp_capabilities", "id": 1 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 1= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "device_add", "id": 2, "arguments": { "driver": "xen-pci-passthrough", "id": "pci-pt-01_00.0", "hostaddr": "0000:01:00.0" } } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 2= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "query-pci", "id": 3 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": [{"bus": 0,= "devices": [{"bus": 0, "qdev_id": "", "slot": 0, "class_info": {"class":= 1536, "desc": "Host bridge"}, "id": {"device": 4663, "vendor": 32902}, "= function": 0, "regions": []}, {"bus": 0, "qdev_id": "", "slot": 1, "class= _info": {"class": 1537, "desc": "ISA bridge"}, "id": {"device": 28672, "v= endor": 32902}, "function": 0, "regions": []}, {"bus": 0, "qdev_id": "", = "slot": 1, "class_info": {"class": 257, "desc": "IDE controller"}, "id": = {"device": 28688, "vendor": 32902}, "function": 1, "regions": [{"bar": 4,= "size": 16, "address": -1, "type": "io"}]}, {"bus": 0, "qdev_id": "", "i= rq": 0, "slot": 1, "class_info": {"class": 1664, "desc": "Bridge"}, "id":= {"device": 28947, "vendor": 32902}, "function": 3, "regions": []}, {"bus= ": 0, "qdev_id": "", "slot": 2, "class_info": {"class": 768, "desc": "VGA= controller"}, "id": {"device": 184, "vendor": 4115}, "function": 0, "reg= ions": [{"prefetch": true, "mem_type_64": false, "bar": 0, "size": 335544= 32, "address": -1, "type": "memory"}, {"prefetch": false, "mem_type_64": = false, "bar": 1, "size": 4096, "address": -1, "type": "memory"}, {"prefet= ch": false, "mem_type_64": false, "bar": 6, "size": 65536, "address": -1,= "type": "memory"}]}, {"bus": 0, "qdev_id": "", "irq": 0, "slot": 3, "cla= ss_info": {"class": 65408}, "id": {"device": 1, "vendor": 22611}, "functi= on": 0, "regions": [{"bar": 0, "size": 256, "address": -1, "type": "io"},= {"prefetch": true, "mem_type_64": false, "bar": 1, "size": 16777216, "ad= dress": -1, "type": "memory"}]}, {"bus": 0, "qdev_id": "", "slot": 4, "cl= ass_info": {"class": 2054}, "id": {"device": 65535, "vendor": 4130}, "fun= ction": 0, "regions": []}, {"bus": 0, "qdev_id": "pci-pt-01_00.0", "irq":= 10, "slot": 5, "class_info": {"class": 768, "desc": "VGA controller"}, "= id": {"device": 26520, "vendor": 4098}, "function": 0, "regions": [{"pref= etch": false, "mem_type_64": false, "bar": 0, "size": 268435456, "address= ": -1, "type": "memory"}, {"prefetch": false, "mem_type_64": false, "bar"= : 2, "size": 262144, "address": -1, "type": "memory"},' libxl: debug: libxl_qmp.c:460:qmp_next: received: ' {"bar": 4, "size": 25= 6, "address": -1, "type": "io"}, {"prefetch": true, "mem_type_64": false,= "bar": 6, "size": 131072, "address": -1, "type": "memory"}]}]}], "id": 3= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_pci.c:85:libxl__create_pci_backend: Creating pci back= end libxl: debug: libxl_event.c:1604:libxl__ao_progress_report: ao 0xa548c0: = progress report: ignored libxl: debug: libxl_event.c:1434:libxl__ao_complete: ao 0xa548c0: complet= e, rc=3D0 libxl: debug: libxl_event.c:1406:libxl__ao__destroy: ao 0xa548c0: destroy= Daemon running with PID 7245 xc: debug: hypercall buffer: total allocations:1035 total releases:1035 xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 xc: debug: hypercall buffer: cache current size:2 xc: debug: hypercall buffer: cache hits:1032 misses:2 toobig:1 --------------000307060505050604020007 Content-Type: text/x-log; name="without_qemu_fix.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="without_qemu_fix.log" Content-Description: without_qemu_fix.log WARNING: specifying "tsc_mode" as an integer is deprecated. Please use th= e named parameter variant. e.g. tsc_mode=3D"default" WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_overrid= e" instead if you really want a non-default firmware libxl: debug: libxl_create.c:1028:do_domain_create: ao 0xfc58c0: create: = how=3D(nil) callback=3D(nil) poller=3D0xfc98a0 libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vde= v=3Dhda spec.backend=3Dunknown libxl: debug: libxl_device.c:142:disk_try_backend: Disk vdev=3Dhda, backe= nd phy unsuitable as phys path not a block device libxl: debug: libxl_device.c:149:disk_try_backend: Disk vdev=3Dhda, backe= nd tap unsuitable because blktap not available libxl: debug: libxl_device.c:224:libxl__device_disk_set_backend: Disk vde= v=3Dhda, using backend qdisk libxl: debug: libxl_create.c:628:initiate_domain_create: running bootload= er libxl: debug: libxl_bootloader.c:290:libxl__bootloader_run: not a PV doma= in, skipping bootloader libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=3D0= xfcb208: deregister unregistered xc: detail: elf_parse_binary: phdr: paddr=3D0x100000 memsz=3D0x9e460 xc: detail: elf_parse_binary: memory: 0x100000 -> 0x19e460 xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader: 0000000000100000->000000000019e460 TOTAL: 0000000000000000->000000007f800000 ENTRY ADDRESS: 0000000000100000 xc: info: PHYSICAL MEMORY ALLOCATION: 4KB PAGES: 0x0000000000000200 2MB PAGES: 0x00000000000003fb 1GB PAGES: 0x0000000000000000 xc: detail: elf_load_binary: phdr 0 at 0x0x7f1e24a68000 -> 0x0x7f1e24afd2= 2d libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vde= v=3Dhda spec.backend=3Dqdisk libxl: debug: libxl_dm.c:1026:libxl__spawn_local_dm: Spawning device-mode= l /workdir/qemu-system-i386 with arguments: libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: /workdir/qemu-syst= em-i386 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -xen-domid libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 13 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -chardev libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: socket,id=3Dlibxl-= cmd,path=3D/var/run/xen/qmp-libxl-13,server,nowait libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -mon libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: chardev=3Dlibxl-cm= d,mode=3Dcontrol libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -name libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: ExampleHVMDomain libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -vnc libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 0.0.0.0:0,password= ,to=3D99 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -serial libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: pty libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -vga libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: cirrus libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -boot libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: order=3Dcda libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -smp libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 2,maxcpus=3D2 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -net libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: none libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -M libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: xenfv libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -m libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 2040 libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -drive libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: file=3D/workdir/hv= m-guest/opensuse_11_3_64b_raw.img,if=3Dide,index=3D0,media=3Ddisk,format=3D= raw libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=3D0xf= cb430 wpath=3D/local/domain/0/device-model/13/state token=3D3/0: register= slotnum=3D3 libxl: debug: libxl_create.c:1041:do_domain_create: ao 0xfc58c0: inprogre= ss: poller=3D0xfc98a0, flags=3Di libxl: debug: libxl_event.c:457:watchfd_callback: watch w=3D0xfcb430 wpat= h=3D/local/domain/0/device-model/13/state token=3D3/0: event epath=3D/loc= al/domain/0/device-model/13/state libxl: debug: libxl_event.c:457:watchfd_callback: watch w=3D0xfcb430 wpat= h=3D/local/domain/0/device-model/13/state token=3D3/0: event epath=3D/loc= al/domain/0/device-model/13/state libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=3D0= xfcb430 wpath=3D/local/domain/0/device-model/13/state token=3D3/0: deregi= ster slotnum=3D3 libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=3D0= xfcb430: deregister unregistered libxl: debug: libxl_qmp.c:659:libxl__qmp_initialize: connected to /var/ru= n/xen/qmp-libxl-13 libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"= qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabiliti= es": []}} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: qmp libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "qmp_capabilities", "id": 1 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 1= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "query-chardev", "id": 2 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": [{"filename= ": "vc", "label": "parallel0"}, {"filename": "pty:/dev/pts/2", "label": "= serial0"}, {"filename": "unix:/var/run/xen/qmp-libxl-13,server", "label":= "libxl-cmd"}], "id": 2} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "change", "id": 3, "arguments": { "device": "vnc", "target": "password", "arg": "xennow" } } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 3= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "query-vnc", "id": 4 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {"enabled":= true, "auth": "vnc", "family": "ipv4", "clients": [], "service": "5900",= "host": "0.0.0.0"}, "id": 4} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:659:libxl__qmp_initialize: connected to /var/ru= n/xen/qmp-libxl-13 libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"= qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabiliti= es": []}} ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: qmp libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "qmp_capabilities", "id": 1 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 1= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "device_add", "id": 2, "arguments": { "driver": "xen-pci-passthrough", "id": "pci-pt-01_00.0", "hostaddr": "0000:01:00.0" } } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": {}, "id": 2= } ' libxl: debug: libxl_qmp.c:298:qmp_handle_response: message type: return libxl: debug: libxl_qmp.c:568:qmp_send_prepare: next qmp command: '{ "execute": "query-pci", "id": 3 } ' libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"return": [{"bus": 0,= "devices": [{"bus": 0, "qdev_id": "", "slot": 0, "class_info": {"class":= 1536, "desc": "Host bridge"}, "id": {"device": 4663, "vendor": 32902}, "= function": 0, "regions": []}, {"bus": 0, "qdev_id": "", "slot": 1, "class= _info": {"class": 1537, "desc": "ISA bridge"}, "id": {"device": 28672, "v= endor": 32902}, "function": 0, "regions": []}, {"bus": 0, "qdev_id": "", = "slot": 1, "class_info": {"class": 257, "desc": "IDE controller"}, "id": = {"device": 28688, "vendor": 32902}, "function": 1, "regions": [{"bar": 4,= "size": 16, "address": -1, "type": "io"}]}, {"bus": 0, "qdev_id": "", "i= rq": 0, "slot": 1, "class_info": {"class": 1664, "desc": "Bridge"}, "id":= {"device": 28947, "vendor": 32902}, "function": 3, "regions": []}, {"bus= ": 0, "qdev_id": "", "slot": 2, "class_info": {"class": 768, "desc": "VGA= controller"}, "id": {"device": 184, "vendor": 4115}, "function": 0, "reg= ions": [{"prefetch": true, "mem_type_64": false, "bar": 0, "size": 335544= 32, "address": -1, "type": "memory"}, {"prefetch": f' libxl: debug: libxl_qmp.c:460:qmp_next: received: 'alse, "mem_type_64": f= alse, "bar": 1, "size": 4096, "address": -1, "type": "memory"}, {"prefetc= h": false, "mem_type_64": false, "bar": 6, "size": 65536, "address": -1, = "type": "memory"}]}, {"bus": 0, "qdev_id": "", "irq": 0, "slot": 3, "clas= s_info": {"class": 65408}, "id": {"device": 1, "vendor": 22611}, "functio= n": 0, "regions": [{"bar": 0, "size": 256, "address": -1, "type": "io"}, = {"prefetch": true, "mem_type_64": false, "bar": 1, "size": 16777216, "add= ress": -1, "type": "memory"}]}, {"bus": 0, "qdev_id": "", "slot": 4, "cla= ss_info": {"class": 2054}, "id": {"device": 65535, "vendor": 4130}, "func= tion": 0, "regions": []}, {"bus": 0, "qdev_id": "pci-pt-01_00.0", "irq": = 10, "slot": 5, "class_info": {"class": 768, "desc": "VGA controller"}, "i= d": {"device": 26520, "vendor": 4098}, "function": 0, "regions": [{"prefe= tch": false, "mem_type_64": false, "bar": 0, "size": 268435456, "address"= : -1, "type": "memory"}, {"prefetch": false, "mem_type_64": false, "bar":= 2, "size": 262144, "address": -1, "type": "memory"}' libxl: debug: libxl_qmp.c:460:qmp_next: received: ', {"bar": 4, "size": 2= 56, "address": -1, "type": "io"}, {"prefetch": true, "mem_type_64": false= , "bar": 6, "size": 131072, "address": -1, "type": "memory"}]}]}], "id": = 3} ' *** glibc detected *** xl: realloc(): invalid pointer: 0x0000000000fd0df0= *** =3D=3D=3D=3D=3D=3D=3D Backtrace: =3D=3D=3D=3D=3D=3D=3D=3D=3D /lib64/libc.so.6(+0x74c06)[0x7f1e23b1cc06] /lib64/libc.so.6(+0x77d25)[0x7f1e23b1fd25] /lib/libxenlight.so.2.0(+0x28d02)[0x7f1e244b0d02] /lib/libxenlight.so.2.0(+0x2ecd3)[0x7f1e244b6cd3] /lib/libxenlight.so.2.0(+0x2f1df)[0x7f1e244b71df] /lib/libxenlight.so.2.0(+0x2fcf8)[0x7f1e244b7cf8] /lib/libxenlight.so.2.0(+0x20027)[0x7f1e244a8027] /lib/libxenlight.so.2.0(+0x212a6)[0x7f1e244a92a6] /lib/libxenlight.so.2.0(+0x19e82)[0x7f1e244a1e82] /lib/libxenlight.so.2.0(+0x1c288)[0x7f1e244a4288] /lib/libxenlight.so.2.0(+0x1c2a8)[0x7f1e244a42a8] /lib/libxenlight.so.2.0(+0x2657e)[0x7f1e244ae57e] /lib/libxenlight.so.2.0(+0x33f56)[0x7f1e244bbf56] /lib/libxenlight.so.2.0(libxl__fork_selfpipe_woken+0x92)[0x7f1e244bc274] /lib/libxenlight.so.2.0(+0x3242a)[0x7f1e244ba42a] /lib/libxenlight.so.2.0(+0x3264d)[0x7f1e244ba64d] /lib/libxenlight.so.2.0(+0x33824)[0x7f1e244bb824] /lib/libxenlight.so.2.0(+0x1c0a8)[0x7f1e244a40a8] /lib/libxenlight.so.2.0(libxl_domain_create_new+0x14)[0x7f1e244a414f] xl[0x40c1f2] xl[0x40fc94] xl[0x406c21] /lib64/libc.so.6(__libc_start_main+0xed)[0x7f1e23ac923d] xl[0x406439] =3D=3D=3D=3D=3D=3D=3D Memory map: =3D=3D=3D=3D=3D=3D=3D=3D 00400000-00420000 r-xp 00000000 08:11 2610233 = /usr/sbin/xl 0061f000-00620000 r--p 0001f000 08:11 2610233 = /usr/sbin/xl 00620000-00622000 rw-p 00020000 08:11 2610233 = /usr/sbin/xl 00fc5000-00fca000 rw-p 00000000 00:00 0 = [heap] 00fca000-00fcb000 rw-p 00000000 00:00 0 = [heap] 00fcb000-00fcc000 rw-p 00000000 00:00 0 = [heap] 00fcc000-00fcd000 rw-p 00000000 00:00 0 = [heap] 00fcd000-00fec000 rw-p 00000000 00:00 0 = [heap] 7f1e22808000-7f1e2281d000 r-xp 00000000 08:11 1280534 = /lib64/libgcc_s.so.1 7f1e2281d000-7f1e22a1c000 ---p 00015000 08:11 1280534 = /lib64/libgcc_s.so.1 7f1e22a1c000-7f1e22a1d000 r--p 00014000 08:11 1280534 = /lib64/libgcc_s.so.1 7f1e22a1d000-7f1e22a1e000 rw-p 00015000 08:11 1280534 = /lib64/libgcc_s.so.1 7f1e22a20000-7f1e22a37000 r-xp 00000000 08:11 1280476 = /lib64/libz.so.1.2.5 7f1e22a37000-7f1e22c36000 ---p 00017000 08:11 1280476 = /lib64/libz.so.1.2.5 7f1e22c36000-7f1e22c37000 r--p 00016000 08:11 1280476 = /lib64/libz.so.1.2.5 7f1e22c37000-7f1e22c38000 rw-p 00017000 08:11 1280476 = /lib64/libz.so.1.2.5 7f1e22c38000-7f1e22c46000 r-xp 00000000 08:11 1280503 = /lib64/libbz2.so.1.0.6 7f1e22c46000-7f1e22e45000 ---p 0000e000 08:11 1280503 = /lib64/libbz2.so.1.0.6 7f1e22e45000-7f1e22e46000 r--p 0000d000 08:11 1280503 = /lib64/libbz2.so.1.0.6 7f1e22e46000-7f1e22e47000 rw-p 0000e000 08:11 1280503 = /lib64/libbz2.so.1.0.6 7f1e22e48000-7f1e22e4a000 r-xp 00000000 08:11 1280462 = /lib64/libdl-2.14.1.so 7f1e22e4a000-7f1e2304a000 ---p 00002000 08:11 1280462 = /lib64/libdl-2.14.1.so 7f1e2304a000-7f1e2304b000 r--p 00002000 08:11 1280462 = /lib64/libdl-2.14.1.so 7f1e2304b000-7f1e2304c000 rw-p 00003000 08:11 1280462 = /lib64/libdl-2.14.1.so 7f1e23050000-7f1e23054000 r-xp 00000000 08:11 1280536 = /lib64/libuuid.so.1.3.0 7f1e23054000-7f1e23253000 ---p 00004000 08:11 1280536 = /lib64/libuuid.so.1.3.0 7f1e23253000-7f1e23254000 r--p 00003000 08:11 1280536 = /lib64/libuuid.so.1.3.0 7f1e23254000-7f1e23255000 rw-p 00004000 08:11 1280536 = /lib64/libuuid.so.1.3.0 7f1e23258000-7f1e2325a000 r-xp 00000000 08:11 1280490 = /lib64/libutil-2.14.1.so 7f1e2325a000-7f1e23459000 ---p 00002000 08:11 1280490 = /lib64/libutil-2.14.1.so 7f1e23459000-7f1e2345a000 r--p 00001000 08:11 1280490 = /lib64/libutil-2.14.1.so 7f1e2345a000-7f1e2345b000 rw-p 00002000 08:11 1280490 = /lib64/libutil-2.14.1.so 7f1e2345f000-7f1e23460000 rw-p 00000000 00:00 0=20 7f1e23460000-7f1e23467000 r-xp 00000000 08:11 576329 = /lib/libblktapctl.so.1.0.0 7f1e23467000-7f1e23666000 ---p 00007000 08:11 576329 = /lib/libblktapctl.so.1.0.0 7f1e23666000-7f1e23667000 r--p 00006000 08:11 576329 = /lib/libblktapctl.so.1.0.0 7f1e23667000-7f1e23668000 rw-p 00007000 08:11 576329 = /lib/libblktapctl.so.1.0.0 7f1e23668000-7f1e2366e000 r-xp 00000000 08:11 576359 = /lib/libxenstore.so.3.0.1 7f1e2366e000-7f1e2386d000 ---p 00006000 08:11 576359 = /lib/libxenstore.so.3.0.1 7f1e2386d000-7f1e2386e000 r--p 00005000 08:11 576359 = /lib/libxenstore.so.3.0.1 7f1e2386e000-7f1e2386f000 rw-p 00006000 08:11 576359 = /lib/libxenstore.so.3.0.1 7f1e2386f000-7f1e23872000 rw-p 00000000 00:00 0=20 7f1e23878000-7f1e238a0000 r-xp 00000000 08:11 576347 = /lib/libxenguest.so.4.2.0 7f1e238a0000-7f1e23aa0000 ---p 00028000 08:11 576347 = /lib/libxenguest.so.4.2.0 7f1e23aa0000-7f1e23aa1000 r--p 00028000 08:11 576347 = /lib/libxenguest.so.4.2.0 7f1e23aa1000-7f1e23aa2000 rw-p 00029000 08:11 576347 = /lib/libxenguest.so.4.2.0 --------------000307060505050604020007--