Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2601580pxb; Fri, 8 Oct 2021 11:03:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKgL/AnX3otDf5e0SciAPrG9hhiNRTEu5rAkNNq2hv0MVDzGfOTU7D4M/MwllQjZYgqZiN X-Received: by 2002:a50:d98a:: with SMTP id w10mr17015531edj.120.1633716185945; Fri, 08 Oct 2021 11:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633716185; cv=none; d=google.com; s=arc-20160816; b=drmtIoLTPS7B4ufNhmTthlEr1N74VLGh3wDRPCosWK0qRu/ax5UFeP/YecZytj8AZp N7sa5wYpngklatBT7H06ikWS25Q+qMw6dEWrlKn4tNnXKpphlpCbqF+BnoVZWq83awBp JfgeNeMDdZhsKell6DLtuweKxbnndTeOFNlQB+2YgKKfWyZickx4VCzJBOxHRngSHnov 4PCKKeuQMT1Oxi+8NB9m01b2smjm1Y3wmLkY9R44lELrtl7r9ncFblEmrCBIoBzo9svy Rw74iLNk0KYiID1iOKgLAS/B+20/rrFDdai2DZNNJda+LcUnbsAOMMikFAScX+bDXuUG sMBw== 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=ZZMTo+qBT6VYeI+pvdbzUUz7nkXxSCvagxQ3P3Mfw08=; b=dBi883xH48PiFH34GnxLKQO+zt8rVUfmD3yIlhPJfvBiLDM+WWPGay6SzqWqREunTB J7J0sm2eGZfZtZGIyxGKFLeRaMqA22Q6F4LAX9oyMFNKHDNiOHdNGa1djXLO1tuWgcIy 6qneQCrCVPC7aGrAAtoW/vuTX8xo1LG2qS/Zql7Tzi2gbTvWZtppQXixjck4eH/wR3+z 0lOBJhRmo9pZCcPD/Q/RyZ0vnYkqyE5KIdw8yJNTgg8KCFNt98/ZkIg8uvsozrI3FQbl iP79RGdOQDc+PyZYIuiHn7Qk6flDVH+5HXWHrpxwi/wNFZ/HNeShpLaIKMyuTkd1XxL1 Lt5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=YKu20P67; 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 nb40si165119ejc.323.2021.10.08.11.02.40; Fri, 08 Oct 2021 11:03:05 -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=YKu20P67; 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 S239061AbhJHSBo (ORCPT + 99 others); Fri, 8 Oct 2021 14:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbhJHSBn (ORCPT ); Fri, 8 Oct 2021 14:01:43 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C872DC061570 for ; Fri, 8 Oct 2021 10:59:47 -0700 (PDT) Received: from zn.tnic (p200300ec2f0d56005271a08b055a2ed3.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:5600:5271:a08b:55a:2ed3]) (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 49C131EC04BF; Fri, 8 Oct 2021 19:59:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633715986; 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=ZZMTo+qBT6VYeI+pvdbzUUz7nkXxSCvagxQ3P3Mfw08=; b=YKu20P67MvmuVcqwjFHCCtxevAk0uaoELvYmat0JWOrdp7y008Sz94EQoiWA2WJurmWx90 XNk0bBIBjEQ15aF+vtWDqhKvDCz0A0jCVfwX86kIiXzDKTearK791N5i5ZWEDms4nRGIxc UDcOEIJzy9XoBZoQZr3wsyU9qZFkEZ8= Date: Fri, 8 Oct 2021 19:59:43 +0200 From: Borislav Petkov To: "Kuppuswamy, Sathyanarayanan" Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Josh Poimboeuf , 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 Subject: Re: [PATCH v8 07/11] x86/tdx: Add HLT support for TDX guest Message-ID: References: <20211005025205.1784480-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211005025205.1784480-8-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, Oct 08, 2021 at 10:38:22AM -0700, Kuppuswamy, Sathyanarayanan wrote: > Yes. As per ABI, I don't need to clear it. It will not be used by VMM. > But since that register content is shared with VMM, I tried to keep the > unused register values to '0' (consistent with other hypercall use cases). > > I am fine with removing it if you think it is unnecessary. Yeah, you probably wanna clear it after all, just in case, as Dirk says. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette