[PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-22 Thread Rahul Singh
The existing VPCI support available for X86 is adapted for Arm. When the device is added to XEN via the hyper call “PHYSDEVOP_pci_device_add”, VPCI handler for the config space access is added to the Xen to emulate the PCI devices config space. A MMIO trap handler for the PCI ECAM space is registe

Re: [PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-22 Thread Stefano Stabellini
On Wed, 22 Sep 2021, Rahul Singh wrote: > The existing VPCI support available for X86 is adapted for Arm. > When the device is added to XEN via the hyper call > “PHYSDEVOP_pci_device_add”, VPCI handler for the config space > access is added to the Xen to emulate the PCI devices config space. > > A

Re: [PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-23 Thread Rahul Singh
Hi Stefano, > On 23 Sep 2021, at 3:41 am, Stefano Stabellini wrote: > > On Wed, 22 Sep 2021, Rahul Singh wrote: >> The existing VPCI support available for X86 is adapted for Arm. >> When the device is added to XEN via the hyper call >> “PHYSDEVOP_pci_device_add”, VPCI handler for the config spac

Re: [PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-24 Thread Oleksandr Andrushchenko
[snip] >>> index d774a6154e..633e89ac13 100644 >>> --- a/xen/drivers/passthrough/pci.c >>> +++ b/xen/drivers/passthrough/pci.c >>> @@ -767,6 +767,18 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, >>> else >>> iommu_enable_device(pdev); >>> >>> +#ifdef CONFIG_ARM >>> +/* >>> +

Re: [PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-24 Thread Jan Beulich
On 23.09.2021 04:41, Stefano Stabellini wrote: > On Wed, 22 Sep 2021, Rahul Singh wrote: >> --- a/xen/drivers/passthrough/pci.c >> +++ b/xen/drivers/passthrough/pci.c >> @@ -767,6 +767,18 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, >> else >> iommu_enable_device(pdev); >> >> +#

Re: [PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-24 Thread Jan Beulich
On 22.09.2021 13:35, Rahul Singh wrote: > @@ -623,7 +624,7 @@ int arch_sanitise_domain_config(struct > xen_domctl_createdomain *config) > unsigned int max_vcpus; > > /* HVM and HAP must be set. IOMMU may or may not be */ > -if ( (config->flags & ~XEN_DOMCTL_CDF_iommu) != > +if

Re: [PATCH v2 14/17] xen/arm: Enable the existing x86 virtual PCI support for ARM.

2021-09-28 Thread Rahul Singh
Hi Jan > On 24 Sep 2021, at 8:44 am, Jan Beulich wrote: > > On 22.09.2021 13:35, Rahul Singh wrote: >> @@ -623,7 +624,7 @@ int arch_sanitise_domain_config(struct >> xen_domctl_createdomain *config) >> unsigned int max_vcpus; >> >> /* HVM and HAP must be set. IOMMU may or may not be */