From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id AACC26B006A for ; Sun, 10 Oct 2010 09:23:06 -0400 (EDT) Date: Sun, 10 Oct 2010 15:22:52 +0200 From: Gleb Natapov Subject: Re: [PATCH v6 08/12] Handle async PF in a guest. Message-ID: <20101010132252.GO2397@redhat.com> References: <1286207794-16120-1-git-send-email-gleb@redhat.com> <1286207794-16120-9-git-send-email-gleb@redhat.com> <4CADC6C3.3040305@redhat.com> <20101010123220.GN2397@redhat.com> <4CB1B3E2.3000200@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CB1B3E2.3000200@redhat.com> Sender: owner-linux-mm@kvack.org To: Avi Kivity Cc: 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, mtosatti@redhat.com List-ID: On Sun, Oct 10, 2010 at 02:38:58PM +0200, Avi Kivity wrote: > On 10/10/2010 02:32 PM, Gleb Natapov wrote: > >On Thu, Oct 07, 2010 at 03:10:27PM +0200, Avi Kivity wrote: > >> On 10/04/2010 05:56 PM, Gleb Natapov wrote: > >> >When async PF capability is detected hook up special page fault handler > >> >that will handle async page fault events and bypass other page faults to > >> >regular page fault handler. Also add async PF handling to nested SVM > >> >emulation. Async PF always generates exit to L1 where vcpu thread will > >> >be scheduled out until page is available. > >> > > >> > >> Please separate guest and host changes. > >> > >Hmm. There are only guest changes here as far as I can see. > > From the diffstat: > > > arch/x86/include/asm/kvm_para.h | 12 +++ > > arch/x86/include/asm/traps.h | 1 + > > arch/x86/kernel/entry_32.S | 10 ++ > > arch/x86/kernel/entry_64.S | 3 + > > arch/x86/kernel/kvm.c | 184 ++++++++++++++++++++++++++++++++++++++- > > arch/x86/kvm/svm.c | 43 +++++++-- > > svm.c is host code. > Not exactly :) It is a host code from nested guest perspective, but guest code from L0 perspective. -- Gleb. -- 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