Received: by 10.213.65.68 with SMTP id h4csp1340932imn; Wed, 14 Mar 2018 18:01:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELsV/DCWBJBonn12tEPLNcw0AgHlEAFhefq5AxUX7KbgVPmhgVKXpBAJtttcEOobwwVlmG8f X-Received: by 2002:a17:902:a611:: with SMTP id u17-v6mr1944343plq.373.1521075677834; Wed, 14 Mar 2018 18:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521075677; cv=none; d=google.com; s=arc-20160816; b=qcjPgRMWSzlcNo5GdxupKuvc+HYJGxbqPnVii3Hi0ZfGQ3YeAAjKxTUwWohvO3KEq5 W25rGnzIUirs+/eIq4c15FimJgzjPIXrwdGFaWgIn3XAoArHYsGNqApID8NNqf7XYysS 5W5flOllYuQp8W2HGgPUMaYmQUrBRCjJrKLb57VkbRhEArD7mFkci/waqr9nH5lLlM1W vk+OieXSmxSw22kEptUwDUh/ChSXXFUyW+G/xVmHCgHKxAioydI2RfFYKcGNt3/IpDk0 hOZG8eKES2J6g+pF36JMo3WDH4Cn7vWYYZc9qjtVkywxQ2wIiLPNzZ5GkFHXa4nZzxrf /SBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=qz5hAn2u/hgLcp3ViffJ93qT0ijHrcsI0F6gzzlQnlk=; b=WPJdEKjEKpb4ybUvTrK4LHs3ndUNIpwK9wWr8uPpEW0+vv2EJo1AlSsE5Lrb/1jcpJ oxz3pyQh6gDEMu9KNfodHJmiaKSgYJU+Ea9RihggVNiSNiw8xN/bmFWyUFghgBVyhxx7 izyst6fynfbClXaCh70rdNZTAro7XfM8Yy/ebF9BhTGgQX/vhnOWmrCvKqhOw8Wz/u/F 9WdMl99oKwNhogRVV5KDm+sJQQjhL1fBQQ4CxcuJ8jI131VPjde74rGhkV6oy3WSwG4a Nf0TL8x+B1Ui0CUGcwQE4avyIPZsYNYhau+0Grzb4fiKK/YR78TQ3INeI8Nqt1KnM2tF n/1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33-v6si2857401pld.653.2018.03.14.18.01.02; Wed, 14 Mar 2018 18:01:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751753AbeCOA76 (ORCPT + 99 others); Wed, 14 Mar 2018 20:59:58 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:55672 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751440AbeCOA75 (ORCPT ); Wed, 14 Mar 2018 20:59:57 -0400 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ewHFK-0002to-PF; Thu, 15 Mar 2018 01:59:54 +0100 Subject: Re: [PATCH v3 3/9] x86/microcode/AMD: install_equiv_cpu_table() should not return (signed) int To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org References: <20180314175824.GG16605@pd.tnic> <20180314235812.GB11061@pd.tnic> <21fe4521-0fc7-c5ed-5a2a-4c7e93097385@maciej.szmigiero.name> <20180315005634.GC11061@pd.tnic> From: "Maciej S. Szmigiero" Message-ID: Date: Thu, 15 Mar 2018 01:59:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180315005634.GC11061@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.03.2018 01:56, Borislav Petkov wrote: > On Thu, Mar 15, 2018 at 01:13:07AM +0100, Maciej S. Szmigiero wrote: >> This can be done if this function is modified to return only the CPU >> equivalence table length (without the container header length), leaving >> its single caller the job of adding the container header length to skip >> to the fist patch section. > > Sure, it leaves the function to deal with the equiv table length only > and the caller then adds the header length. Which is actually cleaner. > OK, will do then. Maciej