Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1658003pxb; Fri, 20 Aug 2021 10:37:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5JkS18zc+llarJ/gwIdOdE5UpLUtQ4yy+cUc78A8YHm5eGmdiSm7L8kg1LrmamxsEECIb X-Received: by 2002:a92:2009:: with SMTP id j9mr14779043ile.108.1629481022634; Fri, 20 Aug 2021 10:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629481022; cv=none; d=google.com; s=arc-20160816; b=Ms1E4uRZjr7SlApaxcfaanyre3TJ9MBGOTZcJ+fdMGJeMaBdtp3bDRJML+3ejtuyVB VgiBewuNlNNUc/U0Ddj0GiwWMgJV5YX49m7pyBnzbM68fr0mx62pF7xECXKWpySskmuQ aUNF7PAUJ48MmK9XjJPfNRl6OPBsQ0RqcxTzcgJ7FWtHTSuKQKGfnWv78giQwg31u5IS +VXtBjSJ9+5ufG9z5BCzbOqYD4yIUufRcRL2gk1lNA24zS3pZFWglLUufnPyJy3+6O6f KFeqyg8rKCSebV+Wkzps/PFpIZCY1BCZESwVGTU0d6G1wIAuOTT+sr8ZoLM259H4G12s AkFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ra/7mQW79+c0tVxtuse8aU6V6XyXHtuoSW3joNYRlng=; b=AzRr1fN5DkC2EX4UOO9qxw1mZIRRqQHwjnFG/BPRrGb8zaaG0100TqheiCDG4CyKB9 9x1hk9SpYE5p2E/TssYDXGwBbISljzH3nXxmJUy5XhLV5J/jRD2n8NhTGVDUVEOxfP6u XypIlSi5xdnaSBq98Exx5XKcSN5b7SxKjNIG9y406hOmT/FCl2cKxxiBHc6Los5map+n Br/1rPBJA7PUpEt/a2vi19LCM3BteLCTyihSTKoHvjRwAajx7rOpCV34x8krZ1mTEoLq +Eg/TqJj5C/VM6iPhbsFj9uGv1hnCeW26/10PX3VVT7f0cwib+LH+4tccjxiACel4mwO X0Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gVbbTxnV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si6801465jao.24.2021.08.20.10.36.51; Fri, 20 Aug 2021 10:37:02 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=gVbbTxnV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234629AbhHTRfc (ORCPT + 99 others); Fri, 20 Aug 2021 13:35:32 -0400 Received: from mail.skyhub.de ([5.9.137.197]:51410 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbhHTRfb (ORCPT ); Fri, 20 Aug 2021 13:35:31 -0400 Received: from zn.tnic (p200300ec2f107b00196adb237f9ce365.dip0.t-ipconnect.de [IPv6:2003:ec:2f10:7b00:196a:db23:7f9c:e365]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D96FE1EC0589; Fri, 20 Aug 2021 19:34:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629480889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ra/7mQW79+c0tVxtuse8aU6V6XyXHtuoSW3joNYRlng=; b=gVbbTxnVt7SsxSFRW7lW/CZ2MJ8YrW1G19OVz5PnQzGP+/BUG/yN0Mz67sy1ty/4rl2A0P VB0y19VNMdrfFw4xAPm9zIhbx1dRRx7EUe4yin4ly07hFmkjJ24eCwKoSkdrHjKXq2XFu0 g/flruk96bX90jJoykhYUfUY6muA28k= Date: Fri, 20 Aug 2021 19:35:32 +0200 From: Borislav Petkov To: "Kuppuswamy, Sathyanarayanan" Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 06/12] x86/tdx: Get TD execution environment information via TDINFO Message-ID: References: <20210804181329.2899708-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210804181329.2899708-7-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 10:31:10AM -0700, Kuppuswamy, Sathyanarayanan wrote: > It is used in different patch set. If you prefer to move it there, I can > move it to that patch set. Yes please. > I have already fixed reasonable check-patch issues. For this case, we > want to use BUG_ON(). Failure in tdx_module_call means buggy TDX > module. So it is safer to crash the kernel. Ok, put that as a comment above it to explain why it cannot continue. Also, make sure you issue an error message before it explodes so that the user knows. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette