Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 846BEC433F5 for ; Wed, 27 Oct 2021 15:40:27 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4029161039 for ; Wed, 27 Oct 2021 15:40:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4029161039 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.217082.376924 (Exim 4.92) (envelope-from ) id 1mfl29-0002qC-TZ; Wed, 27 Oct 2021 15:40:09 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 217082.376924; Wed, 27 Oct 2021 15:40:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mfl29-0002q5-OE; Wed, 27 Oct 2021 15:40:09 +0000 Received: by outflank-mailman (input) for mailman id 217082; Wed, 27 Oct 2021 15:40:08 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mfl28-0002pE-OC for xen-devel@lists.xenproject.org; Wed, 27 Oct 2021 15:40:08 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mfl28-0006bC-LK for xen-devel@lists.xenproject.org; Wed, 27 Oct 2021 15:40:08 +0000 Received: from iwj (helo=mariner.uk.xensource.com) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1mfl28-0007lx-KN for xen-devel@lists.xenproject.org; Wed, 27 Oct 2021 15:40:08 +0000 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.89) (envelope-from ) id 1mfl1v-0007ml-8b; Wed, 27 Oct 2021 16:39:55 +0100 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=References:In-Reply-To:Subject:Cc:To:Date :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:From; bh=vz66shXEZb+9ivv9wFPjwWjuGbdx0hkL6b04z5V0o/4=; b=tBKOaeGZkcOtLncMrjFRORXwjm rUUR3475BhWIv87y6LoaVqt1EmDe0iGpufRwyz//AWkZBpnM6IiNXUlRkkrKQ4u8WyODEBDKPVfl/ e9sdmXEekEnIyd8zjH9JkQzh3DWTbjIjKdKAPzQnbc6Tp5lteOeU8DEomaY2jsRY1+mE=; From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <24953.29377.25284.598334@mariner.uk.xensource.com> Date: Wed, 27 Oct 2021 16:39:45 +0100 To: Roger Pau Monne Cc: , Jan Beulich , Andrew Cooper , Wei Liu , Ian Jackson Subject: Re: [PATCH] x86/cpuid: prevent decreasing of hypervisor max leaf on migration In-Reply-To: <20211027140050.67509-1-roger.pau@citrix.com> References: <20211027140050.67509-1-roger.pau@citrix.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) Roger Pau Monne writes ("[PATCH] x86/cpuid: prevent decreasing of hypervisor max leaf on migration"): > In order to be compatible with previous Xen versions, and not change > max hypervisor leaf as a result of a migration, keep the clamping of > the maximum leaf value provided to XEN_CPUID_MAX_NUM_LEAVES, instead > of doing it based on the domain type. Also set the default maximum > leaf without taking the domain type into account. The maximum > hypervisor leaf is not migrated, so we need the default to not regress > beyond what might already be reported to a guest by existing Xen > versions. > > This is a partial revert of 540d911c28 and restores the previous > behaviour and assures that HVM guests won't see it's maximum > hypervisor leaf reduced from 5 to 4 as a result of a migration. > > Fixes: 540d911c28 ('x86/CPUID: shrink max_{,sub}leaf fields according to actual leaf contents') > Reported-by: Andrew Cooper > Signed-off-by: Roger Pau Monné > --- > Cc: Ian Jackson > --- > Regarding release risks: > > This is a partial revert of a commit. The main issues could be that a > partial revert could break the build or leave the remaining code in a > non-working condition. > > Breaking the build will be easily discovered by our automated testing, > while leaving the remaining code in a broken state is unlikely, as the > chunks reverted are isolated from the rest of the change in > 540d911c28. Release-Acked-by: Ian Jackson Thanks