Re: [PATCH v6 08/12] Handle async PF in a guest.

From: Gleb Natapov
Date: Sun Oct 10 2010 - 09:23:58 EST


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/