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

Re: [Xen-devel] [PATCH 1/6] domain: stash xen_domctl_createdomain flags in struct domain


  • To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Thu, 25 Jul 2019 10:24:40 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.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=dgTcgxs3oIivK93rdz367y1sfPvyA4LedEVTy0ErDyA=; b=cLRDu2Z24LIfUloqiWXnodwaiTG3AgJOrrswo+6siO6dxCG8ZU0piRsI5gU8Tiqy6HHcdwm/5rykLy1ePTGqI5eN0HR6hJ8PzMAYqrWojuKTrO7NdTtJB1y96dWiSv8pE5kgk6H7na424Ke+5AzFwiJRRmP3rNbrL5DfgXhN3mkNE1lTLXHdm+5S+ZP4CPBmKuiM94fhcz/knwTOHFViqk1ZwUwlU6J1nSwPDyDRtOymMEk+wNUWUpdmc5JDFOlBuOGS1Q4W9JX7ioBa5iPy3WfkBPmRxWcI87+IhbaRf+oPdpkUafL065UvMa1ViKRgGyO/OHyx/T4BFyvNB68gvA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F5rmwRPeeupfFq+o/l+t9xOhE8xO1U/jmgpxayJQ359jwmeVpL/A0Q+wgfQWGfI0uFm20C6qTMoCGUVS5VmE24COTc/9NK/Gp2/9brOPySitQlwOpIfY3etbjge/+IuJ3TIHx/1u9StXONLd0a4SUQ8KvNIipHgBDv6+mzpErGCqboUWLhS3NAb8FvTZx1p0qCrYBVzdPVvl9iACoEuDprWVn4kfQTug1xLtECNLsuRvhumZxWCAvgn5GIECZB/MO4ZLRLMvz5uDI+X/PQqbhEH3mpizthIsECOmRVN1HgYwgzXCQzkvyOeN889TEUY+x+LIqjBfTKfN67SMvUtRPQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, KonradRzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, "Tim \(Xen.org\)" <tim@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, IanJackson <Ian.Jackson@xxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 25 Jul 2019 10:38:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQXCgF1lCD39zc0iIIjzc0uoVFaba8J0AgAAuXaCAAARzAA==
  • Thread-topic: [Xen-devel] [PATCH 1/6] domain: stash xen_domctl_createdomain flags in struct domain

On 25.07.2019 12:11, Paul Durrant wrote:
>> -----Original Message-----
>> From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
>> Sent: 25 July 2019 10:23
>> To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
>> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; Stefano Stabellini 
>> <sstabellini@xxxxxxxxxx>; Wei Liu <wl@xxxxxxx>;
>> Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>; George Dunlap 
>> <George.Dunlap@xxxxxxxxxx>; Andrew
>> Cooper <Andrew.Cooper3@xxxxxxxxxx>; Ian Jackson <Ian.Jackson@xxxxxxxxxx>; 
>> Tim (Xen.org) <tim@xxxxxxx>;
>> Julien Grall <julien.grall@xxxxxxx>; Jan Beulich <jbeulich@xxxxxxxx>
>> Subject: Re: [Xen-devel] [PATCH 1/6] domain: stash xen_domctl_createdomain 
>> flags in struct domain
>>
>> On Tue, Jul 23, 2019 at 05:06:04PM +0100, Paul Durrant wrote:
>>> These are canonical source of data used to set various other flags. If
>>> they are available directly in struct domain then the other flags are no
>>> longer needed.
>>>
>>> This patch simply copies the flags into a new 'createflags' field in
>>> struct domain. Subsequent patches will do the related clean-up work.
>>
>> Thanks!
>>
>> Just one naming comment (which is subject to taste I guess).
>>
>>> diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
>>> index b40c8fd138..edae372c2b 100644
>>> --- a/xen/include/xen/sched.h
>>> +++ b/xen/include/xen/sched.h
>>> @@ -308,6 +308,7 @@ enum guest_type {
>>>
>>>   struct domain
>>>   {
>>> +    unsigned int     createflags;
>>
>> Can you name this just flags or options or some such (without the
>> create prefix). IMO adding the create prefix makes it look like a
>> field only used during domain creation, while it's not the case.
> 
> I guess naming it simply 'flags' would be ok coupled with a comment
> in the header stating that the field is merely a copy of the domain
> create flags. Anyone else got opinions on this?

We use "flags" too often imo. What about "options" as suggested by
Roger, or "settings"?

Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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