From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jobin Raju George Subject: Using block device instead of character device for virtio-serial Date: Thu, 6 Feb 2014 12:22:36 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: kvm@vger.kernel.org Return-path: Received: from mail-oa0-f66.google.com ([209.85.219.66]:49652 "EHLO mail-oa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751685AbaBFGwh (ORCPT ); Thu, 6 Feb 2014 01:52:37 -0500 Received: by mail-oa0-f66.google.com with SMTP id m1so465922oag.5 for ; Wed, 05 Feb 2014 22:52:36 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: 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