From patchwork Mon Sep 6 12:00:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jane Malalane X-Patchwork-Id: 12476863 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=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 A4F01C433EF for ; Mon, 6 Sep 2021 12:02:08 +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 6EA7D60FBF for ; Mon, 6 Sep 2021 12:02:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6EA7D60FBF Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.179699.326101 (Exim 4.92) (envelope-from ) id 1mNDJu-0003H4-Gb; Mon, 06 Sep 2021 12:01:50 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 179699.326101; Mon, 06 Sep 2021 12:01:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mNDJu-0003Gx-DY; Mon, 06 Sep 2021 12:01:50 +0000 Received: by outflank-mailman (input) for mailman id 179699; Mon, 06 Sep 2021 12:01:49 +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 1mNDJt-0003Gb-Mz for xen-devel@lists.xenproject.org; Mon, 06 Sep 2021 12:01:49 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 35354346-0f0a-11ec-b0a0-12813bfff9fa; Mon, 06 Sep 2021 12:01:47 +0000 (UTC) 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" X-Inumbo-ID: 35354346-0f0a-11ec-b0a0-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1630929707; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Pf01GPhpRixaBcZCDc0yr0gLSvWSydMEpj3W90Q2OU4=; b=QzizcM47aFmngZqVWQQk3jdKDp7o238ck78qOwlmbzxLXCAoptelpLkH n/AZtJHtmheaN/+/OyjPUqeVxqPqwZKRxCgwv9wRl2tG7ScXwuguKKigN UnoeWhyPoAFit14aPsVNWX04hT8KEp9oVtl9NPpUz9d+eThaUtWR0jN5O A=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: KrnqQUvoYQ1Xtnsjv+2HZft3xh1JM5c3Bmix5ZKZyETZzEyfTYCmerJ8fuCQu/RtSp3h39P4/Z CwBl859DY//SyLHaO5NggCnnPmPso640oN4UT5r8dYdl2mYYuriluJZPINeyfUWYth027tHzjv 0+wzl517PfFLpLV38+vcO4SbCU61UuwLKy8K6bcHAxLsaMjZ5WucHIcll3ysKyTtCwZYFsJGAL QibNliFBx9d98Zlbp7kR0XaT/4Lgv/gjSVNlB7yruc96llPuTinH/PvOUicjws91DZBrHxDmvD k62KYAMNFG0OosI7ceSUItSH X-SBRS: 5.1 X-MesageID: 52084907 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-HdrOrdr: A9a23:NVjIUKHLX7E6fgoSpLqE5MeALOsnbusQ8zAXP0AYc3Jom6uj5q eTdZUgpHvJYVkqOE3I9ertBEDiewK4yXcW2/hzAV7KZmCP0wHEEGgL1/qF/9SKIUzDH4Bmup uIC5IOauHNMQ== X-IronPort-AV: E=Sophos;i="5.85,272,1624334400"; d="scan'208";a="52084907" From: Jane Malalane To: Xen-devel CC: Jane Malalane Subject: [PATCH v1 0/2] x86/cpuid: Use AMD's NullSelectorClearsBase CPUID bit Date: Mon, 6 Sep 2021 13:00:02 +0100 Message-ID: X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Jane Malalane (2): x86/cpuid: Expose NullSelectorClearsBase CPUID bit to guests x86/cpuid: Detect null segment behaviour on Zen2 CPUs tools/libs/light/libxl_cpuid.c | 1 + tools/misc/xen-cpuid.c | 1 + xen/arch/x86/cpu/amd.c | 18 ++++++++++++++++++ xen/arch/x86/cpu/cpu.h | 1 + xen/arch/x86/cpu/hygon.c | 5 +++++ xen/include/asm-x86/cpufeature.h | 1 + xen/include/public/arch-x86/cpufeatureset.h | 1 + 7 files changed, 28 insertions(+)