From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150AbZKCOOc (ORCPT ); Tue, 3 Nov 2009 09:14:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751416AbZKCOOc (ORCPT ); Tue, 3 Nov 2009 09:14:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22515 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206AbZKCOOb (ORCPT ); Tue, 3 Nov 2009 09:14:31 -0500 Date: Tue, 3 Nov 2009 12:14:23 -0200 From: Marcelo Tosatti To: Gleb Natapov Cc: kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/11] Handle asynchronous page fault in a PV guest. Message-ID: <20091103141423.GC10084@amt.cnet> References: <1257076590-29559-1-git-send-email-gleb@redhat.com> <1257076590-29559-4-git-send-email-gleb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1257076590-29559-4-git-send-email-gleb@redhat.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 01, 2009 at 01:56:22PM +0200, Gleb Natapov wrote: > Asynchronous page fault notifies vcpu that page it is trying to access > is swapped out by a host. In response guest puts a task that caused the > fault to sleep until page is swapped in again. When missing page is > brought back into the memory guest is notified and task resumes execution. Can't you apply this to non-paravirt guests, and continue to deliver interrupts while waiting for the swapin? It should allow the guest to schedule a different task. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 03/11] Handle asynchronous page fault in a PV guest. Date: Tue, 3 Nov 2009 12:14:23 -0200 Message-ID: <20091103141423.GC10084@amt.cnet> References: <1257076590-29559-1-git-send-email-gleb@redhat.com> <1257076590-29559-4-git-send-email-gleb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org To: Gleb Natapov Return-path: Content-Disposition: inline In-Reply-To: <1257076590-29559-4-git-send-email-gleb@redhat.com> Sender: owner-linux-mm@kvack.org List-Id: kvm.vger.kernel.org On Sun, Nov 01, 2009 at 01:56:22PM +0200, Gleb Natapov wrote: > Asynchronous page fault notifies vcpu that page it is trying to access > is swapped out by a host. In response guest puts a task that caused the > fault to sleep until page is swapped in again. When missing page is > brought back into the memory guest is notified and task resumes execution. Can't you apply this to non-paravirt guests, and continue to deliver interrupts while waiting for the swapin? It should allow the guest to schedule a different task. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org