From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 4DC9F6B006A for ; Tue, 5 Oct 2010 15:53:38 -0400 (EDT) Date: Tue, 5 Oct 2010 15:25:54 -0300 From: Marcelo Tosatti Subject: Re: [PATCH v6 07/12] Add async PF initialization to PV guest. Message-ID: <20101005182554.GA1786@amt.cnet> References: <1286207794-16120-1-git-send-email-gleb@redhat.com> <1286207794-16120-8-git-send-email-gleb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1286207794-16120-8-git-send-email-gleb@redhat.com> Sender: owner-linux-mm@kvack.org To: Gleb Natapov Cc: kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, avi@redhat.com, mingo@elte.hu, a.p.zijlstra@chello.nl, tglx@linutronix.de, hpa@zytor.com, riel@redhat.com, cl@linux-foundation.org List-ID: On Mon, Oct 04, 2010 at 05:56:29PM +0200, Gleb Natapov wrote: > Enable async PF in a guest if async PF capability is discovered. > > Signed-off-by: Gleb Natapov > --- > Documentation/kernel-parameters.txt | 3 + > arch/x86/include/asm/kvm_para.h | 5 ++ > arch/x86/kernel/kvm.c | 92 +++++++++++++++++++++++++++++++++++ > 3 files changed, 100 insertions(+), 0 deletions(-) > > +static int __cpuinit kvm_cpu_notify(struct notifier_block *self, > + unsigned long action, void *hcpu) > +{ > + int cpu = (unsigned long)hcpu; > + switch (action) { > + case CPU_ONLINE: > + case CPU_DOWN_FAILED: > + case CPU_ONLINE_FROZEN: > + smp_call_function_single(cpu, kvm_guest_cpu_notify, NULL, 0); wait parameter should probably be 1. -- 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