Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754560AbcCJIgY (ORCPT ); Thu, 10 Mar 2016 03:36:24 -0500 Received: from mga04.intel.com ([192.55.52.120]:46445 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752728AbcCJIgR convert rfc822-to-8bit (ORCPT ); Thu, 10 Mar 2016 03:36:17 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,314,1455004800"; d="scan'208";a="761500269" From: "Li, Liang Z" To: Amit Shah CC: "quintela@redhat.com" , "qemu-devel@nongnu.org" , "linux-kernel@vger.kernel.org" , "mst@redhat.com" , "akpm@linux-foundation.org" , "pbonzini@redhat.com" , "rth@twiddle.net" , "ehabkost@redhat.com" , "linux-mm@kvack.org" , "virtualization@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "dgilbert@redhat.com" Subject: RE: [RFC qemu 0/4] A PV solution for live migration optimization Thread-Topic: [RFC qemu 0/4] A PV solution for live migration optimization Thread-Index: AQHRdTqPjTxTnYWKZEWM4lf/HjT6rZ9O5pSAgANvNuD//36fAIAAkLUw Date: Thu, 10 Mar 2016 08:36:14 +0000 Message-ID: References: <1457001868-15949-1-git-send-email-liang.z.li@intel.com> <20160308111343.GM15443@grmbl.mre> <20160310075728.GB4678@grmbl.mre> In-Reply-To: <20160310075728.GB4678@grmbl.mre> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGRjNjM3MzMtMWQ5MS00OTExLTkwM2MtZDBiNTQyZjcxMzZmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Ilp2UmdkbUV3N3dybWlaSkF1RGpHOWQ2azJmN3FcL1wvRHZHS1p0aURhTHJMTT0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1119 Lines: 38 > > Could provide more information on how to use virtio-serial to exchange > data? Thread , Wiki or code are all OK. > > I have not find some useful information yet. > > See this commit in the Linux sources: > > 108fc82596e3b66b819df9d28c1ebbc9ab5de14c > > that adds a way to send guest trace data over to the host. I think that's the > most relevant to your use-case. However, you'll have to add an in-kernel > user of virtio-serial (like the virtio-console code > -- the code that deals with tty and hvc currently). There's no other non-tty > user right now, and this is the right kind of use-case to add one for! > > For many other (userspace) use-cases, see the qemu-guest-agent in the > qemu sources. > > The API is documented in the wiki: > > http://www.linux-kvm.org/page/Virtio-serial_API > > and the feature pages have some information that may help as well: > > https://fedoraproject.org/wiki/Features/VirtioSerial > > There are some links in here too: > > http://log.amitshah.net/2010/09/communication-between-guests-and- > hosts/ > > Hope this helps. > > > Amit Thanks a lot !! Liang