From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl0Ib-00045a-Il for qemu-devel@nongnu.org; Sun, 02 Nov 2014 13:54:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl0IV-0001Hl-Dq for qemu-devel@nongnu.org; Sun, 02 Nov 2014 13:54:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl0IV-0001Hf-4q for qemu-devel@nongnu.org; Sun, 02 Nov 2014 13:54:43 -0500 Date: Sun, 2 Nov 2014 20:54:22 +0200 From: "Michael S. Tsirkin" Message-ID: <20141102185422.GA8243@redhat.com> References: <5454A61C.5050505@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5454A61C.5050505@huawei.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] vhost-user:Bad ram offset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Linhaifeng Cc: Damjan Marion , lilijun , n.nikolaev@virtualopensystems.com, qemu-devel@nongnu.org, liuyongan@huawei.com, huangzhichao@huawei.com, pbonzini@redhat.com On Sat, Nov 01, 2014 at 05:21:32PM +0800, Linhaifeng wrote: > Hi,all >=20 > VM use vhost-user backend cannot startup when memory bigger than 3.5G.T= he log print "Bad ram offset 100000000" .Is this a bug? >=20 > log=EF=BC=9A > [2014-11-01T08:39:07.245324Z] virtio_set_status:524 virtio-net device s= tatus is 1 that means ACKNOWLEDGE > [2014-11-01T08:39:07.247225Z] virtio_set_status:524 virtio-balloon devi= ce status is 1 that means ACKNOWLEDGE > [2014-11-01T08:39:07.320191Z] virtio_set_status:524 virtio-net device s= tatus is 3 that means DRIVER > Bad ram offset 100000000 > [2014-11-01 08:39:07]: shutting down >=20 >=20 > command=EF=BC=9A > /usr/bin/qemu-system-x86_64 -name vm1 > -smp 4 > -drive file=3D/mnt/sdb/linhf/imgs/vm1.img,if=3Dnone,id=3Ddrive-ide0-0-0= ,format=3Draw,cache=3Dnone,aio=3Dnative -device ide-hd,bus=3Dide.0,unit=3D= 0,drive=3Ddrive-ide0-0-0,id=3Dide0-0-0,bootindex=3D1 \ > -chardev socket,id=3Dcharnet0,path=3D/var/run/vhost-user/port1 -netdev = type=3Dvhost-user,id=3Dhostnet0,chardev=3Dcharnet0 -device virtio-net-pci= ,netdev=3Dhostnet0,id=3Dnet0,mac=3D00:00:00:00:00:01,bus=3Dpci.0,addr=3D0= x3 \ > -enable-kvm -mem-prealloc -object memory-backend-file,id=3Dmem,size=3D3= 968M,mem-path=3D/dev/hugepages,share=3Don -numa node,memdev=3Dmem >=20 > when memory is smaller than 3.5G VM would run well. >=20 I just sent a patch to fix this: vhost-user: fix mmap offset calculation > --=20 > Regards, > Haifeng