* [Qemu-devel] vhost-user:Bad ram offset
@ 2014-11-01 9:21 Linhaifeng
2014-11-02 16:46 ` Michael S. Tsirkin
2014-11-02 18:54 ` Michael S. Tsirkin
0 siblings, 2 replies; 3+ messages in thread
From: Linhaifeng @ 2014-11-01 9:21 UTC (permalink / raw)
To: qemu-devel
Cc: Damjan Marion, Michael S. Tsirkin, lilijun, n.nikolaev, liuyongan,
huangzhichao, pbonzini
Hi,all
VM use vhost-user backend cannot startup when memory bigger than 3.5G.The log print "Bad ram offset 100000000" .Is this a bug?
log:
[2014-11-01T08:39:07.245324Z] virtio_set_status:524 virtio-net device status is 1 that means ACKNOWLEDGE
[2014-11-01T08:39:07.247225Z] virtio_set_status:524 virtio-balloon device status is 1 that means ACKNOWLEDGE
[2014-11-01T08:39:07.320191Z] virtio_set_status:524 virtio-net device status is 3 that means DRIVER
Bad ram offset 100000000
[2014-11-01 08:39:07]: shutting down
command:
/usr/bin/qemu-system-x86_64 -name vm1
-smp 4
-drive file=/mnt/sdb/linhf/imgs/vm1.img,if=none,id=drive-ide0-0-0,format=raw,cache=none,aio=native -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
-chardev socket,id=charnet0,path=/var/run/vhost-user/port1 -netdev type=vhost-user,id=hostnet0,chardev=charnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:00:00:00:00:01,bus=pci.0,addr=0x3 \
-enable-kvm -mem-prealloc -object memory-backend-file,id=mem,size=3968M,mem-path=/dev/hugepages,share=on -numa node,memdev=mem
when memory is smaller than 3.5G VM would run well.
--
Regards,
Haifeng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] vhost-user:Bad ram offset
2014-11-01 9:21 [Qemu-devel] vhost-user:Bad ram offset Linhaifeng
@ 2014-11-02 16:46 ` Michael S. Tsirkin
2014-11-02 18:54 ` Michael S. Tsirkin
1 sibling, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2014-11-02 16:46 UTC (permalink / raw)
To: Linhaifeng
Cc: Damjan Marion, lilijun, n.nikolaev, qemu-devel, liuyongan,
huangzhichao, pbonzini
On Sat, Nov 01, 2014 at 05:21:32PM +0800, Linhaifeng wrote:
> Hi,all
>
> VM use vhost-user backend cannot startup when memory bigger than 3.5G.The log print "Bad ram offset 100000000" .Is this a bug?
>
> log:
> [2014-11-01T08:39:07.245324Z] virtio_set_status:524 virtio-net device status is 1 that means ACKNOWLEDGE
> [2014-11-01T08:39:07.247225Z] virtio_set_status:524 virtio-balloon device status is 1 that means ACKNOWLEDGE
> [2014-11-01T08:39:07.320191Z] virtio_set_status:524 virtio-net device status is 3 that means DRIVER
> Bad ram offset 100000000
> [2014-11-01 08:39:07]: shutting down
>
>
> command:
> /usr/bin/qemu-system-x86_64 -name vm1
> -smp 4
> -drive file=/mnt/sdb/linhf/imgs/vm1.img,if=none,id=drive-ide0-0-0,format=raw,cache=none,aio=native -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
> -chardev socket,id=charnet0,path=/var/run/vhost-user/port1 -netdev type=vhost-user,id=hostnet0,chardev=charnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:00:00:00:00:01,bus=pci.0,addr=0x3 \
> -enable-kvm -mem-prealloc -object memory-backend-file,id=mem,size=3968M,mem-path=/dev/hugepages,share=on -numa node,memdev=mem
>
> when memory is smaller than 3.5G VM would run well.
I reproduced this.
Interestingly, this does not trigger with 4096.
It does trigger with 3968.
>
> --
> Regards,
> Haifeng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] vhost-user:Bad ram offset
2014-11-01 9:21 [Qemu-devel] vhost-user:Bad ram offset Linhaifeng
2014-11-02 16:46 ` Michael S. Tsirkin
@ 2014-11-02 18:54 ` Michael S. Tsirkin
1 sibling, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2014-11-02 18:54 UTC (permalink / raw)
To: Linhaifeng
Cc: Damjan Marion, lilijun, n.nikolaev, qemu-devel, liuyongan,
huangzhichao, pbonzini
On Sat, Nov 01, 2014 at 05:21:32PM +0800, Linhaifeng wrote:
> Hi,all
>
> VM use vhost-user backend cannot startup when memory bigger than 3.5G.The log print "Bad ram offset 100000000" .Is this a bug?
>
> log:
> [2014-11-01T08:39:07.245324Z] virtio_set_status:524 virtio-net device status is 1 that means ACKNOWLEDGE
> [2014-11-01T08:39:07.247225Z] virtio_set_status:524 virtio-balloon device status is 1 that means ACKNOWLEDGE
> [2014-11-01T08:39:07.320191Z] virtio_set_status:524 virtio-net device status is 3 that means DRIVER
> Bad ram offset 100000000
> [2014-11-01 08:39:07]: shutting down
>
>
> command:
> /usr/bin/qemu-system-x86_64 -name vm1
> -smp 4
> -drive file=/mnt/sdb/linhf/imgs/vm1.img,if=none,id=drive-ide0-0-0,format=raw,cache=none,aio=native -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
> -chardev socket,id=charnet0,path=/var/run/vhost-user/port1 -netdev type=vhost-user,id=hostnet0,chardev=charnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:00:00:00:00:01,bus=pci.0,addr=0x3 \
> -enable-kvm -mem-prealloc -object memory-backend-file,id=mem,size=3968M,mem-path=/dev/hugepages,share=on -numa node,memdev=mem
>
> when memory is smaller than 3.5G VM would run well.
>
I just sent a patch to fix this:
vhost-user: fix mmap offset calculation
> --
> Regards,
> Haifeng
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-02 18:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-01 9:21 [Qemu-devel] vhost-user:Bad ram offset Linhaifeng
2014-11-02 16:46 ` Michael S. Tsirkin
2014-11-02 18:54 ` Michael S. Tsirkin
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).