All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jobin Raju George <jobin.rv@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Fwd: Using block device instead of character device for virtio-serial
Date: Sun, 9 Feb 2014 23:42:49 +0530	[thread overview]
Message-ID: <CA+aVsWrsEfyZnuxMruKCVtySxSs0GBcu=XjHk7Fcbog_cRoUmg@mail.gmail.com> (raw)
In-Reply-To: <CA+aVsWrLj4w_X2nZvJgRz9w-y4UG90g1L-shLZ1jOfjiJLPypA@mail.gmail.com>

---------- Forwarded message ----------
From: Jobin Raju George <jobin.rv@gmail.com>
Date: Sun, Feb 9, 2014 at 11:39 PM
Subject: Re: Using block device instead of character device for virtio-serial
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: kvm@vger.kernel.org





On Sun, Feb 9, 2014 at 2:42 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
>
> On Thu, Feb 06, 2014 at 12:22:36PM +0530, Jobin Raju George wrote:
> > I am trying to establish a communication mechanism between the guest
> > and its host using virtio-serial. For this I am using the following to
> > boot the VM:
> >
> > qemu-system-x86_64 -m 1024 \
> > -name ubuntu_vm \
> > -hda ubuntu \
> > -device virtio-serial \
> > -chardev socket,path=/tmp/virt_socket,server,nowait,id=virt_socket \
> > -device virtconsole,name=v_soc,chardev=virt_socket,name=ubuntu_vm_soc
> >
> > This creates a character device on the guest machine and a UNIX socket
> > on the host machine.
> >
> > 1) Is there a way I can create sockets on the host as well as the guest?
>
> The syntax is documented on the QEMU man page.  Try:
>
> -chardev socket,port=1234,server,nowait,id=virt_socket


I did not try this out, but would this create a "socket" instead of a
character device(/dev/hvc0) on the guest?
>
>
> > 2) Is there a way I can create a block device for communication?
> >
> > I required a block device since the data that is to be transferred is
> > huge and the frequency of the data transfer is quite high.
>
> Have you benchmarked virtio-serial or is this just a guess?


I have not  benchmarked virtio-serial but it seems to be intuitive
that a block device would perform data transfer at a faster rate than
a character device. I may be wrong, would be happy to be corrected.
And yes, I would like to know how can I benchmark virtio-serial using
a character device vs a TCP/IP socket data transfer vs virtio-serial
using a block device.
>
>
> Stefan




-- 

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10.it@coep.ac.in




-- 

Thanks and regards,

Jobin Raju George

Final Year, Information Technology

College of Engineering Pune

Alternate e-mail: georgejr10.it@coep.ac.in

  parent reply	other threads:[~2014-02-09 18:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  6:52 Using block device instead of character device for virtio-serial Jobin Raju George
2014-02-09  9:12 ` Stefan Hajnoczi
     [not found]   ` <CA+aVsWrLj4w_X2nZvJgRz9w-y4UG90g1L-shLZ1jOfjiJLPypA@mail.gmail.com>
2014-02-09 18:12     ` Jobin Raju George [this message]
2014-02-14 10:35     ` Stefan Hajnoczi
2014-02-15  5:00       ` Jobin Raju George
2014-02-17  8:25         ` Stefan Hajnoczi

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='CA+aVsWrsEfyZnuxMruKCVtySxSs0GBcu=XjHk7Fcbog_cRoUmg@mail.gmail.com' \
    --to=jobin.rv@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=stefanha@gmail.com \
    /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.