From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSaPy-0003fx-Ek for qemu-devel@nongnu.org; Tue, 25 Mar 2014 19:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSaPt-00089y-KA for qemu-devel@nongnu.org; Tue, 25 Mar 2014 19:06:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSaPt-00089n-Ch for qemu-devel@nongnu.org; Tue, 25 Mar 2014 19:05:57 -0400 Message-ID: <53317892.2050506@redhat.com> Date: Tue, 25 Mar 2014 13:37:38 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <33183CC9F5247A488A2544077AF19020815DA9BD@SZXEMA503-MBS.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF19020815DA9BD@SZXEMA503-MBS.china.huawei.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC]Two ideas to optimize updating irq routing table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" Cc: "Huangweidong (C)" , "gleb@redhat.com" , "mst@redhat.com" , Christian Borntraeger , "avi.kivity@gmail.com" , "Herongguang (Stephen)" Il 25/03/2014 04:19, Gonglei (Arei) ha scritto: > Based on discussions in: > http://lists.gnu.org/archive/html/qemu-devel/2013-11/threads.html#03322 > > About KVM_SET_GSI_ROUTING ioctl, I tested changing RCU to SRCU, but unfortunately > it looks like SRCU's grace period is no better than RCU. Really? This is not what Christian Borntraeger claimed at http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/118083 -- in fact, Andrew Theurer is currently testing a variant of that patch and I was going to post it for 3.16. Have you tried synchronize_srcu_expedited? Unlike the RCU variant, you can use this function. Paolo