Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752091Ab2EXGc0 (ORCPT ); Thu, 24 May 2012 02:32:26 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:60935 "EHLO e28smtp03.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750907Ab2EXGcX (ORCPT ); Thu, 24 May 2012 02:32:23 -0400 Message-ID: <4FBDD5CA.9020906@linux.vnet.ibm.com> Date: Thu, 24 May 2012 14:31:38 +0800 From: Xiao Guangrong User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Avi Kivity CC: Marcelo Tosatti , LKML , KVM Subject: Re: [PATCH v5 0/9] KVM: fast page fault References: <4FBCA4FB.8050501@linux.vnet.ibm.com> <4FBCCC09.3020605@redhat.com> In-Reply-To: <4FBCCC09.3020605@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit x-cbid: 12052406-3864-0000-0000-000003081843 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1421 Lines: 35 On 05/23/2012 07:37 PM, Avi Kivity wrote: > On 05/23/2012 11:51 AM, Xiao Guangrong wrote: >> Changlog: >> This are some changes from Marcelo's review: >> - drop SPTE_WRITE_PROTECT bit, now, only one bit is needed to do >> lockless update. >> >> - always atomicly update spte if it can be updated out of mmu-lock. >> >> - flod the judgement of tlb flush into mmu_spte_update(), make the >> code easilyer audited. >> >> Performance result: >> - autoest migration test (smp2.Fedora.16.64.migrate.with_autotest.dbench.unix): >> before after >> smp2.Fedora.16.64.migrate.unix 93 91 +2.1% >> smp2.Fedora.16.64.migrate.with_autotest.dbench.unix 218 188 +13.7% >> >> - the benchmark attached is used to measure the resuming time >> after dirty-log >> before after >> Run 10 times, Avg time: 512466818 ns. 269231261 ns +47.5% > > Still scary (esp. indirect sptes), but looks pretty good. Hmm, i do not have a better way to solve the ABA problem on indirect spte now. :( How about only allow fast page fault to work for direct spte? -- 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/