All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Linhaifeng <haifeng.lin@huawei.com>
Cc: Damjan Marion <damarion@cisco.com>,
	lilijun <jerry.lilijun@huawei.com>,
	n.nikolaev@virtualopensystems.com, qemu-devel@nongnu.org,
	liuyongan@huawei.com, huangzhichao@huawei.com,
	pbonzini@redhat.com
Subject: Re: [Qemu-devel] vhost-user:Bad ram offset
Date: Sun, 2 Nov 2014 18:46:27 +0200	[thread overview]
Message-ID: <20141102164627.GA7539@redhat.com> (raw)
In-Reply-To: <5454A61C.5050505@huawei.com>

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

  reply	other threads:[~2014-11-02 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-01  9:21 [Qemu-devel] vhost-user:Bad ram offset Linhaifeng
2014-11-02 16:46 ` Michael S. Tsirkin [this message]
2014-11-02 18:54 ` 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=20141102164627.GA7539@redhat.com \
    --to=mst@redhat.com \
    --cc=damarion@cisco.com \
    --cc=haifeng.lin@huawei.com \
    --cc=huangzhichao@huawei.com \
    --cc=jerry.lilijun@huawei.com \
    --cc=liuyongan@huawei.com \
    --cc=n.nikolaev@virtualopensystems.com \
    --cc=pbonzini@redhat.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.