[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tools/guest: Fix comment regarding CPUID compatibility
- To: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Fri, 4 Feb 2022 12:12:16 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=VV1SgA/+vHhVXkU0glUqb589oAQ2iOPI7l8P+Ayc/vc=; b=Rm0Fz+b2p8GC/gk9qFPvJZoSTTGEEuvVMJb3yJy5hn4pnHnhSC69ueFAmQD4oHmbG/GMVSHW7LQ6H7sIOWhTnW2QJz7lr4QA0SFq/tTmscMEjPLbRGpvudOVbN/R6xZEl2dk+QY2KPiolp8VpxJvwtsHTi18zrx4TNck77Q3e9WBFR9HtlKOw+WBHLo1qMURuNHZaPd2RttDeZ+KJkxSivlQpFaJy39ka/wNXtoZP7HsVVkmWpThxhoqfsPZ/O0eqBXNlhc5bUj/1A+PMrwYxkv7BigbPOZWTlqiCOW/OCu3yJaBYfxziHa4/cAXS3Q039hLbVloNMQReNHcyC0URA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AaIrsuInwIEAnOVzMQBGCNUyB4YHp0UB009rVO04YcpW0XDP7Lc3Ao6/sTI3keyKWzb/M5Kf+Q9mC5GDq/y3OfraT0qQyYvElKjrZW0wSNaVn4j0NDAn6dwuJTSLjvPdElLZQQXHmLqRePMbI2u6ucDw9/cy3qlfE6/MwRDEX51kbUgjnzSYIgdP1dbeIYBm+nG/Vqqel3xnt73xlpdyhaAzGci1eH9az44k1fwwdcznjFkKFeADO+m4iDw1k/Zz7tD9LnqGD9wmMVYZ5fOrhtChYEBtQtoFWzK6fhK5m2wWN94YMWsDHRtVNAxeWz+fpyeKJvWDjoRT6OR3pPQWRA==
- Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Wei Liu <wl@xxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, "Juergen Gross" <jgross@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 04 Feb 2022 12:12:37 +0000
- Ironport-data: A9a23:o4Hwnq9OdOQrsunmX2ocDrUDanmTJUtcMsCJ2f8bNWPcYEJGY0x3m GAdUWGFPqmJN2Cjf991atzi8RhVv5aHnYRkSQM+/H88E34SpcT7XtnIdU2Y0wF+jyHgoOCLy +1EN7Es+ehtFie0Si9AttENlFEkvU2ybuOU5NXsZ2YhFWeIdA970Ug5w7Rh3tYy6TSEK1jlV e3a8pW31GCNg1aYAkpMg05UgEoy1BhakGpwUm0WPZinjneH/5UmJMt3yZWKB2n5WuFp8tuSH I4v+l0bElTxpH/BAvv9+lryn9ZjrrT6ZWBigVIOM0Sub4QrSoXfHc/XOdJFAXq7hQllkPhM5 OVVu4PzYDskZLSXgP9BTxZiVB1haPguFL/veRBTsOSWxkzCNXDt3+9vHAc9OohwFuRfWD8Us 6ZCcXZUM07F17neLLGTE4GAguwKKsXxMZxZkXZn1TzDVt4tQIzZQrWM7thdtNs1rp4VTK6GP JRBAdZpRD/KRS1xZGhINKgzs/ul30bmLxR0uGvA8MLb5ECMlVcsgdABKuH9eNOQQt5Otl2Fv W+A9GP8ajkKOdraxTeb/3aEgu7UgTi9SI8UDKe/9PNhnBuU3GN7IB8cWEa/oPK5olWjQN8ZI EsRkgIxqYAi+UrtScPyNyBUu1bd4ERaAYAJVbRntkfdkcI4/jp1GEA5Y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1up 0QC5SWZOeAb2SSyPyKnTVQcOxQg+VvkprY/ts2pk0FJWoBBsEQjDuRSDzraHGeLDM2WKbRf6 Dsgfav0gDQAEj/Gf7LYEXtMdKzwuHjpdbDW1orFhQn4A6BgXeD87jhCSWV2R8YTndm3aoi2X KtqX262oyT99WAjjPM3W7a6Jpb3PH7zMFYOcCKgs8Jbh3xlweTYph7UbHqhkFxnAjv0idvrD D/mWZnAy1B0QKJQohzm2q05+DU6kdo15Yl8y7CvZKsm72ieNtwMbs+uWsQSGqp16NnhqAh7E sD5RPri3IcZymw7BjV9pzGUQpnmVGzpmdnmekPj2ZHWY9bc7NJq5cDlXklXavoMRiKo7zPKt MeRv00JcwmBm+yfjTcpC1i0dasVnM8ElOPRVUDoNWc13xTkGpix0UVycQDljNYnahNBKVs9q DBKOBlhbtORsgZYeZ0A/oAW9K+DijITQjXOGyfLFz7HOUMOm7LqZTw/LIpjdvaNKAg3d83gt DMQVlYvWk9dwbnDtCPxoRC9lTXTGC0TV3Wu4ljDlhCy/TBrZbQQFi+oWEV4r2dSq8kc7/mst 6ISeZrP8M=
- Ironport-sdr: NDFaphHeJ8slrujuoiwlRnUqPxcZW2FkYlgBXR6m9wH4PZyQEh6DW7k9NAYkaw6H123mA2PPpx o1xe9THslPN2J0qpQ3XOE4X4AKwBymD7px4qxfuoHGjyyvaUav+8zcDHvPrHqNq5YR3TAg00Ut wn+4eRf3ap62vXFZJDz9FR9lRx09Znpx2iQH7yTvJT0FnmLhF87s4dG4pxVPaIVqYylMlD1oBQ uoikQFq+piuzpuXsNcyjXwJAYSpg9K+ksOk8+G5+aOGikYL6Gp25qy5rY1rkfT9YZ6G7hVZJwd VvoXuMnS+JjTsddZ4nSnhha/
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHYGSl3cICfrTH0c0a6DCprlMhYPKyDEOqAgAA9p4A=
- Thread-topic: [PATCH] tools/guest: Fix comment regarding CPUID compatibility
On 04/02/2022 08:31, Jan Beulich wrote:
> On 03.02.2022 19:10, Andrew Cooper wrote:
>> It was Xen 4.14 where CPUID data was added to the migration stream, and 4.13
>> that we need to worry about with regards to compatibility. Xen 4.12 isn't
>> relevant.
>>
>> Expand and correct the commentary.
>>
>> Fixes: 111c8c33a8a1 ("x86/cpuid: do not expand max leaves on restore")
> But doesn't this commit amend 685e922d6f30 ("tools/libxc: Rework
> xc_cpuid_apply_policy() to use {get,set}_cpu_policy()"), which is
> where DEF_MAX_* disappeared?
No. All that happened in that change was that we switched to using
cpuid.h:89:#define CPUID_GUEST_NR_EXTD_AMD
instead, which remained the same size until Xen 4.15 when e9b4fe26364
bumped it.
> While looking at this, wasn't Roger's change incomplete, in that
> for Intel the extended leaf upper bound was 0x80000008 in 4.12?
CPUID_GUEST_NR_EXTD_INTEL is still 8, so this is all fine.
Even if hardware has more, we'll still limit to 8 on Intel. That said,
to this date Intel haven't bumped the limit, so we're approaching 2
decades without change.
Should this change, then yes, we'd have have to adjust the compat path.
~Andrew
|