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

Re: [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Mon, 18 Oct 2021 08:05:55 +0000
  • Accept-language: en-GB, 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PYbXdiZrqnq/ewGWjWYobOuyBPl4ycZ1/MdqCuZY6pg=; b=Yz/Zwt8FcKw0ydjSqi8fpbOPaoHdOD3x76Ia57h1DKbMmU+mSf6462G/wyGJPm/W5aSddkE3E8XoMPhKD6bZtWvM7zSQdClNDQgTEthMdoR+1kA37BQ3fML7XiXqQDtpJZ6l7uJVrPD7f2511DcKcCWc5LCmLcJTNOeaMI78znzdL3sllXgeSp50wBB1gJlvJ4lZw0I6VmWh4I+l69jxz5FxO06GZ49+YQQ7iWNoqJkB5WU+Z4COs08WkWEc46+OafbpCvrngW9Q/bymQgEDLhSFT/5BOdXTlxJK6dMnZzT0vgGn4MWRiw5Gys4yKpZXtDGkPphtDeabwiiB6j0j7Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kXsXt9PApp+h4+ko+z12UBp/97hcp204jTolK8qb1YLvpvs7DUdK1iJ1guueHXiYRr//EOwrZ9HciPJxRH9/RCxYte4RX2slJeJhyY1DBqJfi7eLdlaJ4pSB1LFQNnCMueaSpZ0KaIg68hlg1RTS4XRqO3mUkf+rRlgPd7xm3kunrKO7qgy+EIRWnww2j8+Dv/vN8E/325CIQ2nxmyr7zQP/Fhmuwtm4PcxsbwgEGjP52LLmJEcztiJ1c97V/49rom5g3WeauApMpeF4Rx5HXAMZjNU0fWYYeOxjp3TsIc8C/b1JjZuTOLkZi++nR8hIaEjf5D6xUuFY7ITOjAErIg==
  • Authentication-results-original: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "iwj@xxxxxxxxxxxxxx" <iwj@xxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Paul Durrant <paul@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Mon, 18 Oct 2021 08:06:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXweULx+Lzp09rU0elFmx0jxVt5qvUT3iAgAACRwCAABIcgIAEAi0AgAAEIYA=
  • Thread-topic: [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM

Hi Jan,

> On 18 Oct 2021, at 08:51, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 15.10.2021 20:38, Julien Grall wrote:
>> 
>> 
>> On 15/10/2021 18:33, Bertrand Marquis wrote:
>>> Hi Julien,
>> 
>> Hi Bertrand,
>> 
>>> 
>>>> On 15 Oct 2021, at 18:25, Julien Grall <julien@xxxxxxx> wrote:
>>>> 
>>>> Hi Bertrand,
>>>> 
>>>> On 15/10/2021 17:51, Bertrand Marquis wrote:
>>>>> diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c
>>>>> index 3aa8c3175f..35e0190796 100644
>>>>> --- a/xen/drivers/passthrough/pci.c
>>>>> +++ b/xen/drivers/passthrough/pci.c
>>>>> @@ -756,6 +756,19 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn,
>>>>>      if ( !pdev->domain )
>>>>>      {
>>>>>          pdev->domain = hardware_domain;
>>>>> +#ifdef CONFIG_ARM
>>>>> +        /*
>>>>> +         * On ARM PCI devices discovery will be done by Dom0. Add vpci 
>>>>> handler
>>>>> +         * when Dom0 inform XEN to add the PCI devices in XEN.
>>>>> +         */
>>>>> +        ret = vpci_add_handlers(pdev);
>>>> 
>>>> I don't seem to find the code to remove __init_hwdom in this series. Are 
>>>> you intending to fix it separately?
>>> 
>>> Yes I think it is better to fix that in a new patch as it will require some 
>>> discussion as it will impact the x86 code if I just remove the flag now.
>> For the future patch series, may I ask to keep track of outstanding 
>> issues in the commit message (if you don't plan to address them before 
>> commiting) or after --- (if they are meant to be addressed before 
>> commiting)?
>> 
>> In this case, the impact on Arm is this would result to an hypervisor 
>> crash if called. If we drop __init_hwdom, the impact on x86 is Xen text 
>> will slightly be bigger after the boot time.
>> 
>> AFAICT, the code is not reachable on Arm (?).
> 
> Which re-raises my question towards testing of what is being added in
> this series. Supported also by the typo in v7 patch 1, which suggests
> that version wasn't even build-tested.

This was an honest mistake, we did build locally but without VPCI activated.
Once I discovered this by rerunning all tests (including one modifying the
code to activate VPCI), I signalled it on the mailing list and it was fixed in 
v8.

We did a lot of tests and tried to be as careful as possible but on the last 
rush
before the feature freeze deadline those can happen.

Regards
Bertrand

> 
> Jan
> 
>> Therefore, one could argue 
>> we this can wait after the week-end as this is a latent bug. Yet, I am 
>> not really comfortable to see knowningly buggy code merged.
>> 
>> Stefano, would you be willing to remove __init_hwdom while committing 
>> it? If not, can you update the commit message and mention this patch 
>> doesn't work as intended?
>> 
>> Cheers,




 


Rackspace

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