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

Re: [PATCH v2 7/7] xen/arm: introduce new xen,enhanced property value


  • To: Julien Grall <julien@xxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Wed, 24 Aug 2022 12:15:41 +0000
  • Accept-language: 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=NHVb2HoZR+iufNqRpb5CiYE87ICXq8OgVwbteZuDL3g=; b=hr38Ydum+ixhiVCYfRzeYEvXZz/MblSHZDGZ0H9XC6GTsHHnRcyzQIiN0xRzyAM97zrmB8IQt+gaKiI7dL/SceSLzhqf1aFDzWYoCEpf6VAyxmDbU7zikUd8o1n04K/4sdk9cMqEiEwyu7b1R7NlGa6a2SQ1NYAQ8wxi0NqD7lPoq16IHim4uAndGyZRkOD8+o99ggiwB+i9pAcH10gUG05Z+d+dFYaRVMq5ndaXbwLu+bYbAdHYBIDfkgy7j0OC352i3p7mGsc7Vo744O5lgH3I/uc2b6BMxw2xfX/UV5Shh4NDsK4E0BI+aSyg8zTHInoz2PQQTkrqsUCQ7uaYJA==
  • 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=NHVb2HoZR+iufNqRpb5CiYE87ICXq8OgVwbteZuDL3g=; b=LgHrsajQvdRlPUK44BtXV2FDih+DkyevMs1EWdJe3VjO6n+zjIxBfcGjjpiB4obwHGkrLm50kS+JyFeBieyFp8JvQ7wlcB46PueOyc5XprTAbryWgDdhJAL0Vva5owUtzhpT8DJ+dvlZOFX4F4BWIJxVcnY5sGRxE6Ree1TUqua5Mrk+hZ+O6pfQWfh35wVuQVq6S1XdDNEsuRW1t+89EH+btgshgCMOvcUoDDu+UfWgm/KRZhve7pfN5nppVtL8Jymbge/+p73S78kArI8FbTyCgRUaYwc0HIGmZFqif4oXTcCticSou0mu3HxgI4eEt1xrOJJtV4I73goKpaP/3A==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=crTqqbctWnmSPO8eE8HlOliA27Umsm2hnL5kQYfZL5W8FvPeT8kCE5NGxW0hcmZtU2D5llN2n0u23AmEi/g3v57A66zIQ1SkYchVjjk4fx/ZCe8LYaOiaiWKY7EGDYqIM7itjSdHIO61nLffEFeQzflOz0bHAePKGOHS3HDxYScfUWoDdl+KmG/aaqIKeGk8v5Kal3lPR1CHUdGuYW7p/eZNJk0Gcd/YAycWfqI99l/kGRis3V15KxSOSw6ONb8pv72JntiQB5qIwWFIuWHynCC2XTA5TmngvanR5gtuv3D5F/ZaIGUziDnjVGHeq3oZx2wQavsyMYbxsB0dL5KGWw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jKEjk0/8im6sA/bPuJXGyEJoixe4TvpMjqPJU5ffrAn0LMF3PFw0ymnWB2tGKXZZ43cLjvoADFmsIrDlJIBa+FOZtbhM1wM8RKIfQFqooYa3ZaNa2SfCqC0sGJvrQ+u5Tvd8diLrkUJPAnxa/O62WF1Q82WhZ5fwMtXHHWAcO9XucOVZgLOHSoBTjAJjqZIDUBnGlPlaYxdM0Ah6VyRs58xoBF5uCbxJpX6SQSo7aCMKpzZJwShwyRnvZztz2oORGsQiDhrBMdqJFzE6hvyRM8e8JiGnw4m9zhxWvjYxnX5AA5fw6xKTboxB3L56f1OFs00yOFIwKNFCO3vtvWFBhw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 24 Aug 2022 12:16:10 +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: AQHYs7NVSZ6RtK1DJkmDvOUuzqeVhq28SEyAgAG2wAA=
  • Thread-topic: [PATCH v2 7/7] xen/arm: introduce new xen,enhanced property value

Hi Julien,

> On 23 Aug 2022, at 11:05 am, Julien Grall <julien@xxxxxxx> wrote:
> 
> Hi,
> 
> On 19/08/2022 11:02, Rahul Singh wrote:
>> Introduce a new "xen,enhanced" dom0less property value "evtchn" to
>> enable/disable event-channel interfaces for dom0less guests.
> 
> The documentation in docs/misc/arm/device-tree/booting.txt is missing. Also, 
> you probably wants to update docs/feature/dom0less.pandoc because the section 
> "PV drivers" suggests that if the property "xen,enhanced" is specified, then 
> we would end up to allocate information for PV drivers.
> 
> AFAIU, this is not the case when "evtchn" is specified.
> 
>> The configurable option is for domUs only. For dom0 we always set the
>> corresponding property in the Xen code to true.
>> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
>> ---
>> Changes in v2:
>>  - no change
>> ---
>> ---
>>  xen/arch/arm/domain_build.c       | 149 ++++++++++++++++--------------
>>  xen/arch/arm/include/asm/kernel.h |   3 +
>>  2 files changed, 82 insertions(+), 70 deletions(-)
>> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
>> index 5101bca979..bd8b8475b7 100644
>> --- a/xen/arch/arm/domain_build.c
>> +++ b/xen/arch/arm/domain_build.c
>> @@ -1396,85 +1396,92 @@ static int __init make_hypervisor_node(struct domain 
>> *d,
>>      if ( res )
>>          return res;
>>  
> 
> 
> The diff below is quite difficult to read. I have applied to have a look. You 
> seem to have simply indented the code and now some of the
> lines are over the 80 characters mark.
> 
> Ideally, I would like to avoid large 'if'. So I would suggest to either
> re-ordering the code or split in multiple functions.
> 
> However, reading the binding of "xen,xen", the property "reg" and 
> "interrupts" are not optional.
> 
> I also don't think can make them optional because some OSes may not boot if 
> it can't find one of the property.
> 
> In any case, at minimum you should explain why this is fine to make them 
> optional.
> 
> [...]

If we want to expose the "reg” and “interrupts” property always to guests and 
these properties are not 
optional then we can discard this patch and add support for "xen,enhanced” 
property for domUs for
static evtchn to work for domUs

Please let me know your view on this.

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index bfe7bc6b36..a1e23eee59 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -3562,12 +3562,7 @@ static int __init construct_domU(struct domain *d,
   if ( rc == -EILSEQ ||
     rc == -ENODATA ||
     (rc == 0 && !strcmp(dom0less_enhanced, “enabled”)) )
-  {
-    if ( hardware_domain )
       kinfo.dom0less_enhanced = true;
-    else
-      panic(“Tried to use xen,enhanced without dom0\n”);
-  }
   if ( vcpu_create(d, 0) == NULL )
     return -ENOMEM;
 
 
Regards,
Rahul

 


Rackspace

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