* [Qemu-devel] [PATCH] Fix xen pci passthrough
@ 2012-07-10 11:43 Wei Wang
2012-07-10 13:05 ` Anthony PERARD
0 siblings, 1 reply; 3+ messages in thread
From: Wei Wang @ 2012-07-10 11:43 UTC (permalink / raw)
To: stefano.stabellini, anthony.perard; +Cc: Wei Wang, xen-devel, qemu-devel
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.
*** 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 <wei.wang2@amd.com>
---
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;
--
1.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix xen pci passthrough
2012-07-10 11:43 [Qemu-devel] [PATCH] Fix xen pci passthrough Wei Wang
@ 2012-07-10 13:05 ` Anthony PERARD
2012-07-10 13:35 ` Wei Wang
0 siblings, 1 reply; 3+ messages in thread
From: Anthony PERARD @ 2012-07-10 13:05 UTC (permalink / raw)
To: Wei Wang
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org,
Stefano Stabellini
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,
> *** 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 <wei.wang2@amd.com>
>
> ---
> 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;
>
--
Anthony PERARD
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix xen pci passthrough
2012-07-10 13:05 ` Anthony PERARD
@ 2012-07-10 13:35 ` Wei Wang
0 siblings, 0 replies; 3+ messages in thread
From: Wei Wang @ 2012-07-10 13:35 UTC (permalink / raw)
To: Anthony PERARD
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org,
Stefano Stabellini
[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]
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 <wei.wang2@amd.com>
>>
>> ---
>> 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;
>>
>
>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: with_qemu_fix.log --]
[-- Type: text/x-log; name="with_qemu_fix.log", Size: 10610 bytes --]
freyja:/workdir # xl -vvv create xmexample.hvm
Parsing config from xmexample.hvm
WARNING: specifying "tsc_mode" as an integer is deprecated. Please use the named parameter variant. e.g. tsc_mode="default"
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware
libxl: debug: libxl_create.c:1028:do_domain_create: ao 0xa548c0: create: how=(nil) callback=(nil) poller=0xa588a0
libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:142:disk_try_backend: Disk vdev=hda, backend phy unsuitable as phys path not a block device
libxl: debug: libxl_device.c:149:disk_try_backend: Disk vdev=hda, backend tap unsuitable because blktap not available
libxl: debug: libxl_device.c:224:libxl__device_disk_set_backend: Disk vdev=hda, using backend qdisk
libxl: debug: libxl_create.c:628:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:290:libxl__bootloader_run: not a PV domain, skipping bootloader
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0xa5a208: deregister unregistered
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0x9e460
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 -> 0x0x7f4039fcd22d
libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=qdisk
libxl: debug: libxl_dm.c:1026:libxl__spawn_local_dm: Spawning device-model /workdir/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: /workdir/qemu-system-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=libxl-cmd,path=/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=libxl-cmd,mode=control
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=99
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=cda
libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -smp
libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 2,maxcpus=2
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=/workdir/hvm-guest/opensuse_11_3_64b_raw.img,if=ide,index=0,media=disk,format=raw
libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=0xa5a430 wpath=/local/domain/0/device-model/15/state token=3/0: register slotnum=3
libxl: debug: libxl_create.c:1041:do_domain_create: ao 0xa548c0: inprogress: poller=0xa588a0, flags=i
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0xa5a430 wpath=/local/domain/0/device-model/15/state token=3/0: event epath=/local/domain/0/device-model/15/state
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0xa5a430 wpath=/local/domain/0/device-model/15/state token=3/0: event epath=/local/domain/0/device-model/15/state
libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=0xa5a430 wpath=/local/domain/0/device-model/15/state token=3/0: deregister slotnum=3
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0xa5a430: deregister unregistered
libxl: debug: libxl_qmp.c:659:libxl__qmp_initialize: connected to /var/run/xen/qmp-libxl-15
libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabilities": []}}
'
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/run/xen/qmp-libxl-15
libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabilities": []}}
'
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, "vendor": 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": "", "irq": 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, "regions": [{"prefetch": true, "mem_type_64": false, "bar": 0, "size": 33554432, "address": -1, "type": "memory"}, {"prefetch": false, "mem_type_64": false, "bar": 1, "size": 4096, "address": -1, "type": "memory"}, {"prefetch": false, "mem_type_64": false, "bar": 6, "size": 65536, "address": -1, "type": "memory"}]}, {"bus": 0, "qdev_id": "", "irq": 0, "slot": 3, "class_info": {"class": 65408}, "id": {"device": 1, "vendor": 22611}, "function": 0, "regions": [{"bar": 0, "size": 256, "address": -1, "type": "io"}, {"prefetch": true, "mem_type_64": false, "bar": 1, "size": 16777216, "address": -1, "type": "memory"}]}, {"bus": 0, "qdev_id": "", "slot": 4, "class_info": {"class": 2054}, "id": {"device": 65535, "vendor": 4130}, "function": 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": [{"prefetch": 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": 256, "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 backend
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: complete, rc=0
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: without_qemu_fix.log --]
[-- Type: text/x-log; name="without_qemu_fix.log", Size: 15427 bytes --]
WARNING: specifying "tsc_mode" as an integer is deprecated. Please use the named parameter variant. e.g. tsc_mode="default"
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware
libxl: debug: libxl_create.c:1028:do_domain_create: ao 0xfc58c0: create: how=(nil) callback=(nil) poller=0xfc98a0
libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:142:disk_try_backend: Disk vdev=hda, backend phy unsuitable as phys path not a block device
libxl: debug: libxl_device.c:149:disk_try_backend: Disk vdev=hda, backend tap unsuitable because blktap not available
libxl: debug: libxl_device.c:224:libxl__device_disk_set_backend: Disk vdev=hda, using backend qdisk
libxl: debug: libxl_create.c:628:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:290:libxl__bootloader_run: not a PV domain, skipping bootloader
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0xfcb208: deregister unregistered
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0x9e460
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 -> 0x0x7f1e24afd22d
libxl: debug: libxl_device.c:188:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=qdisk
libxl: debug: libxl_dm.c:1026:libxl__spawn_local_dm: Spawning device-model /workdir/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: /workdir/qemu-system-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=libxl-cmd,path=/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=libxl-cmd,mode=control
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=99
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=cda
libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: -smp
libxl: debug: libxl_dm.c:1028:libxl__spawn_local_dm: 2,maxcpus=2
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=/workdir/hvm-guest/opensuse_11_3_64b_raw.img,if=ide,index=0,media=disk,format=raw
libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=0xfcb430 wpath=/local/domain/0/device-model/13/state token=3/0: register slotnum=3
libxl: debug: libxl_create.c:1041:do_domain_create: ao 0xfc58c0: inprogress: poller=0xfc98a0, flags=i
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0xfcb430 wpath=/local/domain/0/device-model/13/state token=3/0: event epath=/local/domain/0/device-model/13/state
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0xfcb430 wpath=/local/domain/0/device-model/13/state token=3/0: event epath=/local/domain/0/device-model/13/state
libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=0xfcb430 wpath=/local/domain/0/device-model/13/state token=3/0: deregister slotnum=3
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0xfcb430: deregister unregistered
libxl: debug: libxl_qmp.c:659:libxl__qmp_initialize: connected to /var/run/xen/qmp-libxl-13
libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabilities": []}}
'
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/run/xen/qmp-libxl-13
libxl: debug: libxl_qmp.c:460:qmp_next: received: '{"QMP": {"version": {"qemu": {"micro": 50, "minor": 1, "major": 1}, "package": ""}, "capabilities": []}}
'
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, "vendor": 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": "", "irq": 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, "regions": [{"prefetch": true, "mem_type_64": false, "bar": 0, "size": 33554432, "address": -1, "type": "memory"}, {"prefetch": f'
libxl: debug: libxl_qmp.c:460:qmp_next: received: 'alse, "mem_type_64": false, "bar": 1, "size": 4096, "address": -1, "type": "memory"}, {"prefetch": false, "mem_type_64": false, "bar": 6, "size": 65536, "address": -1, "type": "memory"}]}, {"bus": 0, "qdev_id": "", "irq": 0, "slot": 3, "class_info": {"class": 65408}, "id": {"device": 1, "vendor": 22611}, "function": 0, "regions": [{"bar": 0, "size": 256, "address": -1, "type": "io"}, {"prefetch": true, "mem_type_64": false, "bar": 1, "size": 16777216, "address": -1, "type": "memory"}]}, {"bus": 0, "qdev_id": "", "slot": 4, "class_info": {"class": 2054}, "id": {"device": 65535, "vendor": 4130}, "function": 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": [{"prefetch": 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": 256, "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 ***
======= Backtrace: =========
/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]
======= Memory map: ========
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
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
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-10 13:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 11:43 [Qemu-devel] [PATCH] Fix xen pci passthrough Wei Wang
2012-07-10 13:05 ` Anthony PERARD
2012-07-10 13:35 ` Wei Wang
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).