[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 21/21] libs/guest: (re)move xc_cpu_policy_apply_cpuid
- To: Roger Pau Monne <roger.pau@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Thu, 1 Apr 2021 18:53:38 +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-SenderADCheck; bh=J0mB+ca1/dHzwyG5wpDRMwjhv25AphJTBpchIQNnlvQ=; b=TOE+U+iOdRLDihPztCs8N4LDR6Ml813QTflspwT0NHUMWhor2g6tSTSQBWce0LbxNrq7+C4eETmh05wrzkCN2ErmAP0rBGb8SDWcQOHhboWcuXipEowXMBlu2LB8Y8VvpBcDYC5XOua/EVSVx+rKEM9s5n1y261cZS5sX5IoNHB/uyv0Jb5Oi+WrIVDzA5fjjVDVHdQXNDFfxMGyXKUwbMXK6mndMObsfm6b2jkUPD2Wg6u9zaOSsQCiVGPyRNmIBH3f95OJh0zOiX67azIfGXN0LAKv3vBp2vRx9UUkMV7pulQwJ1jd36qDrMUWa+EhPYrjGoXeDleE0BHjd+OpSg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KDx5vURnzyPsw6rBUZ/bSSh6v0L56pyM6d1D2WbqO8hptLRPWoWotwwvot/4COvkP26IKYZPKifFSF2NXMzg4afhFfPeAzz7rzAXItGzhFTa3GqkM+CAwpTJ56FVl4rLi+f9lb0ZgYm14Lv6Z1bCoffHz5eokN5EEKEV88dqvR5YiwAY/xgwUOyRQidyn5hiDYGd4X6+3i5EK2KnXik4YVj4Ibkd2i5dgr1j5mu377bFFu0+h1gfNOMGzJW89S1+0IKbZftQTY0hw3xMAOVnntbJtK7LtNWbemikJ40J12AUXEbePHn3UmsvPD2RbwJgo5TnPEFgK1ybRfTm0/ZQIw==
- Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Delivery-date: Thu, 01 Apr 2021 17:53:53 +0000
- Ironport-hdrordr: A9a23:lt96rq+WKHEw3K50DY1uk+F3cL1zdoIgy1knxilNYDRvWIixi9 2ukPMH1RX9lTYWXzUalcqdPbSbKEmzybdc2qNUGbu5RgHptC+TLI9k5Zb/2DGIIULD38Zn/+ Nbf6B6YeedMXFTkdv67A6kE9wp3dmA9+SSif3Dymp2JDsLV4hLxW5Ce2KmO2dxQxRLAod8MZ Ka6NZOqTbIQwVoUu2QAH4ZU+/f4+DRnJX9bhIcQzIh4g+CjTSngYSKbCSw9BEYTj9J3PMe4X HI+jaJmpmLntOa7lvn12HV54lLg9eJ8Lp+LeGFl8R9EESWti+Gf4JkMofy2gwdgObq01oylc mJnhFIBbUP11r0XkWY5STgwBPh1jFG0Q6R9Xa9jWH4qcL0ABIWYvAx/b5xSRfS50o+sNwU6s sitAj1xvknb2K1oA3H69fFTB1snEavyEBS9tI7tHBDTZAYLIZYsI13xjInLL47ACn45Io7ed Medf302fA+SyL+U1nkpGV1hPSjUnMvdy32OHQqi4i+1jhbm21B1E0IxMATtWdozuNMd7B0o8 vDKahmj7dIU4s/ar98Hv4IRY+NBnXKWg+kChPdHX3XUIU8f17doZ/+57s4oMmsZZwz1ZM33L DMSklRu2Iec1/nYPf+naFjw1ToeiGQTD7twsZR69xSobvnXofmNiWFVRQHj9agi+93OLyYZ9 +DfLZtR9PzJ2rnHohEmyfkXYNJFHUYWMoJ/v4mRlO1pN7RIIGCjJ2ZTN/jYJ7W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5+9vWyx0WWutdSl9/Kr6e0MRCj1V8ZVDXWytQxPORTHu M3TE7Ou3C6yGjXrspRJpfghqy0Yb9QGxe+i3Y3Ou5PTC233kLGbllQdmrVxjVtdBsxTcAXrvR9 K9xC2WoAjL45g1TtBb6DHbcHTsigxSyM5OVzNm1DXgV6Q7T39TI356cU9lxoX7VUA60oorjD3r DXs=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 23/03/2021 09:58, Roger Pau Monne wrote:
> Move the logic from xc_cpu_policy_apply_cpuid into libxl, now that the
> xc_cpu_policy_* helpers allow modifying a cpu policy. Having xenguest
> parsing CPUID data in xend format was a layering violation, and by
> moving such parsing into libxl directly we can get rid of
> xc_xend_cpuid, as libxl will now implement it's own private type for
> storing CPUID information, which currently matches xc_xend_cpuid.
>
> Note the function logic is moved as-is, but requires adapting to the
> libxl coding style.
>
> No functional change intended.
>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Its not a layering violation IMO.
It was only in 4.14 that I dropped the Python and Ocaml bindings for
xend-format strings, in an effort to simplify this work. Before then,
libxc was absolutely the correct place for the logic to live.
I do intend to re-add python bindings in due course, but I really don't
expect that to extend to the xend format. So moving this logic probably
fine, unless we're expecting to re-introduce it elsewhere?
~Andrew
|