Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757301AbcCDC3Z (ORCPT ); Thu, 3 Mar 2016 21:29:25 -0500 Received: from mga11.intel.com ([192.55.52.93]:48793 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756636AbcCDC3X convert rfc822-to-8bit (ORCPT ); Thu, 3 Mar 2016 21:29:23 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,534,1449561600"; d="scan'208";a="663542870" From: "Li, Liang Z" To: "Michael S. Tsirkin" CC: "quintela@redhat.com" , "amit.shah@redhat.com" , "qemu-devel@nongnu.org" , "linux-kernel@vger.kernel.org" , "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 2/4] virtio-balloon: Add a new feature to balloon device Thread-Topic: [RFC qemu 2/4] virtio-balloon: Add a new feature to balloon device Thread-Index: AQHRdTqNiA+YSUCfvUil9TtoPzawdp9HJ72AgAFm+8A= Date: Fri, 4 Mar 2016 02:29:19 +0000 Message-ID: References: <1457001868-15949-1-git-send-email-liang.z.li@intel.com> <1457001868-15949-3-git-send-email-liang.z.li@intel.com> <20160303125651.GA21382@redhat.com> In-Reply-To: <20160303125651.GA21382@redhat.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzlkMDBjZTMtYTQyYi00NmYxLWJhYjMtYjk4NDMzMjY1NGJjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkxNYTJsT1VDbHpZMFVOU2hZMGdnZEJTcFM1WnZ5XC85UWQ3VE1EdjhCR0RJPSJ9 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: 1126 Lines: 31 > Subject: Re: [RFC qemu 2/4] virtio-balloon: Add a new feature to balloon > device > > On Thu, Mar 03, 2016 at 06:44:26PM +0800, Liang Li wrote: > > Extend the virtio balloon device to support a new feature, this new > > feature can help to get guest's free pages information, which can be > > used for live migration optimzation. > > > > Signed-off-by: Liang Li > > I don't understand why we need a new interface. > Balloon already sends free pages to host. > Just teach host to skip these pages. > I just make use the current virtio-balloon implementation, it's more complicated to invent a new virtio-io device... Actually, there is no need to inflate the balloon before live migration, so the host has no information about the guest's free pages, that's why I add a new one. > Maybe instead of starting with code, you should send a high level description > to the virtio tc for consideration? > > You can do it through the mailing list or using the web form: > http://www.oasis- > open.org/committees/comments/form.php?wg_abbrev=virtio > Thanks for your information and suggestion. Liang