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

2021-11-02 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko 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 a

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

2021-11-02 Thread Stefano Stabellini
On Tue, 2 Nov 2021, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > 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 transl

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

2021-11-03 Thread Oleksandr Andrushchenko
On 03.11.21 00:47, Stefano Stabellini wrote: > On Tue, 2 Nov 2021, Oleksandr Andrushchenko wrote: >> From: Oleksandr Andrushchenko >> >> 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

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

2021-11-03 Thread Julien Grall
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 While in vPCI MMIO trap handlers for the guest PCI host bridge it is not enough for SBDF translati

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

2021-11-03 Thread Oleksandr Andrushchenko
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 While in vPCI MMIO t