Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752321Ab0KBMjR (ORCPT ); Tue, 2 Nov 2010 08:39:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45020 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209Ab0KBMjL (ORCPT ); Tue, 2 Nov 2010 08:39:11 -0400 Date: Tue, 2 Nov 2010 14:39:03 +0200 From: Gleb Natapov To: Xiao Guangrong Cc: Avi Kivity , Marcelo Tosatti , LKML , KVM Subject: Re: [RFC PATCH v2 7/7] KVM: KVM: don't break vcpu 'halt' state due to apfs Message-ID: <20101102123903.GF7881@redhat.com> References: <4CCE8143.3090105@cn.fujitsu.com> <4CCE82BC.3090000@cn.fujitsu.com> <20101101125551.GD31722@redhat.com> <4CCF77B2.9080604@cn.fujitsu.com> <20101102065613.GA7881@redhat.com> <4CCFBE4E.3090804@cn.fujitsu.com> <20101102074545.GC7881@redhat.com> <4CCFD556.3070504@cn.fujitsu.com> <20101102091430.GD7881@redhat.com> <4CCFDA28.4070003@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CCFDA28.4070003@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 21 On Tue, Nov 02, 2010 at 05:30:16PM +0800, Xiao Guangrong wrote: > On 11/02/2010 05:14 PM, Gleb Natapov wrote: > > > If irqchip is in userspace apf is disabled (see mmu.c:can_do_async_pf()). > > The reason for this is that when irqchip_in_kernel(v->kvm) cpu sleeps in > > userspace during halt, so all event that can cause it to be unhalted > > should be generated in userspace too. This is also the reason you can't have > > pit in kernel and irqchip in userpsace. > > > > Oh, thank you very much for answering so many questions, and your patch is > looks good for me! ;-) It is still not tested though :) -- 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/