Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp438194rdg; Thu, 12 Oct 2023 09:47:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmrVGK4m9cGeQoae5nzvNvblmMipcO4Jm3Ruz+hUYXWz3CjELElou0f9bfZYcvFU7rJHav X-Received: by 2002:a05:6871:606:b0:1d6:790e:ddf8 with SMTP id w6-20020a056871060600b001d6790eddf8mr25094015oan.5.1697129229456; Thu, 12 Oct 2023 09:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697129229; cv=none; d=google.com; s=arc-20160816; b=MPF9zlftrjn8C3tUAV9srohf9+SHwz7MX3KIP5oHZ0mliNCIOI4oxIwoHJe07oxfYc Qlo8gfW0eaqNvR2wSISLfO3zYMZA7JitkxAM+5Kth5ldm6avOUYyhHsyMnk7v5rGYbA9 JiKLR9Nb5GurJBN78VtSsSVqbDrY/bDrjIEw2crceMJOYIMG2nsXOrlSFqTvNAee+dX+ tqZPxgkXkwpaEFdnSRYSB6xKg0o1pQyK9hhozJuBfNlNWXItlGUWkLe1c/GJmQ4dHVFP J4UoKzzI0XG48ZKVZcGOH3IEIouQUQugeI9ZG+SBRJ66VrWDB1kpvxVWb1rA+qmbcPKV pxAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:subject:cc:to:from :date:mime-version; bh=1JFerVNNZX1RWPhVfinweRxP/SUFWpaYaN1SAkAvEy4=; fh=Xw0maUcxv4jsI+eiOrrq36nJ/PUVUz8EOySn1Bs+wS0=; b=B4K5QHSUPeA4vwF/UU6iEJO8CFMumIQEKJIePjE/w/8hhTeOtqGrTpmszIjAK0vkkb K5XwxnRrZ/LjTfUHOuo+h1Y/gO3NADhPjcoGAa0ImIyDl3js0FaPsiiWodk6od2VxNg2 jo4+lGh1FreRdzy4sbi5MlT6A1kAneQ28FYZncl5fv+p1slsceOPZjsDIU8DEl0APD0O bro9OwrpIdLLIfLIjIPaU9hr7CN/OspHDydQ1YSsiFTfLaWOCR7u5VYxq6b6LErykrJ2 o/2ZRzM1s5zhDuC7iUn+GS3vQkDi/K+Yhnb7wt0ZQp/O2MjAwea9mi67yCqIU2MTrc0S 5EEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v64-20020a638943000000b00578b8016c40si2685065pgd.93.2023.10.12.09.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9C22D8072808; Thu, 12 Oct 2023 09:45:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347344AbjJLQpl (ORCPT + 99 others); Thu, 12 Oct 2023 12:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347324AbjJLQph (ORCPT ); Thu, 12 Oct 2023 12:45:37 -0400 Received: from 13.mo561.mail-out.ovh.net (13.mo561.mail-out.ovh.net [188.165.33.202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07AB1C6 for ; Thu, 12 Oct 2023 09:45:32 -0700 (PDT) Received: from director9.ghost.mail-out.ovh.net (unknown [10.108.1.232]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 2CC9C2651C for ; Thu, 12 Oct 2023 16:45:31 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-jv9cr (unknown [10.110.103.4]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 6E6861FE1E; Thu, 12 Oct 2023 16:45:30 +0000 (UTC) Received: from RCM-web5.webmail.mail.ovh.net ([51.255.71.60]) by ghost-submission-6684bf9d7b-jv9cr with ESMTPSA id +UL6GaoiKGWgTgEAl0SSeQ (envelope-from ); Thu, 12 Oct 2023 16:45:30 +0000 MIME-Version: 1.0 Date: Thu, 12 Oct 2023 16:45:30 +0000 From: =?UTF-8?Q?Jos=C3=A9_Pekkarinen?= To: Paolo Bonzini Cc: seanjc@google.com, skhan@linuxfoundation.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH] kvm/sev: remove redundant MISC_CG_RES_SEV_ES In-Reply-To: <9faf1a1a-af49-5f6f-9f33-6cf57f884c44@redhat.com> References: <20231010174932.29769-1-jose.pekkarinen@foxhound.fi> <9faf1a1a-af49-5f6f-9f33-6cf57f884c44@redhat.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <6a777c72a6dc15ad80ecbedd4c6c35d9@foxhound.fi> X-Sender: jose.pekkarinen@foxhound.fi Organization: Foxhound Ltd. X-Originating-IP: 109.70.100.71 X-Webmail-UserID: jose.pekkarinen@foxhound.fi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 2497808946033305254 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedriedtgdelgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeggfffhvfevufgjfhgfkfigohhitgfgsehtkehjtddtreejnecuhfhrohhmpeflohhsrocurfgvkhhkrghrihhnvghnuceojhhoshgvrdhpvghkkhgrrhhinhgvnhesfhhogihhohhunhgurdhfiheqnecuggftrfgrthhtvghrnhepkefhgeduudefgedvleegtddvffeghedvtdekveekjeevvdegiedtfeelhedtiedtnecukfhppeduvdejrddtrddtrddupddutdelrdejtddruddttddrjedupdehuddrvdehhedrjedurdeitdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehjohhsvgdrphgvkhhkrghrihhnvghnsehfohighhhouhhnugdrfhhiqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheeiuddpmhhouggvpehsmhhtphhouhht X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 09:45:54 -0700 (PDT) On 2023-10-12 13:43, Paolo Bonzini wrote: > On 10/10/23 19:49, José Pekkarinen wrote: >> SEV-ES is an extra encrypted state that shares common resources >> with SEV. Using an extra CG for its purpose doesn't seem to >> provide much value. This patch will clean up the control group >> along with multiple checks that become redundant with it. >> >> The patch will also remove a redundant logic on sev initialization >> that produces SEV-ES to be disabled, while supported by the cpu >> and requested by the user through the sev_es parameter. > > In what sense is it shared? The SEV ASIDs and the SEV-ES ASIDs are > separate (and in both cases limited) resources, and therefore they > have separate cgroups. Nevermind this patch, after a painful bios upgrade I got sev-es available in it, and I was able to launch some test vm on it, so this may only be breaking things. Sorry for the noise! José.