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

Re: [PATCH-4.16 v2] xen/arm: fix SBDF calculation for vPCI MMIO handlers


  • To: Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "iwj@xxxxxxxxxxxxxx" <iwj@xxxxxxxxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Thu, 4 Nov 2021 05:56:14 +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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6xD4aOzzrmyrPeI7wtP+M1VF7la7CPCoP50Qw3RVEu4=; b=CYOE1fnyuII+P4E4Si3KMeiBQv76wDNez/BLyWinw3wVj6DiWPLsRy21bZqxMcv+MHeRvBODdBmHTjLFBXN40wLFIFwfnsdOvJeAFHRrs9fVDdjHIIGSQuYeWqUr/ZGMrV7nmGQ6Ezs5vA8GEdFe4/6ZAw2H6HCUNgwiUMWXZQoz6Cr5co0WJ4HFym6SOwFhB3P7+6b8y2ZVOKEbPeGa3c4GtrgEy99ng87jc3v9QuSZac8T0BaELBtFNb4yeTosfIuiCGcLU85SFamtoVb3u6S/XdqEn8U8O+6npLl7G6DuaJRBirqeuV4qFbYGiNC1yKnKVH/n8NTBI/j8DtOeQQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fpGlxOynnZLAKn9i1SzdjC/oiuWs4UubwXyp+eBZOZj4nczPmZVZ/yFxy6nulRb/605nxUJW0wFWoW9HOmA6fygUyAju/AHMHRD7YqG0W6wXepnuizuMMWMzasX5nhno4aK9qAnaCM54a81x95706RGpgZQjURVrXFCT1SisfCZsQj8iyO6nyz4IgaP4unZcm+Ncv/DTaIENu4rAmJR8vKCEGFfpHNJChf0pUCGpsp875CIj1AowdNzU+nUluClpHRvIv07fINKtF35mvikzuxbYzj+kA79VEombGBsOeiOn0gJLx5uiw7FGzhN+BC9diGu6SkGNJ6/Pp3PkWn6Osg==
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>
  • Delivery-date: Thu, 04 Nov 2021 06:02:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHXz9uvpkVSL/P+h0KvYyBzgfugSKvw16AAgADfnQCAAGctgIAAwzYA
  • Thread-topic: [PATCH-4.16 v2] xen/arm: fix SBDF calculation for vPCI MMIO handlers

Hi, Julien!

On 03.11.21 20:17, Julien Grall wrote:
> Hi Oleksandr,
>
> On 03/11/2021 12:08, Oleksandr Andrushchenko wrote:
>>
>>
>> On 03.11.21 00:47, Stefano Stabellini wrote:
>>> On Tue, 2 Nov 2021, Oleksandr Andrushchenko wrote:
>>>> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>>>>
>>>> While in vPCI MMIO trap handlers for the guest PCI host bridge it is not
>>>> enough for SBDF translation to simply call VPCI_ECAM_BDF(info->gpa) as
>>>> the base address may not be aligned in the way that the translation
>>>> always work. If not adjusted with respect to the base address it may not be
>>>> able to properly convert SBDF.
>>>> Fix this by adjusting the gpa with respect to the host bridge base address
>>>> in a way as it is done for x86.
>>>>
>>>> Please note, that this change is not strictly required given the current
>>>> value of GUEST_VPCI_ECAM_BASE which has bits 0 to 27 clear, but could cause
>>>> issues if such value is changed, or when handlers for dom0 ECAM
>>>> regions are added as those will be mapped over existing hardware
>>>> regions that could use non-aligned base addresses.
>>>>
>>>> Fixes: d59168dc05a5 ("xen/arm: Enable the existing x86 virtual PCI support 
>>>> for ARM")
>>>>
>>>> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>>> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>>>
>>> Also, Ian already gave his release-ack.
>> Thank you,
>> Do I need to resend the patch with Acks? Or hopefully those can be applied
>> on commit?
>
> I have committed with the two tags applied.
Thank you
>
> Next time, please remember to carry Release-acked-by tag.
The Release-acked-by tag was sent by Ian *after* I've sent v2 of the patch
(this one) and it was in v1 mail thread....
>
> Cheers,
>

 


Rackspace

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