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

Re: SR-IOV: do we need to virtualize in Xen or rely on Dom0?


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Thu, 10 Jun 2021 12:25:22 +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:X-MS-Exchange-SenderADCheck; bh=SD3e62QSq06Qs6mZwDP6esjNvXLbwMv7H7AFGC4dZJI=; b=g0/BpcPtLTB86HgLxpSdXgDoTLKgjH0Ss17qpJtYFwAy7hsMiUXyoi3GX3sYr7SXEOrXWjMhN5R3V+LJtnwRHUOObV4Put/DSmMvyohxPLUZ/xmyg5VJ0xm5Sh91COG/KhwehjI9slagVVP2mxJ5yBzUvdbHKE4ULYuBu4OHH0RGfSQTmAncgS0DoLD6msyqxqRMOBAoEboYp5i+uV8C3aTUDkYGpMMawpKClBhK/ojgexeU/n2Nt3m3oa3gQIuk3hzKyZfgNt8/x09uRWrClqWkCvyo2u6iRgMwU+/N0Tto0IZ7vaIUf1N0q6lTVqRi40CzZQoaXHVpDo8tI4CXog==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IK99l+YSQ7utnUZlX5MHTcHiwUGFdWuOCb7A3uXYFjMVi5Ks2UmSOCJCSaMa0EnHPTyFalBpJ80gs1e5h3E5KtqdRrJqqSunXv5OoYzLquehhtlvZcLBQXzNYfwnsnXdR2WNxpaUyfKZiF3LfFPtAOhD6K34K834TTsB41d1g/i7ai38tTVW37/TD1nRo6QKlBy/NJO/CLdiqmr+NYdA3+hKelcxYsqZW36dj+lgVNAXbMRUsNpGfrSH44NqUM1eEvRaBgE2caD3+e/SFHB7FD1qk0FmtEfR5OKGFGaxS1gvr5kfZh4DAJBFrhPqQdUAolUiajxEChbh13bpxRMQsA==
  • Authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 10 Jun 2021 12:25:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHXWQwW/O3obtZgqkmpGRvt7ZNDkasM6aMAgAAjXoCAAA0jAIAAEBMAgAAEiwCAAAaCgA==
  • Thread-topic: SR-IOV: do we need to virtualize in Xen or rely on Dom0?

On 10.06.21 15:02, Jan Beulich wrote:
> On 10.06.2021 13:45, Oleksandr Andrushchenko wrote:
>> Hi, Jan!
>>
>> On 10.06.21 13:48, Jan Beulich wrote:
>>> On 10.06.2021 12:01, Oleksandr Andrushchenko wrote:
>>>> On 10.06.21 10:54, Roger Pau Monné wrote:
>>>>> OTOH if we properly trap accesses to the SR-IOV capability (like it
>>>>> was proposed in [1] from your references) we won't have to modify OSes
>>>>> that want to run as hardware domains in order to handle SR-IOV devices.
>>>> Out of curiosity, could you please name a few? I do understand that
>>>>
>>>> we do want to support unmodified OSes and this is indeed important.
>>>>
>>>> But, still what are the other OSes which do support Xen + PCI passthrough?
>>> I think Roger saying "want" meant to cover ones which currently don't,
>>> and which would have to undergo more extensive changes if they were to
>>> be enabled.
>> Fair enough. Do you think we would also need to re-work the existing code
>>
>> in Xen to support normal devices (not SR-IOV), e.g. we currently rely on
>>
>> PHYSDEVOP_XXX and other Linux specifics.
> Yes, work in that area would also be needed. For example we'd need to
> scan buses / segments as they become accessible. Right now we only scan
> segment 0, and even that's only possible because on x86 mmconfig is not
> the only way to access config space.
>
>> And even if SR-IOV is implemented
>>
>> in Xen this won't allow those OSes to stay unmodified, including FreeBSD.
> Of course, it's the nature of PVH (as opposed to HVM) that OSes need
> modification. The question is the scope thereof.

Ok, then it seems I need to get [1] back into the picture.

I have modified vPCI code a lot for ARM support, so [1] will not apply

as is anymore and needs to be re-worked. But, still it can mostly be re-used


> Jan
>
Thank you,

Oleksandr

[1] https://lists.xenproject.org/archives/html/xen-devel/2018-07/msg01494.html

 


Rackspace

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