Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5100708pxb; Tue, 5 Oct 2021 17:51:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSBKufVfrfvjkOJf1fvA4TGSRuyG7glzo9/Mz9qNMnJjw8qMOycOo3W1+Q2dwHWo7YY2v0 X-Received: by 2002:a17:906:1289:: with SMTP id k9mr29196070ejb.2.1633481500830; Tue, 05 Oct 2021 17:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633481500; cv=none; d=google.com; s=arc-20160816; b=bYsDHmNndpXHl4e2bj1iAsUkMDg0788f6O9HPiQjLFI6TwyFdE6BwKX3I6KI9SxImQ SUXA8m0xDhHbbATInF0c867y3pLjutj31eZDFph+2Xjy2jkzDaPUTMo5TK/IHHbGMV9s hqLf4LpgWUNwtmpuivf7r29By0IXCUr3bIp5XDvLwUHoJ73CZAezSB8EWOvCFBVXnOUz xNyxwFL0q1pYt8+F5rV1cub/1xXxOLRSQS3OCqTZKoCswzOZina2qRjS3g2COWFMJiEI NTFHzVbnDcTu2IWX5IK60HCtEcHmjiI46unQQ002Q8EhSU9ThgxZrDWHfChZgHQWsHDm mU0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=CLNai44Lsfe7rK0qe8ijcyCIJeqwzUKanruB34XiNmo=; b=VIkwedS/gV+Q4O+Qecq1eD6ub7fM29Y6gEB1StWJPkbhhgdRxFxEoxJtLZZEitdhu2 cPcERFVm4eK3Em+oH9RrIRCc6/LcY8/K5VAguc+fHwE4hGtRy6k3/v+pFEcCSvf1UnLS NQkIAxCDat68gimB7h8E0enCUwga90Dwif565teWP0Y4RfGYdT4FnevBk9vTdOqOgQzC t0tf6/oScJUle6I5uCnCy1UccMJ+PYXaIrz8itupo9SkToJHmNUSxutaoTdQDyZrBA9f Qs/UehXbvm2qUVhwe2wrt2rYqWcbq7UTVJJ1yT9k4lMe0om1zHuHL4G9tonc68PVE+LV y1Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si3262949ejf.524.2021.10.05.17.51.14; Tue, 05 Oct 2021 17:51:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233994AbhJFAuw (ORCPT + 99 others); Tue, 5 Oct 2021 20:50:52 -0400 Received: from mga01.intel.com ([192.55.52.88]:56785 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbhJFAuu (ORCPT ); Tue, 5 Oct 2021 20:50:50 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10128"; a="249162348" X-IronPort-AV: E=Sophos;i="5.85,350,1624345200"; d="scan'208";a="249162348" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 17:48:58 -0700 X-IronPort-AV: E=Sophos;i="5.85,350,1624345200"; d="scan'208";a="477916976" Received: from rriesen-ivm.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.209.35.74]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2021 17:48:57 -0700 Subject: Re: [PATCH v8 09/11] x86/tdx: Add MSR support for TDX guest To: Josh Poimboeuf Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org References: <20211005025205.1784480-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211005025205.1784480-10-sathyanarayanan.kuppuswamy@linux.intel.com> <20211005232209.ozugpocq2cvx22li@treble> From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Tue, 5 Oct 2021 17:48:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211005232209.ozugpocq2cvx22li@treble> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/5/21 4:22 PM, Josh Poimboeuf wrote: > This fails to build: > > arch/x86/kernel/tdx.c: In function ‘tdx_write_msr_safe’: > arch/x86/kernel/tdx.c:135:22: error: implicit declaration of function ‘tdx_is_context_switched_msr’ [-Werror=implicit-function-declaration] > 135 | WARN_ON_ONCE(tdx_is_context_switched_msr(msr)); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./include/asm-generic/bug.h:104:32: note: in definition of macro ‘WARN_ON_ONCE’ > 104 | int __ret_warn_on = !!(condition); \ > | ^~~~~~~~~ Sorry, it looks like the removal is split across two patches. So I did not catch it in my compilation test. I will fix this and repost it. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer