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

Re: [PATCH v2 10/11] vpci: Add initial support for virtual PCI bus topology


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Wed, 29 Sep 2021 11:56:24 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=WkZ3YPW1QEUhLOUhvyxRkmwjv6LmF2TOVLG0kFX4W5U=; b=N7NJT0HkaMLLeL87GeIoAVV4JZqaqzhBE6lIjCoXNZ97crS0Ocf8322I7oOJxA9pP1JXyWoksLEnk3Pi+KPEKtt1xxwsdIJ3cz5n5zZbWohXGHZ7Ac4iuwPrR5LplefM2Luty6y6Yq/7VThkfLEpPKvRHeVXAKQPpK7vQXboDLoYmXjRIexxAZefkdX9IjenCR6KxIhGSpo0EXVUgxJ8RUN/1TuqnAGrJIwFrne9//WNR44qPg5yQCxKzEm8LJXPR6e4IA8dhUN1SlXIL/jki5wd2aOVLnM1Uw2dUDQONE6rr6VZlWAxljlUl77Ywpzv4Cd/+COHdE5lXzX8U9eLJw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fxwMfsNziAeyefWfP6oI6n+OafV8PRc8Yzks1LtnJ0yCNKeGixebGW95bicuo4D5MSSu5UoA8czk9y6ERFAAc6Y1wIWcBh1HUOLvxxf3U8tUxwSdwD2157OxfHSdiUXkfSkVv2w2m2JuTG0p0D8aLv59AiaPzXduxB1HheSL7m3iB5xqTvcnfigrQpZNnF9tjDOBXay0y6RhkVZz8daFR6X1diu2CYTdzVkeC9RBgFeo//03etAzdqkBpyfWSIhsatKdrQzTaxgDT/0xI/wO8p2688jRy6HebhlyVom+hRPPmnlZe9Bcf9TRFMqLHnbHmjAVzUU6uUL9dc49Z0ec1A==
  • Authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=epam.com;
  • Cc: "julien@xxxxxxx" <julien@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Wed, 29 Sep 2021 11:56:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHXsHpEaYKJY1uGNUmlwbBKeBrI6Ku5GYwAgAAC+oCAAAUNAIAATmyAgAFQpACAAAGzgIAALsGA
  • Thread-topic: [PATCH v2 10/11] vpci: Add initial support for virtual PCI bus topology

On 29.09.21 12:09, Jan Beulich wrote:
> On 29.09.2021 11:03, Oleksandr Andrushchenko wrote:
>> Sorry for top posting, but this is a general question on this 
>> patch/functionality.
>>
>> Do you see we need to gate all this with CONFIG_HAS_VPCI_GUEST_SUPPORT
>> as this renders in somewhat dead code for x86 for now? I do think this still
>> needs to be in the common code though.
> I agree it wants to live in common code, but I'd still like the code to
> not bloat x86 binaries. Hence yes, I think there want to be
> "if ( !IS_ENABLED() )" early bailout paths or, whenever this isn't
> possible without breaking the build, respective #ifdef-s.

Then it needs to be defined as (xen/drivers/Kconfig):

config HAS_VPCI_GUEST_SUPPORT
     # vPCI guest support is only enabled for Arm now
     def_bool y if ARM
     depends on HAS_VPCI

Because it needs to be defined as "y" for Arm with vPCI support.

Otherwise it breaks the PCI passthrough feature, e.g. it compiles,

but the resulting binary behaves wrong.

Do you see this as an acceptable solution?

>
> Jan
>
>
Thank you,

Oleksandr

 


Rackspace

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