[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] x86/amd: LFENCE always serializing CPUID bit
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Thu, 15 Apr 2021 16:47:29 +0200
- 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-SenderADCheck; bh=nMDcqqnOZfcCV9m8aPgUdHoikxshxCw4e5B1OOrT0OM=; b=acb/FDL3Ch2M6A4xJxTBQDHalRkAFIoYOWD3P8yv1cn3jAPY4YcCGJqw69biQIGvtegw8jGiD2LdK2yZc+zTVZnvTFQtiY20yI7HWb7f4xTzMXUkYBrFhpmhpMMBGg5/GYmWP0R+nbUQh+vxwyKf5cgAwUWefwze1EuIOr7uZgQtZpVteCC96IVyysnFdmE0IIeI10H532HEcwU5cOQBRW7nOZg3pE0xEReQ/gKznai3UFkhuWR/kKpijfbGh5Q1RPdZVjrf+OdvjcraMYuZ8aPXfqVDnC+T/BnWtVeeqw9h5WSuZ0Xfsh0Nj9WXouleyK1RD/cha4EKzxcHMfxD6g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vfm+8u4tfJ3YSPyuXoJvFsdLLfUyWQB2lXjT8tMuBSanqUJGIpaG/vBIB41YKXXNr1DCxkT8zAbNryfiI8kLoeAX63KywQZEpmX25cKqk3NGmjwLbOOJ16tqMGmEQPKZ4gB/YssKT4b88XY6BoGQcDrjeATh+YczQzUsKuOAHV5GOlAwvNIcAdFVN8KaNaSExsqbVru4E6SgnGJhnIqXsrI/3sUganlk6/swXTQDQ49iuPKG1xj8tv2mhWCKq9xoJfeQfoTsSaIyRKyO4Lq/U5yBuwU+pMFBiOhEap0oyAM70dHgKcAXtsoUKAvBZC+gIGwDW9ynZNLX54AhvBrSEw==
- Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Delivery-date: Thu, 15 Apr 2021 14:48:10 +0000
- Ironport-hdrordr: A9a23:9hJLqq/+DLfNbamCN0duk+E+cL1zdoIgy1knxilNYDRvWIixi9 2ukPMH1RX9lTYWXzUalcqdPbSbKEmzybdc2qNUGbu5RgHptC+TLI9k5Zb/2DGIIULD38Zn/+ Nbf6B6YeedMXFTkdv67A6kE9wp3dmA9+SSif3Dymp2JDsLV4hLxW5Ce2GmO2dxQxRLAod8KY GV4dBJqyHlVXMcaMm6AXdtZZm/m/TgkpX6bRkaQyM28QXmt0LT1JfWMTi9mi0fXTRG3Ks4/Q H+8jDRy62/v5iAu2bh/kDJ6ZA+oqqF9vJmJOihzvcYMS/tjAHAXvURZ5SnsCouqO+irHYG+e O82ysIBMh453PPcmzdm3KEsGOMoVVeiQ6Q9XaijWb+usu8fTomCqN69PxkWyHE4EkttswU6t Ms40ulsfNsfHf9tRW4zd3JWxZ2r1GzsHovnMUC5kYvLrc2Wft/q5cS81hSF4pFNCXm6Jo/GO 0rN83E4u1KGGnqIkzxjy1K+piBT34zFhCJTgwrvdGU6SFfmDRcw1EDzMISs38c/PsGOtV5zt WBFp4tuKBFT8cQY644LvwGW9GLBmvERg+JGH6OIHz8fZt3ek7lmtrS2vEY9euqcJsHwN8Zg5 LaSm5VsmY0ZgbHFdCO5ptW6RrAKV/NEwjF+4V73dxUq7f8TL3kPWmoU1Y1ifatpP0ZH4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gtMR2eGeL/DH6FWmw1icW9FGioYcX5ScqQo445MnvD5 x5sYCVuY1gvhXj+qAzAS+CNvm0L1Z6hSVIoi2Mcb8SWYBoAU1b12yEfeyIOvd99QStcsPq2yEl Sh3JaLOlCgShgebopULtGW9HL0M2OC+jJowBwNrZFWjYd9mb8NTxTe6qyU02g7de08R3BUzRZr 1WI=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hello,
The following patches aim to add support for the LFENCE always
serializing CPUID bit found in leaf 80000021.eax. In order to do that
the featureset needs to be expanded to support leaf 80000021.eax.
Thanks, Roger.
Roger Pau Monne (2):
x86/amd: split LFENCE dispatch serializing setup logic into helper
x86/cpuid: support LFENCE always serializing CPUID bit
tools/libs/light/libxl_cpuid.c | 2 +
tools/misc/xen-cpuid.c | 6 ++
xen/arch/x86/cpu/amd.c | 69 ++++++++++++---------
xen/arch/x86/cpu/common.c | 3 +
xen/arch/x86/cpu/cpu.h | 1 +
xen/arch/x86/cpu/hygon.c | 27 +-------
xen/include/asm-x86/cpufeatures.h | 2 +-
xen/include/public/arch-x86/cpufeatureset.h | 3 +
xen/include/xen/lib/x86/cpuid.h | 37 ++++++++++-
9 files changed, 94 insertions(+), 56 deletions(-)
--
2.30.1
|