[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 16:35:48 +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=0niOUQVCBZIIyutWexX4tLjOMCiDYws5zD9S8C5rUnE=; b=UGTASAf28+iqKIIJTipwUf/c1vjga6gwiGdfx/MYW8F52FIbfdVNODTXTW88mum1APH0yNY6fAZXcTo/3AWsmObPpiqs/uYzpGJfjIyZHczCoUbyhIi/Q1IrlJGt3JXLVm3SvygO35v8CBH1lWygmE9HyuoqTUotPA07Te9mK/WoLmyYrbxExB8W3zSLlJcI5WxFM2oueDo9KwCd+VkqAzU+4Z9Ie2TI0AHs495aj7AJgbFV/lezp7yktWt93ub21KOxSd4bWpukUWqk3CC1Ugx3MnmkBpdQOnNT1CmAgkLMUTOFtHKDI26sP2Afo2Dv2C1u0RNCleg5NcBleeZk2A==
  • 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=0niOUQVCBZIIyutWexX4tLjOMCiDYws5zD9S8C5rUnE=; b=UFpfZbtmK5mMyYc/rkbmwg7NbVYM0EwfKQHYcaEDL/GFpG8yPnBA8pWiwoa+sjl/xl25m3Tjl98aKzwJGIkP5TrBQJPyoLySacDIxlCd8yNPhyzPTYdXNR+qKkgZ3FFE8K0GyiOt+tfAX8PnX4wGWEDfqA9EI7KgC6FjmtLvl/QxzUHpF/eB0Wh5bjdL6rXSUcOL5laDJBPSwvZxJ9wAfsMo6v75AYULbUMMq87iNXiRupKr+xC6oZo7KP3VMkUVsTOOM/DD16VkUR+Fmv69MAL+nyUYfe3ubkO2QPvobfPBpQIDrFpt4aU9OKYVhBrM6shMdIIUvkD23XE9MTTETg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=gm37RKRHN94aowyBJ7cl7oGsQfgb0xwpHNBWa++ILQBp6XjW5+WCXlOLaPl9MDzBDOPkVXIARMOFJsrrazzYf7DYk067zyeUjE9ehULcZBhNCkUWQVV8fphMhmZm/K+3KtjOqD03Ryjvm0BjXeHQ39Pkx68W6jHuC0BO/dp/+lrfXlgx9rGdAtITDLciLoNniz097ESz7zxXWwF0VNiSNDaWrXkwLwSSHSeDOySbsgtJ9mAA+ac2cx59zmQausL7Y0vyL9fKmRlzA9ApVEnaEyBMUkgR22kFl2cm5jpf2EFNGLT3YYDQ+RSxDEShGIGtaEMX9Ixu1ceYYfDDNomLOQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Niz7DjKnrQPPhlZhpk8Axmuq5lK1PBQ0B3sOoAtNQrPCS3vgT18oHt20g0KhBNPSQVv/ydOvORbHjfnRB6r7TAGSsOfhD6HgXIt9lJwr0sxqdssCMZ1BqNghqsay7OUFGi+ZJLXZnVGHBttmq9IZv8zYMSV3pc/lwGH/HCwr6WMpYT/P1tteI8MXsE034gqbkjBMFgpbpmoPzP4tam67jePTTF9XyARA50PbAxz/cQMa6XSmlkVC5lExkjKWU4Mtp6B22URhGgKV704RccZjlyqbbvzWycdcmf/VWN14hFfxWwHt+A3Bv2mrW/2MSMy39RU9l0BpeiagKEGUwa0Grg==
  • 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 16:36:31 +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: AQHYs7NVSZ6RtK1DJkmDvOUuzqeVhq28SEyAgAG2wACAAAxAgIAAHKoAgAAPToCAABB1gA==
  • Thread-topic: [PATCH v2 7/7] xen/arm: introduce new xen,enhanced property value

Hi Julien

> On 24 Aug 2022, at 4:36 pm, Julien Grall <julien@xxxxxxx> wrote:
> 
> On 24/08/2022 15:42, Rahul Singh wrote:
>>> On 24 Aug 2022, at 1:59 pm, Julien Grall <julien@xxxxxxx> wrote:
>>> 
>>> 
>>> 
>>> On 24/08/2022 13:15, Rahul Singh wrote:
>>>> Hi Julien,
>>> 
>>> Hi Rahul,
>>> 
>>>> 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”);
>>>> -  }
>>> 
>>> You can't use "xen,enhanced" without dom0. In fact, you will end up to 
>>> dereference NULL in alloc_xenstore_evtchn(). That's because "xen,enhanced" 
>>> means the domain will be able to use Xenstored.
>>> 
>>> Now if you want to support your feature without a dom0. Then I think we 
>>> want to introduce an option which would be the same as "xen,enhanced" but 
>>> doesn't expose Xenstored.
>> If we modify the patch as below we can use the "xen,enhanced" for domUs 
>> without dom0.
>> I tested the patch and its works fine. Do you see any issue with this 
>> approach?
> 
> Yes. For two reasons:
> 1) It is muddying the meaning of "xen,enhanced". In particular a user may not 
> realize that Xenstore is not available if dom0 is not present.
> 2) It would be more complicated to handle the case where Xenstored lives in a 
> non-dom0 domain. I am not aware of anyone wanting this on Arm yet, but I 
> don't want to close the door.
> 
> So if you want to support create "xen,xen" without all the rest. Then I think 
> we need a different property value. I don't have a good suggestion for the 
> name.

Is that okay if we use the earlier approach, when user set  "xen,enhanced = 
evtchn” we will not call alloc_xenstore_evtchn()  
but we create hypervisor node with all fields.
 

Regards,
Rahul

 


Rackspace

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