From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A64E7C2D0A3 for ; Fri, 6 Nov 2020 15:58:54 +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 460572067C for ; Fri, 6 Nov 2020 15:58:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 460572067C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.20937.47031 (Exim 4.92) (envelope-from ) id 1kb48S-0004L1-Lb; Fri, 06 Nov 2020 15:58:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 20937.47031; Fri, 06 Nov 2020 15:58:44 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kb48S-0004Ks-GU; Fri, 06 Nov 2020 15:58:44 +0000 Received: by outflank-mailman (input) for mailman id 20937; Fri, 06 Nov 2020 15:58:43 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kb48Q-0004JK-U2 for xen-devel@lists.xenproject.org; Fri, 06 Nov 2020 15:58:42 +0000 Received: from mail-wr1-f68.google.com (unknown [209.85.221.68]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 90e85e44-f582-41b4-a4db-27a57d3e8640; Fri, 06 Nov 2020 15:58:41 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id p8so1036299wrx.5 for ; Fri, 06 Nov 2020 07:58:41 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id f4sm2790188wrq.54.2020.11.06.07.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 07:58:40 -0800 (PST) Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kb48Q-0004JK-U2 for xen-devel@lists.xenproject.org; Fri, 06 Nov 2020 15:58:42 +0000 X-Inumbo-ID: 90e85e44-f582-41b4-a4db-27a57d3e8640 Received: from mail-wr1-f68.google.com (unknown [209.85.221.68]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 90e85e44-f582-41b4-a4db-27a57d3e8640; Fri, 06 Nov 2020 15:58:41 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id p8so1036299wrx.5 for ; Fri, 06 Nov 2020 07:58:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u9/xTj7n0+W7aoDuTIa8HDJqm5R5FIOjh0XtULP6dHU=; b=UVvXcJ65fg2mij68JdLHUh+8utERACtQxl/pGIuGZbJh7geWfWq84c60aOrFCDsZf0 7fuAEoDCCB6bleTTjREz79Aifr6Bnu1EVNPhqDlcbiHgnahcpBgmYS4EHNT+/f1QXlFZ vAWeBNW9hSLs9sKPztmPv2JXrx3SMBBeZdeHYVWQvHPK/d3ru3Ljo3MtRbhzfCjfvd6u nNDn3pt3q5fZgXmexC9ZgCphzMwH9OUUKpRIxhX6ePlNeZ9rpPmQbHUhCsBZGQ2mE0D2 77vnQguzV7jHisAQgk9/BK1NKSmuczQbBHlV+zS3bFUCqccCp4nIQvemSEDqtLpvSRdD 5CCA== X-Gm-Message-State: AOAM533z7lSQ/LHOOUepcmAG1aJ2QdY9OML4/zMnTnJ7KUp7Esoc8hh2 qxjUnDf5dlXX++abjRGRwqA= X-Google-Smtp-Source: ABdhPJxVrNWM590SdX57k+IEurGmDyCe49WRxL2Yto6w97/Z7uA7ZJ5R1xg/IkPSwHDgn7EEKjd2mg== X-Received: by 2002:adf:fd06:: with SMTP id e6mr3467157wrr.206.1604678321112; Fri, 06 Nov 2020 07:58:41 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id f4sm2790188wrq.54.2020.11.06.07.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 07:58:40 -0800 (PST) Date: Fri, 6 Nov 2020 15:58:39 +0000 From: Wei Liu To: Jan Beulich Cc: "xen-devel@lists.xenproject.org" , Ian Jackson , Andrew Cooper , Wei Liu , Roger Pau =?utf-8?B?TW9ubsOp?= Subject: Re: [PATCH] libxg: don't use max policy in xc_cpuid_xend_policy() Message-ID: <20201106155839.vnhdqcptbpkbzfly@liuwe-devbox-debian-v2> References: <4fa05759-24ac-5ff3-3db9-94537f6be95d@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4fa05759-24ac-5ff3-3db9-94537f6be95d@suse.com> User-Agent: NeoMutt/20180716 On Thu, Nov 05, 2020 at 04:56:53PM +0100, Jan Beulich wrote: > Using max undermines the separation between default and max. For example, > turning off AVX512F on an MPX-capable system silently turns on MPX, > despite this not being part of the default policy anymore. Since the > information is used only for determining what to convert 'x' to (but not > to e.g. validate '1' settings), the effect of this change is identical > for guests with (suitable) "cpuid=" settings to that of the changes > separating default from max and then converting (e.g.) MPX from being > part of default to only being part of max for guests without (affected) > "cpuid=" settings. > > Signed-off-by: Jan Beulich I will defer this to Andrew.