Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752318AbYHKOPY (ORCPT ); Mon, 11 Aug 2008 10:15:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752672AbYHKOPI (ORCPT ); Mon, 11 Aug 2008 10:15:08 -0400 Received: from il.qumranet.com ([212.179.150.194]:14876 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752337AbYHKOPG (ORCPT ); Mon, 11 Aug 2008 10:15:06 -0400 Message-ID: <48A04968.7000805@qumranet.com> Date: Mon, 11 Aug 2008 17:15:04 +0300 From: Avi Kivity User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Gerd Hoffmann CC: Jeremy Fitzhardinge , Glauber de Oliveira Costa , Marcelo Tosatti , Linux Kernel Mailing List , kvm-devel Subject: Re: Use of barriers in pvclock ABI References: <489CA3DA.1090400@goop.org> <489FE56E.1080707@redhat.com> In-Reply-To: <489FE56E.1080707@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 33 Gerd Hoffmann wrote: > Hi, > > >> However, the pvclock_clocksource_read() implementation is >> over-engineered, because it checks for an odd version and uses very >> strong rmb() barriers (which generates either an "lfence" or "lock add >> $0, (%esp)"). >> >> If we're happy to guarantee as an ABI issue that the record will never >> be updated cross-cpu, then we can make the barriers simply barrier() and >> just check for (src->version != dst->version). >> >> Is that OK with you, or do you want to leave open the possibility of >> doing cross-cpu time updates? >> > > Due to the TSC being involved here I don't expect cross-cpu time updates > will ever happen. IMHO it is fine to change that. > > I agree. And if we ever feel the need, we can allocate a feature bit for it. -- error compiling committee.c: too many arguments to function -- 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/