All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jobin Raju George <jobin.rv@gmail.com>
To: kvm@vger.kernel.org
Subject: Using block device instead of character device for virtio-serial
Date: Thu, 6 Feb 2014 12:22:36 +0530	[thread overview]
Message-ID: <CA+aVsWph4XLdWbC-qxT_JvBRXsEGBcZa82U4+LtN_ghZhVwFAQ@mail.gmail.com> (raw)

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?
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.

Thanks in advance!

-- 

Thanks and regards,
Jobin Raju George
Final Year, Information Technology
College of Engineering Pune
Alternate e-mail: georgejr10.it@coep.ac.in

             reply	other threads:[~2014-02-06  6:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  6:52 Jobin Raju George [this message]
2014-02-09  9:12 ` Using block device instead of character device for virtio-serial Stefan Hajnoczi
     [not found]   ` <CA+aVsWrLj4w_X2nZvJgRz9w-y4UG90g1L-shLZ1jOfjiJLPypA@mail.gmail.com>
2014-02-09 18:12     ` Fwd: " Jobin Raju George
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+aVsWph4XLdWbC-qxT_JvBRXsEGBcZa82U4+LtN_ghZhVwFAQ@mail.gmail.com \
    --to=jobin.rv@gmail.com \
    --cc=kvm@vger.kernel.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.