From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756831Ab1KOQan (ORCPT ); Tue, 15 Nov 2011 11:30:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11607 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756540Ab1KOQam (ORCPT ); Tue, 15 Nov 2011 11:30:42 -0500 Message-ID: <4EC29367.9040106@redhat.com> Date: Tue, 15 Nov 2011 11:29:27 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: Dan Magenheimer CC: Andrea Arcangeli , Pekka Enberg , Cyclonus J , Sasha Levin , Christoph Hellwig , David Rientjes , Linus Torvalds , linux-mm@kvack.org, LKML , Andrew Morton , Konrad Wilk , Jeremy Fitzhardinge , Seth Jennings , ngupta@vflare.org, Chris Mason , JBeulich@novell.com, Dave Hansen , Jonathan Corbet Subject: Re: [GIT PULL] mm: frontswap (for 3.2 window) References: <75efb251-7a5e-4aca-91e2-f85627090363@default> <20111027215243.GA31644@infradead.org> <1319785956.3235.7.camel@lappy> <552d2067-474d-4aef-a9a4-89e5fd8ef84f@default20111031181651.GF3466@redhat.com> <60592afd-97aa-4eaf-b86b-f6695d31c7f1@default> <20111031223717.GI3466@redhat.com> <1b2e4f74-7058-4712-85a7-84198723e3ee@default 4EB1AD53.2000600@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/2011 05:14 PM, Dan Magenheimer wrote: > It occurs to me that batching could be done locally without > changing the in-kernel "API" (i.e. frontswap_ops)... the > guest-side KVM tmem-backend-driver could do the compression > into guest-side memory and make a single > hypercall=vmexit/vmenter whenever it has collected enough for > a batch. That seems like the best way to do it, indeed. Do the current hooks allow that mode of operation, or do the hooks only return after the entire operation has completed?