qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Naredula Janardhana Reddy <naredula.jana@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] vhost-user memory regions.
Date: Mon, 13 Jul 2015 14:05:12 +0530	[thread overview]
Message-ID: <CABSNWZzC2tgvvysL97FOLbCJ7e4KvJDAr7enA-dpbPV+X1EvDg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]

In the QEMU 2.3.0 , The memory regions published to user space application
is limited address space, not the complete memory regions of quest vm, due
to this , the user level app cannot decode all the memory block addresses.
This is needed for reading the packet from virtio ring.

Is there any configuration  in qemu to overcome the above  or it is bug in
virtio-user?.

Test details:
Qemu cmd line:
    /opt/qemu.2.3.0/bin/qemu-system-x86_64 -enable-kvm -gdb
tcp::1336,server,nowait
-monitor tcp::51008,server,nowait,nodelay -m 256M -mem-path /hugetlbfs
-mem-prealloc
-smp 2 -chardev backend=socket,id=ch1,path=/opt_src/port1 -netdev
vhost-user,id=guest0,chardev=ch1 -device
virtio-net-pci,mac=00:30:48:DB:5E:01,netdev=guest0,mq=on,vectors=8 -vnc :8
-serial telnet::50008,server,nowait -daemonize -append
net_send_int_disable=1 ipaddr=192.168.122.3 gw=192.168.122.1 nic_intr_off=1
netbh_tightloop=0 page_cache=1  -kernel /opt_src/jiny/jiny_image.bin -drive
if=virtio,id=hdr0,file=/opt_src/jiny/disk
In the below message

The below is message recevied at the user level application from
vhost-user(qemu), the size is only 655k.  but needed is 256M(size of
memory or shared memory size of hugetlb).  I have Temporarly hardcoded the
size in the app by changing the size to 256M from 655K. so that network
packet address can able to decode from  the virtio ring.

Cmd: VHOST_USER_SET_MEM_TABLE (0x5)
flags: 0x1
regions: 2
region:
        gpa = 0x0
        size = 655360
        ua = 0x2aaaaac00000
region:
        gpa = 0x0
        size = 786432
        ua = 0xff40000



Thanks
Jana

[-- Attachment #2: Type: text/html, Size: 1852 bytes --]

             reply	other threads:[~2015-07-13  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13  8:35 Naredula Janardhana Reddy [this message]
2015-07-17 11:55 ` [Qemu-devel] vhost-user memory regions Marc-André Lureau
2015-07-19 14:04   ` Naredula Janardhana Reddy

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=CABSNWZzC2tgvvysL97FOLbCJ7e4KvJDAr7enA-dpbPV+X1EvDg@mail.gmail.com \
    --to=naredula.jana@gmail.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 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).