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

Re: [PATCH 2/2] tools/ocaml: Fix stubs the introduction of domain_create.cpupool_id


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Wed, 18 May 2022 14:34:20 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=wTLCVwlrWKM3V3A61jSURmWa9cl69XKqoMPyl8wYNCU=; b=Ux2qiL1L7VnRvjWcT+WshIRxm00Lca8Vg90KetTGldf79RjGbjcCvwNx2hSVkl+E2Vb+uppUDL7O1RVEejMmFVWlicLb2v8ptQExfI5+P0UwPlQ6+SUX6AH0TB9A8AKVQswRHnzW7A7vANSBgXFJBYKIiy2qcxlGUI8H4qnNLI1k3j7Bcko+RZVK6GPAM6NauZufE/E6qLIJnZb/7PlbXXe7FMkBuOSClZw1NgBfJkl7x+Yfynvxo7cRYZtbwITJi8FU9x1tATSuS3EyDY8d4dLoxsvur/J9s/bNXFTiMF0qKU9dwtslDFMePEGs/3XjhTt6B0CTOb4EgTuEll31ZA==
  • 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=wTLCVwlrWKM3V3A61jSURmWa9cl69XKqoMPyl8wYNCU=; b=cVvH1zVhyXTxsHXxW1TDV+KuuFcPkjEpRIn/Ob1/ODn8Dg4nFC8ikAFmNUu1d5sfR7Wlgg1bFVS5aWpPEYps7PxPe9iXYy287tPmJb6XbzVdI2RMb5YIn02rcD+hiriiFHGQnBSgOYPRzqnSK6ARs1ZnVpzw6jzDopveQ15vKXTkayeSJB8fUyp3oGOr/ETj9dnCnyKrMpgpzYg/tLpUngM9vYNnbwP+zNGXxwI2CPXQEH2CX2H9dMuyfQFNWAyXQdLXnANoB6toKFE2CB4T0oIiGx3sT7uQBqtkuye4IQG1Y+TeLk6WlgB2+Xw9I0Huz9dfMxz321ldt6ZeFBa8jw==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=EEzFC3caKKtCnKu2+nXQWONrpmySF0w7VU4vxOJnvwTDwU6mFugEjvVYfLL/i02axZYjqCDa9hCTgAjwAJQytBNyKBA1irtilN9V2B1L5rIS3D1WXBWd03Bz4KFM3Psl9TYFabJKdMJ4G1fsYh7nuwbNDzi5tndwKS5BUROP3diggVEXLmZor0KA8n4eXE1rkcQU9Jm+hFU/tPlOj99EtESxytpfCmNddjEZf3acCnk+vZ4eM2D4aeC8sYeVzP9xp4tarfVcG4MQClPkuUYTXlvDi6oY9l1Y5pX53qg5lJMAII13/2/L73aLvnD0dRAHyrXjmh8vkOxKHK0EGizRNw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqSufAsDYo0s6nLfO2hfH4ukbuT67p7GQv10exM6USB2oxnRStpTaT84XwN4NIoLA/9FYqZKi3jaVmrpKHAvzMjxqeBJ5UWf8KeY5t6UvWpp37pkacbGSTQVpWfk/ckntAFif0pWfX+oYebLeFfJpBOMR0gdIso73H+JY00j/HuANhkYe4KVCtgbzbeB5jLIWCbgiaxEgePbZOcycmL8Is1s7McwZAhAXmh0gmxccq1haAULAnq1RgKM4grwYeylAzvlKr0s4eOna3GdpIOe/8awJPPTepcJKJZxm1+Lxt1ss0QyIWLDC5zf1NwhG/WrMcuRnDjBpYEe77D33oGdyA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Edwin Torok <edvin.torok@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 18 May 2022 14:34:45 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYaiYlhlRp70KGIk+7qOp/vtrSaK0kZYcAgAAF1oCAAATWAIAAEd6AgAAyWYA=
  • Thread-topic: [PATCH 2/2] tools/ocaml: Fix stubs the introduction of domain_create.cpupool_id

+ Adding toolstack maintainer

> On 18 May 2022, at 12:34, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> 
> On 18/05/2022 11:30, Luca Fancellu wrote:
>>> On 18 May 2022, at 11:12, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx> wrote:
>>> 
>>> On 18/05/2022 10:51, Edwin Torok wrote:
>>>>> diff --git a/tools/ocaml/libs/xc/xenctrl.ml 
>>>>> b/tools/ocaml/libs/xc/xenctrl.ml
>>>>> index 7503031d8f61..8eab6f60eb14 100644
>>>>> --- a/tools/ocaml/libs/xc/xenctrl.ml
>>>>> +++ b/tools/ocaml/libs/xc/xenctrl.ml
>>>>> @@ -85,6 +85,7 @@ type domctl_create_config =
>>>>>   max_grant_frames: int;
>>>>>   max_maptrack_frames: int;
>>>>>   max_grant_version: int;
>>>>> + cpupool_id: int32;
>>>> What are the valid values for a CPU pool id, in particular what value 
>>>> should be passed here to get back the behaviour prior to these changes in 
>>>> Xen?
>>>> (i.e. would it be cpu pool id 0 or -1 if cpu pools aren't otherwise 
>>>> explicitly configured on the system)
>>> cpupools are a non-optional construct in Xen.
>>> 
>>> By default, one cpupool exists, with the id 0, using the default
>>> scheduler covering all pCPUs, and dom0 is constructed in this cpupool.
>>> 
>>> Passing 0 here is the backwards compatible option.
>>> 
>>> And on that note, Luca, you ought to patch xl/libxl to apply the pool=
>>> setting directly during domain create, rather than depending on cpupool
>>> 0 existing and moving the domain later.
>> Is it an enhancement or a bug fix?
> 
> This isn't a binary option.
> 
> Your series added an optimisation to DOMCTL_createdomain, then didn't
> adjust libxl to use the optimisation (which would have reduced the
> number of hypercalls to create the domain, and reduce the number of
> dynamic memory allocations in the hypervisor.  Marginal, certainly, but
> clearly a nice-to-have).
> 
> Therefore, you created technical debt, which is option 3.
> 
> By default, as the contributor, you are expected to address the
> technical debt, because it is an important difference between hacking a
> feature up for yourself, and integrating the feature nicely for everyone.
> 
> You can of course negotiate with the tools maintainer to see if they
> care, and right now that's a bit difficult.  It's quite possible that
> noone other than me cares, and I'm not libxl maintainer.
> 
> Either you need to pay off the technical debt, or someone else will have
> to.  Someone else is going to have to start with digging into source
> history, which means it's more expensive than you doing it now.
> 
> At an absolute minimum, you need to be aware of where/when you are
> creating technical debt.

Ok, we've just created a task to handle this work so that we can track it, we 
will
handle it in the future.

Cheers,
Luca

> 
>> From what I know, please correct me if I’m wrong, cpupool0
>> Is always present, so there won’t be problem on assuming its existence
> 
> From what I can see, your series has reduced the magic involved with
> cpupool0, which is good.
> 
> But the fact that it still has magic properties is still technical debt
> that someone is going to have to pay off eventually.
> 
> ~Andrew


 


Rackspace

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