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

Re: [PATCH v2 17/17] xen/arm: Add linux,pci-domain property for hwdom if not available.


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Thu, 23 Sep 2021 15:21:43 +0000
  • Accept-language: en-US
  • 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=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9r3/3zlgkI8hibVZupWUcz56kvYJylQd6uukQR2DlrY=; b=Xp1cETXRk9JPxwHwK6AnZY+NHPJzwTXiwlNmlbq6e3/Kk3xxIfLLtDPNGJlxOghs4Dlt4K8/sSdG5jfmIrwcFJ353IRgJIMtRWzzbcEL0zy7I14EYm9nmFkMiE/WAsQW9agt08PyMc3ipi9bUhCwf2YBqIfLRkN2EerXt/BPOHea99i+FUN9TWrI/3NAuLqnyfVq4FN3L5+9BzzS5BN1eutZUY5foJAIPc76UGEcjxPIRkHQ2e2D0gamLsmOdV5UzW4eMeT+RUK6SyzO883GSAENmghdRQOdOV48RO+xWOI2XBGrGtAbQIx9B2eXB5ZW+YmiX2ahJzNz84WgpdCQlg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j8UNjUhFliCzMYHfv7O759+cNTvrbfuYeG9o8tb0++r7TyR/vC3oJfZ7iohZrZw3oeyptrFVzEPljWHnQNNBCfmOrNVy5vL1pR+3PB7TsvEPgYazIXCkPjiLf92Bi05zhU1OFt7AwwR3U25MDlS3e12PUrrMZJzRS9Baq5v9aEQh0pS0XiQr7tf8FjqzCEowNM9YZk6X4WmjdU+zQKcuueSoXiS4e5h0R+dp5wzZV+hzNu5a9LrE0g9kfp8eo1eQnjMnD4cOhTc5PL9IW3bgkuIsj5v8df/mUw32O2Oite/kg7YtooXceBTIa9MGprCyjlN+oRkWEbsCkcUKiMR8bA==
  • Authentication-results-original: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Andre Przywara <Andre.Przywara@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 23 Sep 2021 15:22:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXr6bBfRQPNKXni0uaclDek7ufJKuw7NmAgADRRQA=
  • Thread-topic: [PATCH v2 17/17] xen/arm: Add linux,pci-domain property for hwdom if not available.

Hi Stefano,

> On 23 Sep 2021, at 3:52 am, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
> 
> On Wed, 22 Sep 2021, Rahul Singh wrote:
>> If the property is not present in the device tree node for host bridge,
>> XEN while creating the dtb for hwdom will create this property and
>> assigns the already allocated segment to the host bridge
>> so that XEN and linux will have the same segment for the host bridges.
>> 
>> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
>> ---
>> Change in v2:
>> - Add linux,pci-domain only when pci-passthrough command line option is 
>> enabeld
>> ---
>> xen/arch/arm/domain_build.c        | 16 ++++++++++++++++
>> xen/arch/arm/pci/pci-host-common.c | 21 +++++++++++++++++++++
>> xen/include/asm-arm/pci.h          |  9 +++++++++
>> 3 files changed, 46 insertions(+)
>> 
>> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
>> index 5eb83b12a1..83ab0d52cc 100644
>> --- a/xen/arch/arm/domain_build.c
>> +++ b/xen/arch/arm/domain_build.c
>> @@ -743,6 +743,22 @@ static int __init write_properties(struct domain *d, 
>> struct kernel_info *kinfo,
>>             return res;
>>     }
>> 
>> +    if ( pci_passthrough_enabled && dt_device_type_is_equal(node, "pci") )
> 
> Please use the accessor function is_pci_passthrough_enabled
Ack.

Regards,
Rahul




 


Rackspace

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