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 B9D53C43457 for ; Wed, 14 Oct 2020 15:47:03 +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 537AA2222C for ; Wed, 14 Oct 2020 15:47:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 537AA2222C 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.6788.17877 (Exim 4.92) (envelope-from ) id 1kSizK-0008Ns-2K; Wed, 14 Oct 2020 15:46:50 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 6788.17877; Wed, 14 Oct 2020 15:46:50 +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 1kSizJ-0008Nl-VY; Wed, 14 Oct 2020 15:46:49 +0000 Received: by outflank-mailman (input) for mailman id 6788; Wed, 14 Oct 2020 15:46:48 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSizI-0008NZ-2Q for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 15:46:48 +0000 Received: from mail-wm1-f66.google.com (unknown [209.85.128.66]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 99fe849d-6377-43b1-8647-ead3e7699135; Wed, 14 Oct 2020 15:46:47 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id b127so33360wmb.3 for ; Wed, 14 Oct 2020 08:46:47 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h7sm5615881wrt.45.2020.10.14.08.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:46:45 -0700 (PDT) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSizI-0008NZ-2Q for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 15:46:48 +0000 X-Inumbo-ID: 99fe849d-6377-43b1-8647-ead3e7699135 Received: from mail-wm1-f66.google.com (unknown [209.85.128.66]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 99fe849d-6377-43b1-8647-ead3e7699135; Wed, 14 Oct 2020 15:46:47 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id b127so33360wmb.3 for ; Wed, 14 Oct 2020 08:46:47 -0700 (PDT) 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=Gxmd6tf1v9v8jlG0vzr7wvhJT2iN4CIhQtbCXla3r/4=; b=ZFdVg65YEyB8R8ufh3Pdwziy1mEiZqwmCdawDgtCWQjtkzx/jAmOxNZRVsXzE8NDzH hTA9GZrFe2xxezhDLW0AAh6fMtw1dEi5Fkox0xwLO3yFDA1l3TPUdyMOzu5E5VVUIXXs RBRpt6yna+mPQ6AupqgpFcFIjGlGeaHHUk99wYbkBFq9Uo5qrLvWiLaAuf3Uetp+tDAD C3weBCrQ8PAYNnx9JdBSN5aYjX1TKKAGopMT5bsVWzekdccNRK43Cb/XvPf41BUa0DaY vNsAfY5W5hC2gsYfuKOmRuAdqZEQwoGVcw+5NY10D/ftuynO+xsGFrdVbaOrmWX4eUZz MbGQ== X-Gm-Message-State: AOAM532+6OPXA9vifaYpMTi2oDA/Zt60Q53YuonWcDGZrgjkYfidbZCC ek80k185Q12nkChaZJwqL/k= X-Google-Smtp-Source: ABdhPJyokHUVvvNJnXbUj7VNqoqJdrsk3QVEYx9ef4IqIZs00axHw3LaJ0i/WmClG1AB5I5UYfg2ag== X-Received: by 2002:a7b:c259:: with SMTP id b25mr32081wmj.141.1602690406494; Wed, 14 Oct 2020 08:46:46 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h7sm5615881wrt.45.2020.10.14.08.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 08:46:45 -0700 (PDT) Date: Wed, 14 Oct 2020 15:46:44 +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] xen-detect: make CPUID fallback CPUID-faulting aware Message-ID: <20201014154644.ea63gzu7m3lqbrff@liuwe-devbox-debian-v2> References: <6b594869-1c64-93a3-7f19-f7374b62eeee@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b594869-1c64-93a3-7f19-f7374b62eeee@suse.com> User-Agent: NeoMutt/20180716 On Wed, Oct 14, 2020 at 05:23:23PM +0200, Jan Beulich wrote: > Relying on presence / absence of hypervisor leaves in raw / escaped > CPUID output cannot be used to tell apart PV and HVM on CPUID faulting > capable hardware. Utilize a PV-only feature flag to avoid false positive > HVM detection. > > While at it also short circuit the main detection loop: For PV, only > the base group of leaves can possibly hold hypervisor information. > > Signed-off-by: Jan Beulich Acked-by: Wei Liu