Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1419186lqh; Mon, 6 May 2024 07:16:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKMYOSP6mwQhuY/YZ83VprlKNFsbXHzywPeSbyVGElWAg3iJH36Eyth7m3hXGEwNwAr25iynin4W8B9mPc4EDGYArhbSeOblUKTFAN5Q== X-Google-Smtp-Source: AGHT+IF5P+7Rux4pJYnk/oJ1warOF691+yhOCWz/SwdQ6rlwwFCvpvj7ZFK8BGqJivKnX/jO0pI4 X-Received: by 2002:a05:6a00:1799:b0:6f3:ed26:e4f5 with SMTP id s25-20020a056a00179900b006f3ed26e4f5mr12464953pfg.7.1715004978516; Mon, 06 May 2024 07:16:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715004978; cv=pass; d=google.com; s=arc-20160816; b=GgbM/WArsCBZ5QtR+ixgNmudkFDp63LYzNhNNZLQ3vZ6a2xeW/P4doDXaSOFu1dM9m pniVEewR4zPetV8Hd3se1AAoChmhKiUVZzLxvvB3sARrWOhmBUv7YeasMgphIlwCIEnf 8NaVEDgrziiqKfZNIiE2ivtjy4mvCWOj8OFalbBHcFVUlGzDBEZ0aP5IvXDTPchb++6g 7aQVV8Pv/MniBYmeVcZt+GuLlNjv4esk8cozfA2J/eN0G8b0kaOV0QLUTLhqglt2/0OZ yWzaGD5h/XIgxirqz/BWsP83d1Oyt6zYnqKWZJ9p1EYFN4vdNm0rWW7tur4CRncgCbRN Va/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fL0jWz0y0MdKTiR0U8jxUn73zBq9bUhbVTopKlDLfd4=; fh=yOXSm0E/8tOfmRnhk0JfE6MKLQieMwDr2DHng9Fw+Y4=; b=BdVW17QozTvjbWa32Y992foZbpy0KTeak1t9Ay9NCLO4+S8lVa9oPShiyA1txaIe2Q GASt16rgX21oJiI7dX65mo/CwM6aAk4NgIToKFZyUAEyimfhvKvAYHnAbEQVxPNdpCRS pWN2mMx4VGq80PiBe7sALhkMLkqV4qoJj7wQkdN0hrso1gC2p/GQAyoQjlEVVkzepQJt kjlkPcloeXoYI47xyp7jB3UqcIehntI8HtgwRdnjjqNHiyD6e+KmGBsboadX13Vlf6Mz rcmRSkSbS8T2TTyVLxJBPW46Do50MaRvfBIdG/G9JTt0T6uEv+PPkPhKdQLqZlpblxIX MaKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=G0tlY3Vz; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-169954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x23-20020a631717000000b005f0c099b6f0si8524444pgl.87.2024.05.06.07.16.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:16:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=G0tlY3Vz; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-169954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B444E282EA6 for ; Mon, 6 May 2024 14:15:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDBD513CF8F; Mon, 6 May 2024 14:14:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="G0tlY3Vz" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B56A13BC04 for ; Mon, 6 May 2024 14:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715004895; cv=none; b=eSvaJ04QZgMxeSzy2A8k67Goid8wo+2rpDVhewBwq9L1QTZccRSk7lxLspgsJcDIFy8IvMwUsH36h6B0uCq3oItSZCyhAj2YdKu0TRhBjGrG7tMiTY5QC0sx4ukDhns7WyJRE4y/6ijHxlb45oSt4+K0/Ex4fWhCyXZ7+KvlzQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715004895; c=relaxed/simple; bh=o3khOYd3PwvSQuTqNQGOIWO5Gc4L0D6qdPe8N/HPXaU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aqgHcS+8JleNUrZMip104y+lv1vQYPmXNOhdcEKabVu3JFs+VgE8Of2lB6SXDBQQDPRQFuxCwhaUCA/OSujuNrSyYMr0ixIEEpHe+Ji/baFukkZkMNiZXQuO/J5gEsNGxmRwx3xofdUc/Bmb+f5vNGFLXKJWQEz/PrH7frkSEHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=G0tlY3Vz; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 721DE40E024C; Mon, 6 May 2024 14:14:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id R3fD3o6YRpqj; Mon, 6 May 2024 14:14:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1715004886; bh=fL0jWz0y0MdKTiR0U8jxUn73zBq9bUhbVTopKlDLfd4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G0tlY3Vz5Xk6BIUXL6VJT6blz9r12hsvfG4elX4H4AzRdPrFwRYyZUlDg1rbozuhZ 4UWPvtgiZY7Yu6tDYoLgrh0QYcwCFXtRN6qYq5FgrJ2/uWCN5dmYQP2QR9lKlOyaDI xvncVN/sbMcKtIScUkCOkJrbE1Xhgn4tufWkkfviqJNQan2qijp90xTkaEFih55Sci it8etOB4NTMeWG24XemazBZb024RkQAEFK+0nvhLucPqxCte55SHlURN0eMGttLsFn F5XWDudwGUdPNvkrbAZpWyqDKEuSeknRGIV4/Uc9UE7APc+wZHyTSxC/HiNNjIfhES xwnE4Z2w9TKlXNbvUVAOqTbuNLdwaxZVaQF2Unr7nGExI+kmAv9aA65MmS8xlTGa0K 9kHd0936W2XxOwnBjP2EebQyQaGniA1xBBpd6oI7zxoefmBOcbRUDfb/vu4TdXkCmy bupelxG5AOqatUKS8+x5jeCGXNg8EMZ/iQ4XUtfqU2BawEFZ0VRQbtApYU9dkATkUW mNO0kwRrEyRaB+alkZSCtQGD5DFsaSUm3RSKwSWHGVSt77BYOBMPn0cJ2YvgLfG6tw bE0USZunZvpA9d1YD9RQM6HRaafFiSHJlj8crUDXBke48o5XAeDp8SItWd83sv3+Kf UKJ7ZgRm/pts2Rd6t6N+Sb6E= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C4A2440E0249; Mon, 6 May 2024 14:14:31 +0000 (UTC) Date: Mon, 6 May 2024 16:14:26 +0200 From: Borislav Petkov To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-coco@lists.linux.dev, svsm-devel@coconut-svsm.dev, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Dan Williams , Michael Roth , Ashish Kalra Subject: Re: [PATCH v4 05/15] x86/sev: Use kernel provided SVSM Calling Areas Message-ID: <20240506141426.GJZjjlwuQryahOmSJS@fat_crate.local> References: <07266b47e749267ef9a9ccbc9e8e9df78ed54857.1713974291.git.thomas.lendacky@amd.com> <20240503103407.GSZjS9n-XMMKi5ZOek@fat_crate.local> <20240506100905.GFZjisQTQwbkv2eKsh@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Mon, May 06, 2024 at 08:14:34AM -0500, Tom Lendacky wrote: > This isn't quite right. The xchg has to occur between pending and > call->caa->call_pending. Right, you can fix that up in your next revision. :-) I only wanted to show the idea of how to make this a lot more readable. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette