Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp765503lql; Mon, 11 Mar 2024 17:51:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZk5qSnuI34tX+XSl4ztdRECYayHrmJYHFGSsfLUSm0i86lUiNrwZWPjqt4f3XpwzTEajqOaubsL7/4yDcjIVEGEeR3vMDdPLysr33zg== X-Google-Smtp-Source: AGHT+IHaJTVwM6TWwyjFcRM2DGUEdwtxoBEUmUN1N0VHLMok3Mj1dfb6c0uKybDmY5ceAi6vcibM X-Received: by 2002:adf:e84f:0:b0:33e:78c2:ce7b with SMTP id d15-20020adfe84f000000b0033e78c2ce7bmr4884556wrn.34.1710204677902; Mon, 11 Mar 2024 17:51:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710204677; cv=pass; d=google.com; s=arc-20160816; b=IM0PNI7fAqzq+xVI35dGWb4iDdvfKUidP7pvEeIoanRQ52YxEE/HfqRt/UhQ09cQOU dr54TFwOCQeIrGNPwJ4JYjzZtECV363A5xhzvjzhHj5hXn9ODtv8/fYDgZXAZP8e73wY spxCuvUfWX/gIYFP5vLjnpePxVmZqz029a/aBv3/sip6vdijQqoMJMOTPPNEbHrxc/L8 i9ghzu9Ps+2KhPdnehIuJ9swRBI0nyj+4jCNIUf5NildiYuFC62cNsFDHst6ctY3RYyg wcGzMpnDdXtEcG1D+YHXpEoRe7N6ScZC4N9sHYjDypdVVC9rssaVwl3eRjX1nA9+FIZN hTpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=x2NX9NOb8w5OYlJABNw8QS2FIfeKbdgR8st5EaZjrGU=; fh=2bzGtSPWp5O0EPtDOvZYbcB7kjEyawvX5H0cLGIr1aM=; b=Z0TeePPFxzdfn9SZJG7sBBfXz/RY4y2XCOXgkGyTgXmgmGaaJcTEWd7yJRSRF8ZDqY MdUjaIqms6n2L53auyF28vXag7n7HNPFJRKXDdjYoCUR4N1AMFiEYyw/PrR0hmHlnK84 5sIFQJqKyk2mmmh2Msvq/tveoIePpZl/ALLhzY9bHqQGHut2N94pIrnmcfXolZsYfb5u qtwkfygYv3FhzdWHTjdd5SN70eLGGyZHkVakJZ9l6t9ELecC8lTRDhzu8sQCWcCD548c u7KjP+dV1eNoCdd5orVxs86Jqke7t4i1dYpdVyUdV/c+DFS/sTTcEgARVv1hWL+e8q4S 7DLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DvLTzMyQ; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-99707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99707-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y64-20020a50bb46000000b00563ea13eaf1si2973253ede.400.2024.03.11.17.51.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 17:51:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DvLTzMyQ; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-99707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99707-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5F51E1F228F4 for ; Tue, 12 Mar 2024 00:51:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A070ECC; Tue, 12 Mar 2024 00:51:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="DvLTzMyQ" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C568363C for ; Tue, 12 Mar 2024 00:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710204670; cv=none; b=bjtazg0nT/FGg8OBvpww3fytK/bdRCYu4iX61M73D1NohWGM8TqVqfe/+hLUvS/GXSP0LFsCv5O60QgL0R9MhYHCWux9SYYsOPM0uzuhRuNlPNL/c6k6+4lLWh11i5dSEUJQVd8RpcCoT4qMhSLQJz1sEj3NYTVBSgcdHjNFKNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710204670; c=relaxed/simple; bh=TVu2ddHW7OJntidPfkdMAn03h9H8bWXdC69rdaRrpoo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GhCfT104MAMgtLU3h+DkwGIfajgBx9IbvUQRMmxnZj5M6MAr3TIIDTXo1lGbw0csxPMfhU6LCGpEOhvkVbWN3igVMW7CoZToZP1ypluHWbll7LyTwpPvwlW9Tp8pCBclTnFjO04LM828CYIshpaKljXif3O+cIGe3y/dpFtrBv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=DvLTzMyQ; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5682360e095so5852686a12.1 for ; Mon, 11 Mar 2024 17:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1710204666; x=1710809466; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x2NX9NOb8w5OYlJABNw8QS2FIfeKbdgR8st5EaZjrGU=; b=DvLTzMyQ0gxNKkvbPAOS6eAf/mlc+n1ImktLnqUBEaPfC6j0VRaHWq2dXiMGl4nCYI Q9SqudX1z3BlFsDbZ+Ereqg7ujAnNM9CExzSY0XbryzxrUajXQBy4Me1oOPgEWG8Ldcq b5Q4x27mEw6mKydb9na9NkvsMQSV0qGEev3xc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710204666; x=1710809466; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x2NX9NOb8w5OYlJABNw8QS2FIfeKbdgR8st5EaZjrGU=; b=fWQodDmAuow7R9IssudpDzH9F3WUJJMpKBY8VO4k4IOuwW9ngsUTDJtvKEDn7OK3Di WpvIVesfze58/D/YK9Jx3XypvA+ZcLRPeSC4UW/kXgig6Y5keJgHJhl2VikN1fjb6G3f EBtsa9Olvi2Sq+cZTdMgmjnZ3uDuAhjAORtOXyDEMYJIUO+8To4P8TUmYX8ls/L6qKDh Hr5eaYsvNYFgB2lgj5ozhviKE2LX78QziE+NgQLzIyt0SUccsPoBzNYsqhT7BQq8O6mt ifTkS+3Xh4TUYaQD1rRgcX1M6aj8dPvERm9/YrVAILaBtYkTvb4C2/Ge0BZOJAu2h9gV jRiQ== X-Forwarded-Encrypted: i=1; AJvYcCVftWrlDPzcB+DOJytMdKmJE9cGys8N4E/jkWssq/OIU1Xsr4aXX4EBN9p8Ipk0gqD97vXY+2YtE6tcAY49iXpHJMPA/e0cZ7J4qWVD X-Gm-Message-State: AOJu0YxSl8BIElqdcJB6UCtZvjxh9Z9sxMOKrdCYE7b/vv7KfnDAqmN8 g5I1wjP0v+ZOLwex6DMLdy49bEwkbbN+Bqfwxk1l8IJSglOpzOsvs+xgJ62TS8FC11Iy83peMXt gz2Mpcw== X-Received: by 2002:a17:906:ac5:b0:a45:ebdf:b071 with SMTP id z5-20020a1709060ac500b00a45ebdfb071mr4951612ejf.35.1710204665740; Mon, 11 Mar 2024 17:51:05 -0700 (PDT) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com. [209.85.218.41]) by smtp.gmail.com with ESMTPSA id ae1-20020a17090725c100b00a45ffe583acsm3208803ejc.187.2024.03.11.17.51.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Mar 2024 17:51:05 -0700 (PDT) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a4417fa396fso348198866b.1 for ; Mon, 11 Mar 2024 17:51:05 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWinucJCzVXIAb3wc7AJsbbHdwocwfn032hdymn85Jzq0u8PWCItwLraPgDu96QPco1nCBwke1kMndNmubVSmGxWoZLXQ93gyX+yGzB X-Received: by 2002:a17:906:ac5:b0:a45:ebdf:b071 with SMTP id z5-20020a1709060ac500b00a45ebdfb071mr4951594ejf.35.1710204664861; Mon, 11 Mar 2024 17:51:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240311151909.GAZe8g7SqDKRcP4XrO@fat_crate.local> In-Reply-To: <20240311151909.GAZe8g7SqDKRcP4XrO@fat_crate.local> From: Linus Torvalds Date: Mon, 11 Mar 2024 17:50:48 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] x86/sev for v6.9-rc1 To: Borislav Petkov Cc: x86-ml , lkml Content-Type: text/plain; charset="UTF-8" On Mon, 11 Mar 2024 at 08:19, Borislav Petkov wrote: > > If you're merging tip pull requests in the chronological order you've > received them, you'll encounter a couple of simple merge conflicts. It's not exactly chronological - I tend to go by areas and by submitter, but it tends to approximate chronological most of the time.. > I'm adding how I've resolved them at the end of this message in case > you wanna compare notes. Hmm. I took a slightly different approach: > diff --cc arch/x86/include/asm/coco.h > index 76c310b19b11,21940ef8d290..42871bb262d0 > --- a/arch/x86/include/asm/coco.h > +++ b/arch/x86/include/asm/coco.h > @@@ -10,9 -11,15 +11,15 @@@ enum cc_vendor > CC_VENDOR_INTEL, > }; > > -extern enum cc_vendor cc_vendor; > + extern u64 cc_mask; > + > #ifdef CONFIG_ARCH_HAS_CC_PLATFORM > +extern enum cc_vendor cc_vendor; I put the 'cc_mask' declaration inside the #ifdef too. Because those two variables are defined together, and without CONFIG_ARCH_HAS_CC_PLATFORM the whole coco/ subdirectory that defines them won't even be built, as far as I can tell. And I don't see any _use_ of 'cc_mask' anywhere outside of that one 'cc_set_mask()' inline function and the coco/core.c file. So declaring it only when it's all enabled seems to be the right thing. Let's hope my artistic merge resolution doesn't end up coming back to bite me. Linus