From: Wen Congyang <wency@cn.fujitsu.com>
To: Avi Kivity <avi@redhat.com>, David Ahern <daahern@cisco.com>,
aliguori@us.ibm.com, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qemu-kvm aborts - vhost_dev_unassign_memory: Assertion `to >= 0' failed.
Date: Wed, 03 Aug 2011 17:33:10 +0800 [thread overview]
Message-ID: <4E3915D6.9020103@cn.fujitsu.com> (raw)
In-Reply-To: <4E390E85.30101@redhat.com>
At 08/03/2011 05:01 PM, Avi Kivity Write:
> On 08/01/2011 08:44 PM, David Ahern wrote:
>> qemu-kvm.git as of:
>>
>> commit dacdc4b10bafbb21120e1c24a9665444768ef999
>> Merge: 7b69d4f 0af4922
>> Author: Avi Kivity<avi@redhat.com>
>> Date: Sun Jul 31 11:42:26 2011 +0300
>>
>> Merge branch 'upstream-merge' into next
>>
>> is aborting with the error:
>>
>> qemu-kvm: qemu-kvm.git/hw/vhost.c:123: vhost_dev_unassign_memory:
>> Assertion `to>= 0' failed.
>> Aborted
>
> Full command line please?
I use the upstream qemu, and meet the same problem.
I use libvirt to start vm. Here is the command line:
2011-08-03 13:58:21.157: starting up
LC_ALL=C PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin HOME=/root USER=root LOGNAME=root QEMU_AUDIO_DRV=none /usr/local2/bin/
qemu-system-x86_64 -S -M pc-0.14 -enable-kvm -m 512 -smp 4,sockets=4,cores=1,threads=1 -name vm1 -uuid a1cd0309-72a3-48b7-835d-212c86de407f -nodefconfig -nodefaults -chardev soc
ket,id=charmonitor,path=/var/lib/libvirt/qemu/vm1.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -device lsi,id=scsi0,bu
s=pci.0,multifunction=on,addr=0x5.0x0 -drive file=/var/lib/libvirt/images/vm1.img,if=none,id=drive-ide0-0-0,format=qcow2,cache=writethrough -device ide-drive,bus=ide.0,unit=0,dr
ive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/var/lib/libvirt/images/test.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,
unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/var/lib/libvirt/images/test.img,if=none,id=drive-virtio-disk0,format=qcow2,serial=Fujitsu-virtio-0001 -device virtio-blk-pci
,bus=pci.0,multifunction=on,addr=0x7.0x0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=2 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=26 -device virtio-net-pci,netdev=hos
tnet0,id=net0,mac=52:54:00:04:72:f2,bus=pci.0,multifunction=on,addr=0x3.0x0 -netdev tap,fd=27,id=hostnet1 -device rtl8139,netdev=hostnet1,id=net1,mac=52:54:00:04:72:f3,bus=pci.0
,multifunction=on,addr=0x6.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 0.0.0.0:1 -vga cirrus -device virtio-balloon-pci,id=balloo
n0,bus=pci.0,multifunction=on,addr=0x4.0x0
char device redirected to /dev/pts/7
qemu-system-x86_64: /home/wency/source/qemu/hw/vhost.c:123: vhost_dev_unassign_memory: Assertion `to >= 0' failed.
2011-08-03 13:58:21.400: shutting down
If I do not use vhost(command line does not include vhost=on,vhostfd=26), the vm can start succefully.
Thanks
Wen Congyang
>
next prev parent reply other threads:[~2011-08-03 9:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-01 17:44 qemu-kvm aborts - vhost_dev_unassign_memory: Assertion `to >= 0' failed David Ahern
2011-08-01 17:44 ` [Qemu-devel] " David Ahern
2011-08-01 18:04 ` David Ahern
2011-08-01 18:04 ` [Qemu-devel] " David Ahern
2011-08-03 9:01 ` Avi Kivity
2011-08-03 9:01 ` [Qemu-devel] " Avi Kivity
2011-08-03 9:33 ` Wen Congyang [this message]
2011-08-03 11:48 ` Avi Kivity
2011-08-03 11:48 ` [Qemu-devel] " Avi Kivity
2011-08-03 12:24 ` Michael S. Tsirkin
2011-08-03 12:24 ` [Qemu-devel] " Michael S. Tsirkin
2011-08-03 13:55 ` David Ahern
2011-08-03 13:55 ` [Qemu-devel] " David Ahern
2011-08-03 15:00 ` Michael S. Tsirkin
2011-08-03 15:00 ` [Qemu-devel] " Michael S. Tsirkin
2011-08-04 18:48 ` David Ahern
2011-08-04 18:48 ` [Qemu-devel] " David Ahern
2011-08-04 19:17 ` Michael S. Tsirkin
2011-08-04 19:17 ` [Qemu-devel] " Michael S. Tsirkin
2011-08-04 19:23 ` David Ahern
2011-08-04 19:23 ` [Qemu-devel] " David Ahern
2011-08-03 13:07 ` Michael S. Tsirkin
2011-08-03 13:07 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E3915D6.9020103@cn.fujitsu.com \
--to=wency@cn.fujitsu.com \
--cc=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=daahern@cisco.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.