[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 05/10] x86/boot: Record MSR_ARCH_CAPS for the Raw and Host CPU policy


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 24 May 2023 15:03:07 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JArMfPQaRq8QAANfEdYRU40E6c26elQI4m66XtPPgw4=; b=l7I5dd2dUuCD31/INvKewNX0h3UbxTtPuLW/40nQcm3oDsQb11FCVTdkx9pYCC8EfNed+2ib2sZA4wFUxO9rQygOFLNii/7dZM93dhvh4oRwui/JOXMnVChAv4vU7S+azJ9rKRNNjS70z17/RDzjpjoapxlk7rRTUzs4hrLLiUIJCGLTWP53UBJR+M8IADHY1RUi1GxThPe144M8u4ThvZHA9ULJMOUs3w3bzoeUj2LAq1wp1LtiMJKvTomqoh9jt0+nhgDBY9wsz03EysSqMpcY4sbOABIH0cPs7wIo3M/x2hqGamqBj2NR58rAtVEn7GfVsEhJ7VqcLbQHB0FP4A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oFmzvDQRwYd6QkovsHa2wn7mqjYjRXzsGyipnrPKrgFNt7rLFeSgNTxe2bMVuY9moYRmlYsyhjV8+8RxOuOu8f+iv8SahnvcEyuyu3X5njTpS7HSdbf61ixjQ0sGZ4AtOYRDVOmyrnUwL7+O6F1SJBzS+1I1X/xApJdTcvRkDfg5d8869OMM8i0H8g6kGx04H/3RtYtvmdfUEwu8TjaWAIVAw7RJ40s2UBqfPt12T1lEGtLpL8Ca9fOAVXtBoN/HD1OR+2ejxeD/n/t0YyRisaZHh/A4MhE+mmI1JphD5BZA4U+hWtCveGA5igAzcJEMjbLR7pcx2oP+1IbbX1lltw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 24 May 2023 14:03:48 +0000
  • Ironport-data: A9a23:K4Xi/aIClJogvdI3FE+R/JQlxSXFcZb7ZxGr2PjKsXjdYENS1DFUm jFMD2CDOamKM2r9KYh0bN++8U0GuJHSnIdnHQplqX01Q3x08seUXt7xwmUcnc+xBpaaEB84t ZV2hv3odp1coqr0/0/1WlTZhSAgk/rOHvykU7Ss1hlZHWdMUD0mhQ9oh9k3i4tphcnRKw6Ws Jb5rta31GWNglaYCUpKrfrbwP9TlK6q4mhA4wZiPasjUGL2zBH5MrpOfcldEFOgKmVkNrbSb /rOyri/4lTY838FYj9yuu+mGqGiaue60Tmm0hK6aYD76vRxjnVaPpIAHOgdcS9qZwChxLid/ jnvWauYEm/FNoWU8AgUvoIx/ytWZcWq85efSZSzXFD6I+QrvBIAzt03ZHzaM7H09c4uEVhA8 /ETdQtdZzuCh/Cd0Oy6bftF05FLwMnDZOvzu1lG5BSAVbMKZM6GRK/Ho9hFwD03m8ZCW+7EY NYUYiZuaxKGZABTPlAQC9Q1m+LAanvXKmUE7g7K4/dnpTGLlGSd05C0WDbRUvWMSd9YgQCzo WXe8n6iKhobKMae2XyO9XfEaurnxHurCdNLSebhnhJsqHKB7U0WKzlHbxiYodSalXDhC/YCN WVBr0LCqoB3riRHVOLVTxC+5XKJoBMYc95RCPEhrhGAzLLO5ASUDXRCSSROAPQkvsIrQT0h1 neSgsjkQzdotdW9Vna15rqS6zSoNkAowXQqYCYFSU4J5oflqYRq1hbXFI87SOiyk8H/Hiz2z 3aSti8iir4PjMkNkaKm4VTAhDHqrZ/MJuIo2jjqsquexlsRTOaYi0aAsjA3Md4owF6lc2S8
  • Ironport-hdrordr: A9a23:P0X1Q64d7+rwGBnQhgPXwOrXdLJyesId70hD6qkRc20xTiX8ra rCoB1173PJYVoqN03I4OrwX5VoIkmsl6Kdg7NwAV7KZmCPhILPFu9fBODZsl7d8kPFl9K14p 0QF5SWWOeaMbGjt7eB3OBjKadZ/DBbytHPuQ4D9QYXcei1UdAc0+8XYjzra3FLeA==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24/05/2023 12:25 pm, Andrew Cooper wrote:
> diff --git a/xen/arch/x86/cpu/common.c b/xen/arch/x86/cpu/common.c
> index 9bbb385db42d..f1084bb1ed36 100644
> --- a/xen/arch/x86/cpu/common.c
> +++ b/xen/arch/x86/cpu/common.c
> @@ -477,6 +477,11 @@ static void generic_identify(struct cpuinfo_x86 *c)
>               cpuid_count(0xd, 1,
>                           &c->x86_capability[FEATURESET_Da1],
>                           &tmp, &tmp, &tmp);
> +
> +     if (test_bit(X86_FEATURE_ARCH_CAPS, c->x86_capability))
> +             rdmsr(MSR_ARCH_CAPABILITIES,
> +                   c->x86_capability[FEATURESET_10Al],
> +                   c->x86_capability[FEATURESET_10Ah]);

I managed to send out a stale version.  I've corrected this and the
other instances locally.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.