Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755451Ab2K2VUU (ORCPT ); Thu, 29 Nov 2012 16:20:20 -0500 Received: from mga02.intel.com ([134.134.136.20]:26086 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753602Ab2K2VUT (ORCPT ); Thu, 29 Nov 2012 16:20:19 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,186,1355126400"; d="scan'208";a="249437813" Message-ID: <50B7D180.9090605@linux.intel.com> Date: Thu, 29 Nov 2012 13:20:00 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Linus Torvalds , Linux Kernel Mailing List , Mario Gzuk Subject: Re: [PATCH 8/8] x86, cleanups: Simplify sync_core() in the case of no CPUID References: <1354132230-21854-1-git-send-email-hpa@linux.intel.com> <1354132230-21854-9-git-send-email-hpa@linux.intel.com> <20121128204158.GC14635@liondog.tnic> <50B6A8F3.5000407@zytor.com> <20121129091317.GA21084@liondog.tnic> <50B7CE4C.80201@linux.intel.com> <20121129211856.GH30789@liondog.tnic> In-Reply-To: <20121129211856.GH30789@liondog.tnic> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 25 On 11/29/2012 01:18 PM, Borislav Petkov wrote: > On Thu, Nov 29, 2012 at 01:06:20PM -0800, H. Peter Anvin wrote: >> It doesn't matter in that context, as the surrounding MSR references >> have barriers, but what I'm refering to is the "memory" barrier. > > Ok, but the only difference between the two versions is this line: > > movl %esi, %ecx # tmp144, ecx > > coming from the cpuid_eax() function. So the memory barrier is the same > and in the right place in both cases. > In the case of that one call site, yes, because the MSR references include the barrier. Other sites, current or future, may not have the same property. -hpa -- 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/