Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755842Ab0AFKWK (ORCPT ); Wed, 6 Jan 2010 05:22:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755816Ab0AFKWJ (ORCPT ); Wed, 6 Jan 2010 05:22:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39810 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755814Ab0AFKWH (ORCPT ); Wed, 6 Jan 2010 05:22:07 -0500 Date: Wed, 6 Jan 2010 12:21:29 +0200 From: Gleb Natapov To: Jun Koi Cc: Avi Kivity , kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mingo@elte.hu, a.p.zijlstra@chello.nl, tglx@linutronix.de, hpa@zytor.com, riel@redhat.com, cl@linux-foundation.org Subject: Re: [PATCH v3 00/12] KVM: Add host swap event notifications for PV guest Message-ID: <20100106102129.GG4905@redhat.com> References: <1262700774-1808-1-git-send-email-gleb@redhat.com> <4B43631A.2030101@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1154 Lines: 33 On Wed, Jan 06, 2010 at 07:17:30PM +0900, Jun Koi wrote: > On Wed, Jan 6, 2010 at 1:04 AM, Avi Kivity wrote: > > On 01/05/2010 05:05 PM, Jun Koi wrote: > >> > >> Is it true that to make this work, we will need a (PV) kernel driver > >> for each guest OS (Windows, Linux, ...)? > >> > >> > > > > It's partially usable even without guest modifications; while servicing a > > host page fault we can still deliver interrupts to the guest (which might > > cause a context switch and thus further progress to be made). > > Lets say, in the case the guest has no PV driver. When we find that a > guest page is swapped out, we can send a pagefault > to the guest to trick it to load that page in. And we dont need the > driver at all. > That's not the guest who should load the page. From guest's point of view the page is in memory. > Is that a reasonable solution? > > Thanks, > J -- Gleb. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/