Hi All,
I am using QEMU version "v5.2.0" and getting below error when running on arm64
$ qemu-system-aarch64 --version
ERROR:../qom/object.c:711:object_new_with_type: assertion failed: (type != NULL)
Bail out! ERROR:../qom/object.c:711:object_new_with_type: assertion failed:
(type != NULL)
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Tuesday, May 12, 2020 8:39 AM
> To: Bharat Bhushan ; eric.auger@gmail.com;
> qemu-devel@nongnu.org; qemu-...@nongnu.org; peter.mayd...@linaro.org;
> m...@redhat.com; jean-phili...@linaro.org; pet...
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Monday, May 11, 2020 2:19 PM
> To: Bharat Bhushan ; eric.auger@gmail.com;
> qemu-devel@nongnu.org; qemu-...@nongnu.org; peter.mayd...@linaro.org;
> m...@redhat.com; jean-phili...@linaro.org; pet...
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Monday, May 11, 2020 12:26 PM
> To: Bharat Bhushan ; eric.auger@gmail.com;
> qemu-devel@nongnu.org; qemu-...@nongnu.org; peter.mayd...@linaro.org;
> m...@redhat.com; jean-phili...@linaro.org; pet...
Hi Eric,
> -Original Message-
> From: Eric Auger
> Sent: Friday, May 8, 2020 11:01 PM
> To: eric.auger@gmail.com; eric.au...@redhat.com; qemu-devel@nongnu.org;
> qemu-...@nongnu.org; peter.mayd...@linaro.org; m...@redhat.com; jean-
> phili...@linaro.org; Bhar
Hi Eric,
On Tue, May 5, 2020 at 3:16 PM Bharat Bhushan wrote:
>
> hi Eric,
>
> On Tue, May 5, 2020 at 3:00 PM Auger Eric wrote:
> >
> > Hi Bharat,
> >
> > On 5/5/20 11:25 AM, Bharat Bhushan wrote:
> > > Hi Eric,
> > >
> > > On F
hi Eric,
On Tue, May 5, 2020 at 3:00 PM Auger Eric wrote:
>
> Hi Bharat,
>
> On 5/5/20 11:25 AM, Bharat Bhushan wrote:
> > Hi Eric,
> >
> > On Fri, Apr 24, 2020 at 7:47 PM Auger Eric wrote:
> >>
> >> Hi Bharat,
> >>
> >
Hi Eric,
On Fri, Apr 24, 2020 at 7:47 PM Auger Eric wrote:
>
> Hi Bharat,
>
> On 4/2/20 11:01 AM, Bharat Bhushan wrote:
> > Hi Eric/Alex,
> >
> >> -Original Message-
> >> From: Alex Williamson
> >> Sent: Thursday, March 26, 2020 11
On Fri, Apr 24, 2020 at 7:22 PM Auger Eric wrote:
>
> Hi Bharat,
> On 4/23/20 6:09 PM, Jean-Philippe Brucker wrote:
> > Hi Bharat,
> >
> > A few more things found while rebasing
> >
> > On Mon, Mar 23, 2020 at 02:16:16PM +0530, Bharat Bhushan wrote:
>
Hi Eric/Alex,
> -Original Message-
> From: Alex Williamson
> Sent: Thursday, March 26, 2020 11:23 PM
> To: Auger Eric
> Cc: Bharat Bhushan ; peter.mayd...@linaro.org;
> pet...@redhat.com; eric.auger@gmail.com; kevin.t...@intel.com;
> m...@redhat.com; Tomasz
Hi Alex, Eric,
> -Original Message-
> From: Alex Williamson
> Sent: Thursday, March 26, 2020 11:23 PM
> To: Auger Eric
> Cc: Bharat Bhushan ; peter.mayd...@linaro.org;
> pet...@redhat.com; eric.auger@gmail.com; kevin.t...@intel.com;
> m...@redhat.com; Tomasz
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Thursday, March 26, 2020 9:18 PM
> To: Bharat Bhushan ; peter.mayd...@linaro.org;
> pet...@redhat.com; eric.auger@gmail.com; alex.william...@redhat.com;
> kevin.t...@intel.com; m...@redhat.com; Tomasz No
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Thursday, March 26, 2020 9:36 PM
> To: Bharat Bhushan ; peter.mayd...@linaro.org;
> pet...@redhat.com; eric.auger@gmail.com; alex.william...@redhat.com;
> kevin.t...@intel.com; m...@redhat.com; Tomasz No
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Thursday, March 26, 2020 9:22 PM
> To: Bharat Bhushan ; peter.mayd...@linaro.org;
> pet...@redhat.com; eric.auger@gmail.com; alex.william...@redhat.com;
> kevin.t...@intel.com; m...@redhat.com; Tomasz No
This patch implements the PROBE request. Currently supported
page size mask per endpoint is returned. Also append a NONE
property in the end.
Signed-off-by: Bharat Bhushan
Signed-off-by: Eric Auger
---
include/standard-headers/linux/virtio_iommu.h | 6 +
hw/virtio/virtio-iommu.c
Finally add notify_flag_changed() to for memory-region
access flag iommu flag change notifier
Finally add the memory notifier
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 22 ++
hw/virtio/trace-events | 2 ++
2 files changed, 24 insertions(+)
diff --git
iommu-notifier are called when a device is attached
or detached to as address-space.
This is needed for VFIO.
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 49
1 file changed, 49 insertions(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw
Default replay does not work with virtio-iommu,
so this patch provide virtio-iommu replay functionality.
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 44
hw/virtio/trace-events | 1 +
2 files changed, 45 insertions(+)
diff --git a/hw
Add optional interface to set page size mask.
Currently this is set global configuration and not
per endpoint.
Signed-off-by: Bharat Bhushan
---
include/hw/virtio/virtio-iommu.h | 1 +
hw/virtio/virtio-iommu.c | 9 +
2 files changed, 10 insertions(+)
diff --git a/include/hw
This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request to
notify registered iommu-notifier. Which will call vfio
notifier to map/unmap region in iommu.
Signed-off-by: Bharat Bhushan
Signed-off-by: Eric Auger
---
include/hw/virtio/virtio-iommu.h | 2 +
hw/virtio/virtio-iommu.c | 67
This patch series integrates VFIO with virtio-iommu.
This is only applicable for PCI pass-through with virtio-iommu.
This series is available at:
https://github.com/bharat-bhushan-devel/qemu.git
virtio-iommu-vfio-integration-v8
This is tested with assigning more than one pci devices to Virtual
Set iommu supported page size mask same as host Linux
supported page size mask.
Signed-off-by: Bharat Bhushan
---
hw/vfio/common.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index c586edf47a..6ea50d696f 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio
Allow to set page size mask to be supported by iommu.
This is required to expose page size mask compatible with
host with virtio-iommu.
Signed-off-by: Bharat Bhushan
---
include/exec/memory.h | 20
memory.c | 10 ++
2 files changed, 30 insertions
On ARM, the MSI doorbell is translated by the virtual IOMMU.
As such address_space_translate() returns the MSI controller
MMIO region and we get an "iommu map to non memory area"
message. Let's remove this latter.
Signed-off-by: Eric Auger
Signed-off-by: Bharat Bhushan
---
hw/vfio/co
Hi Eric/Jean,
On Wed, Mar 18, 2020 at 8:05 PM Bharat Bhushan wrote:
>
> Hi Eric,
>
> On Wed, Mar 18, 2020 at 4:58 PM Auger Eric wrote:
> >
> > Hi Bharat,
> >
> > On 3/18/20 11:11 AM, Bharat Bhushan wrote:
> > > Add optional interface to set page
Hi Eric,
On Wed, Mar 18, 2020 at 4:58 PM Auger Eric wrote:
>
> Hi Bharat,
>
> On 3/18/20 11:11 AM, Bharat Bhushan wrote:
> > Add optional interface to set page size mask.
> > Currently this is set global configuration and not
> > per endpoint.
> &g
> -Original Message-
> From: Jean-Philippe Brucker
> Sent: Wednesday, March 18, 2020 4:48 PM
> To: Bharat Bhushan
> Cc: Auger Eric ; Peter Maydell
> ; kevin.t...@intel.com; Tomasz Nowicki [C]
> ; m...@redhat.com; drjo...@redhat.com;
> pet...@redhat.co
Hi Jean,
On Tue, Mar 17, 2020 at 9:29 PM Jean-Philippe Brucker
wrote:
>
> On Tue, Mar 17, 2020 at 02:46:55PM +0530, Bharat Bhushan wrote:
> > Hi Jean,
> >
> > On Tue, Mar 17, 2020 at 2:23 PM Jean-Philippe Brucker
> > wrote:
> > >
> > > On Tue,
Finally add notify_flag_changed() to for memory-region
access flag iommu flag change notifier
Finally add the memory notifier
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 22 ++
hw/virtio/trace-events | 2 ++
2 files changed, 24 insertions(+)
diff --git
iommu-notifier are called when a device is attached
or detached to as address-space.
This is needed for VFIO.
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 49
1 file changed, 49 insertions(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw
Default replay does not work with virtio-iommu,
so this patch provide virtio-iommu replay functionality.
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 44
hw/virtio/trace-events | 1 +
2 files changed, 45 insertions(+)
diff --git a/hw
This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request to
notify registered iommu-notifier. Which will call vfio
notifier to map/unmap region in iommu.
Signed-off-by: Bharat Bhushan
Signed-off-by: Eric Auger
---
include/hw/virtio/virtio-iommu.h | 2 +
hw/virtio/virtio-iommu.c | 67
Allow to set page size mask to be supported by iommu.
This is required to expose page size mask compatible with
host with virtio-iommu.
Signed-off-by: Bharat Bhushan
---
v7->v8:
- new patch
include/exec/memory.h | 20
memory.c | 10 ++
2 files chan
Set iommu supported page size mask same as host Linux
supported page size mask.
Signed-off-by: Bharat Bhushan
---
v7->v8:
- new patch
hw/vfio/common.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index c586edf47a..6ea50d696f 100644
--- a/hw/v
This patch series integrates VFIO with virtio-iommu.
This is only applicable for PCI pass-through with virtio-iommu.
This series is available at:
https://github.com/bharat-bhushan-devel/qemu.git
virtio-iommu-vfio-integration-v8
This is tested with assigning more than one pci devices to Virtual
On ARM, the MSI doorbell is translated by the virtual IOMMU.
As such address_space_translate() returns the MSI controller
MMIO region and we get an "iommu map to non memory area"
message. Let's remove this latter.
Signed-off-by: Eric Auger
Signed-off-by: Bharat Bhushan
---
hw/vfio/co
Add optional interface to set page size mask.
Currently this is set global configuration and not
per endpoint.
Signed-off-by: Bharat Bhushan
---
v7->v8:
- new patch
hw/virtio/virtio-iommu.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw/vir
Hi Jean,
On Tue, Mar 17, 2020 at 2:23 PM Jean-Philippe Brucker
wrote:
>
> On Tue, Mar 17, 2020 at 12:40:39PM +0530, Bharat Bhushan wrote:
> > Hi Jean,
> >
> > On Mon, Mar 16, 2020 at 3:41 PM Jean-Philippe Brucker
> > wrote:
> > >
> > > Hi Bharat,
r 16, 2020 at 02:40:00PM +0530, Bharat Bhushan wrote:
> > > >>> First issue is: your guest can use 4K page and your host can use 64KB
> > > >>> pages. In that case VFIO_DMA_MAP will fail with -EINVAL. We must
> > > >>> devise
> > > &
Hi Eric,
On Mon, Mar 16, 2020 at 1:15 PM Bharat Bhushan wrote:
>
> Hi Eric,
>
> On Mon, Mar 16, 2020 at 1:02 PM Auger Eric wrote:
> >
> > Hi Bharat,
> >
> > On 3/16/20 7:41 AM, Bharat Bhushan wrote:
> > > Hi Eric,
> > >
> > > On F
Hi Eric,
On Mon, Mar 16, 2020 at 2:35 PM Auger Eric wrote:
>
> Hi Bharat,
>
> On 3/16/20 9:58 AM, Bharat Bhushan wrote:
> > Hi Eric,
> >
> > On Mon, Mar 16, 2020 at 1:15 PM Bharat Bhushan
> > wrote:
> >>
> >> Hi Eric,
> >>
> &g
Hi Eric,
On Mon, Mar 16, 2020 at 1:02 PM Auger Eric wrote:
>
> Hi Bharat,
>
> On 3/16/20 7:41 AM, Bharat Bhushan wrote:
> > Hi Eric,
> >
> > On Fri, Mar 13, 2020 at 8:11 PM Auger Eric wrote:
> >>
> >> Hi Bharat
> >>
> >> On 3/13
Hi Eric,
On Fri, Mar 13, 2020 at 8:11 PM Auger Eric wrote:
>
> Hi Bharat
>
> On 3/13/20 8:48 AM, Bharat Bhushan wrote:
> > iommu-notifier are called when a device is attached
> IOMMU notifiers
> > or detached to as address-space.
> > This is needed for VFIO.
>
Hi Eric,
On Fri, Mar 13, 2020 at 7:55 PM Auger Eric wrote:
>
> Hi Bharat,
> On 3/13/20 8:48 AM, Bharat Bhushan wrote:
> > This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request to
> > notify registered iommu-notifier. Which will call vfio
> s/iommu-notifier/iommu-notifiers
&
Default replay does not work with virtio-iommu,
so this patch provide virtio-iommu replay functionality.
Signed-off-by: Bharat Bhushan
---
hw/virtio/trace-events | 1 +
hw/virtio/virtio-iommu.c | 44
2 files changed, 45 insertions(+)
diff --git a/hw
Finally add notify_flag_changed() to for memory-region
access flag iommu flag change notifier
Finally add the memory notifier
Signed-off-by: Bharat Bhushan
---
hw/virtio/trace-events | 2 ++
hw/virtio/virtio-iommu.c | 32
2 files changed, 34 insertions
This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request to
notify registered iommu-notifier. Which will call vfio
notifier to map/unmap region in iommu.
Signed-off-by: Bharat Bhushan
Signed-off-by: Eric Auger
---
hw/virtio/trace-events | 2 +
hw/virtio/virtio-iommu.c | 66
This patch series integrates VFIO with virtio-iommu.
This is only applicable for PCI pass-through with virtio-iommu.
This series is available at:
https://github.com/bharat-bhushan-devel/qemu.git
virtio-iommu-vfio-integration-v7
This is tested with assigning more than one pci devices to Virtual
This patch series integrates VFIO with virtio-iommu.
This is only applicable for PCI pass-through with virtio-iommu.
This series is available at:
https://github.com/bharat-bhushan-devel/qemu.git
virtio-iommu-vfio-integration-v6
This is tested with assigning more than one pci devices to Virtual
iommu-notifier are called when a device is attached
or detached to as address-space.
This is needed for VFIO.
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 47
1 file changed, 47 insertions(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw
On ARM, the MSI doorbell is translated by the virtual IOMMU.
As such address_space_translate() returns the MSI controller
MMIO region and we get an "iommu map to non memory area"
message. Let's remove this latter.
Signed-off-by: Eric Auger
Signed-off-by: Bharat Bhushan
---
hw/vfio/co
Default replay does not work with virtio-iommu,
so this patch provide virtio-iommu replay functionality.
Signed-off-by: Bharat Bhushan
---
hw/virtio/trace-events | 1 +
hw/virtio/virtio-iommu.c | 44
2 files changed, 45 insertions(+)
diff --git a/hw
iommu-notifier are called when a device is attached
or detached to as address-space.
This is needed for VFIO.
Signed-off-by: Bharat Bhushan
---
hw/virtio/virtio-iommu.c | 47
1 file changed, 47 insertions(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw
On ARM, the MSI doorbell is translated by the virtual IOMMU.
As such address_space_translate() returns the MSI controller
MMIO region and we get an "iommu map to non memory area"
message. Let's remove this latter.
Signed-off-by: Eric Auger
Signed-off-by: Bharat Bhushan
---
hw/vfio/co
Finally add notify_flag_changed() to for memory-region
access flag iommu flag change notifier
Finally add the memory notifier
Signed-off-by: Bharat Bhushan
---
hw/virtio/trace-events | 2 ++
hw/virtio/virtio-iommu.c | 32
2 files changed, 34 insertions
This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request to
notify registered iommu-notifier. Which will call vfio
notifier to map/unmap region in iommu.
Signed-off-by: Bharat Bhushan
Signed-off-by: Eric Auger
---
hw/virtio/trace-events | 2 +
hw/virtio/virtio-iommu.c | 66
Hi Eric,
On Fri, Feb 28, 2020 at 3:06 PM Auger Eric wrote:
> Hi Bharat,
>
> On 11/27/18 7:52 AM, Bharat Bhushan wrote:
> > This patch series integrates VFIO with virtio-iommu. This is
> > tested with assigning 2 pci devices to Virtual Machine.
> >
> > This versi
.com
> Cc: kevin.t...@intel.com; t...@semihalf.com; Bharat Bhushan
> ; pet...@redhat.com
> Subject: [RFC v9 00/17] VIRTIO-IOMMU device
>
> This series rebases the virtio-iommu device on qemu 3.1.0-rc2 and
> implements the v0.8(.1) virtio-iommu spec [1]. The pci proxy for the vir
.com
> Cc: kevin.t...@intel.com; t...@semihalf.com; Bharat Bhushan
> ; pet...@redhat.com
> Subject: [RFC v9 15/17] hw/arm/virt: Add the virtio-iommu device tree
> mappings
>
> Adds the "virtio,pci-iommu" node in the host bridge node and the RID
> mapping, excluding the IOM
stered before it is called. So having replay of
virtio-iommu helps to take no action if device not yet
probed/attached.
Signed-off-by: Bharat Bhushan
---
v4->v5:
- Rebase to v9 version from Eric (no change)
hw/virtio/trace-events | 1 +
hw/virtio/virtio-iommu.c | 38 +
Finally handle the IOMMU Notifier flag changes
for the iommu-memory region.
Signed-off-by: Bharat Bhushan
---
v4->v5:
- Rebase to v9 version from Eric (no change)
hw/virtio/trace-events | 2 ++
hw/virtio/virtio-iommu.c | 31 +++
2 files changed, 33 inserti
This patch extend the ATTACH/DETACH command handling to
call iommu-notifier to map/unmap the memory region in IOMMU
using vfio. This replay existing address space mappings on
attach command and remove existing address space mappings
on detach command.
Signed-off-by: Bharat Bhushan
Signed-off
ents
v1->v2:
- Added trace events
- removed vSMMU3 link in patch description
Bharat Bhushan (4):
virtio-iommu: Add iommu notifier for iommu-map/unmap
virtio-iommu: Call iommu notifier on attach/detach
virtio-iommu: add virtio-iommu replay
virtio-iommu: handle IOMMU Notifier flag ch
This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request
handling to notify registered iommu-notifier. These
iommu-notifier maps the requested region in IOMMU using vfio.
Signed-off-by: Bharat Bhushan
---
v4->v5:
- Rebase to v9 version from Eric
- PCIe device hotplug fix
hw/virtio/trace-eve
From: Eric Auger
On ARM, the MSI doorbell is translated by the virtual IOMMU.
As such address_space_translate() returns the MSI controller
MMIO region and we get an "iommu map to non memory area"
message. Let's remove this latter.
Signed-off-by: Eric Auger
Signed-off-by: Bharat Bhush
Hi Eric,
> -Original Message-
> From: Auger Eric
> Sent: Friday, November 23, 2018 1:23 PM
> To: Bharat Bhushan ;
> eric.auger@gmail.com; qemu-devel@nongnu.org; qemu-
> a...@nongnu.org; peter.mayd...@linaro.org; m...@redhat.com; jean-
> philippe.br
.com
> Cc: kevin.t...@intel.com; t...@semihalf.com; Bharat Bhushan
> ; pet...@redhat.com
> Subject: [RFC v9 06/17] virtio-iommu: Endpoint and domains structs and
> helpers
>
> This patch introduce domain and endpoint internal datatypes. Both are
> stored in RB trees. The d
.com
> Cc: kevin.t...@intel.com; t...@semihalf.com; Bharat Bhushan
> ; pet...@redhat.com
> Subject: [RFC v8 15/18] hw/arm/virt: Add virtio-iommu to the virt board
>
> Both the virtio-iommu device and its dedicated mmio transport get
> instantiated when requested.
>
> Signed-
Hi Alex, Eric,
> -Original Message-
> From: Qemu-devel [mailto:qemu-devel-
> bounces+bharat.bhushan=nxp@nongnu.org] On Behalf Of Bharat
> Bhushan
> Sent: Friday, October 06, 2017 9:16 AM
> To: Auger Eric <eric.au...@redhat.com>; Linu Cherian
> <linuc.dec.
> >> Thanks
> >>
> >> Eric
> >>>
> >>> However you should be allowed to map 1 sg element of 5 pages and
> >>> then notify the host about this event I think. Still looking at the
> >>> code...
> >>>
> >>> I still can't reproduce the issue at the moment. What kind of device
> >>> are you
..@redhat.com;
> qemu-...@nongnu.org; qemu-devel@nongnu.org; jean-
> philippe.bruc...@arm.com
> Cc: will.dea...@arm.com; kevin.t...@intel.com; marc.zyng...@arm.com;
> christoffer.d...@linaro.org; drjo...@redhat.com; w...@redhat.com; Bharat
> Bhushan <bharat.bhus...@nxp.com>; pet...@redhat.c
Hi,
> -Original Message-
> From: Linu Cherian [mailto:linuc.dec...@gmail.com]
> Sent: Wednesday, September 27, 2017 1:11 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>
> Cc: eric.au...@redhat.com; eric.auger@gmail.com;
> peter.mayd...@linaro.org; alex.
Hi Peter,
> -Original Message-
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Wednesday, September 27, 2017 12:32 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>
> Cc: eric.au...@redhat.com; eric.auger@gmail.com;
> peter.mayd...@linaro.org; alex.
to real-physical. While looking at vfio_listener_region_add(), it does not
create initial mapping in IOMMU and relies on guest to create mapping. Is this
something known or I am missing something?
Thanks
-Bharat
> -Original Message-
> From: Bharat Bhushan [mailto:bharat.bhus...@n
Default replay does not work with virtio-iommu,
so this patch provide virtio-iommu replay functionality.
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
---
v3->v4:
- Replay functionality moved in separate patch
- No other changes
hw/virtio/trace-events | 1 +
hw/virt
Finally add notify_flag_changed() to for memory-region
access flag iommu flag change notifier
Finally add the memory notifier
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
---
v3->v4:
- notify_flag_changed functionality moved in separate patch
- No other changes
hw/vir
Translate msi address if device is behind virtio-iommu.
This logic is similar to vSMMUv3/Intel iommu emulation.
This RFC patch does not handle the case where both vsmmuv3 and
virtio-iommu are available.
Signed-off-by: Eric Auger <eric.au...@redhat.com>
Signed-off-by: Bharat Bhushan <bh
iommu-notifier are called when a device is attached
or detached to as address-space.
This is needed for VFIO.
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
Signed-off-by: Eric Auger <eric.au...@redhat.com>
---
v3->v4:
Follwoig fixes by Eric
- Retu
is based on top of v2.10-rc0 that
- Fixed issue with two PCI devices
- Addressed review comments
v1->v2:
- Added trace events
- removed vSMMU3 link in patch description
Bharat Bhushan (5):
target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route
virtio-iommu: Add iom
This patch extends VIRTIO_IOMMU_T_MAP/UNMAP request to
notify registered iommu-notifier.
This is needed for VFIO support,
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
Signed-off-by: Eric Auger <eric.au...@redhat.com>
---
v3->v4:
Follwoig fixes by Eric
- Calling virtio_i
> -Original Message-
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Monday, September 18, 2017 1:18 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>;
> eric.auger@gmail.com; peter.mayd...@linaro.org;
> alex.william...@redhat.com; m...@redhat.
u-devel@nongnu.org; jean-
> philippe.bruc...@arm.com
> Cc: will.dea...@arm.com; kevin.t...@intel.com; marc.zyng...@arm.com;
> christoffer.d...@linaro.org; drjo...@redhat.com; w...@redhat.com;
> t...@semihalf.com; Bharat Bhushan <bharat.bhus...@nxp.com>;
> pet...@redhat.com; linuc
u-devel@nongnu.org; jean-
> philippe.bruc...@arm.com
> Cc: will.dea...@arm.com; kevin.t...@intel.com; marc.zyng...@arm.com;
> christoffer.d...@linaro.org; drjo...@redhat.com; w...@redhat.com;
> t...@semihalf.com; Bharat Bhushan <bharat.bhus...@nxp.com>;
> pet...@redhat.com; linuc
Hi Eric,
> -Original Message-
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Wednesday, August 23, 2017 10:12 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>;
> eric.auger@gmail.com; peter.mayd...@linaro.org;
> alex.william...@redhat.co
Hi Eric,
> -Original Message-
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Thursday, August 17, 2017 9:03 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>;
> eric.auger@gmail.com; peter.mayd...@linaro.org;
> alex.william...@redhat.com; m...@redhat.
Translate msi address if device is behind virtio-iommu.
This logic is similar to vSMMUv3/Intel iommu emulation.
This RFC patch does not handle the case where both vsmmuv3 and
virtio-iommu are available.
Signed-off-by: Eric Auger <eric.au...@redhat.com>
Signed-off-by: Bharat Bhushan <bh
at
- Fixed issue with two PCI devices
- Addressed review comments
v1->v2:
- Added trace events
- removed vSMMU3 link in patch description
Bharat Bhushan (2):
target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route
virtio-iommu: vfio integration with virtio-iommu
h
tification is called for given device
This assumes that devid passed in virtio_iommu_attach is same as devfn
This assumption is based on 1:1 mapping of requested-id with device-id
in QEMU.
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
---
v2->v3:
- Addressed review com
> -Original Message-
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Thursday, August 17, 2017 9:03 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>;
> eric.auger@gmail.com; peter.mayd...@linaro.org;
> alex.william...@redhat.com; m...@redhat.com; qem
Hi Eric,
> -Original Message-
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Monday, July 31, 2017 6:38 PM
> To: Peter Xu <pet...@redhat.com>; Bharat Bhushan
> <bharat.bhus...@nxp.com>
> Cc: w...@redhat.com; peter.mayd...@linaro.org; kevin.t...@i
nu.org; qemu-devel@nongnu.org; jean-
> philippe.bruc...@arm.com
> Cc: will.dea...@arm.com; kevin.t...@intel.com; marc.zyng...@arm.com;
> christoffer.d...@linaro.org; drjo...@redhat.com; w...@redhat.com;
> t...@semihalf.com; Bharat Bhushan <bharat.bhus...@nxp.com>;
> pet...@redhat.c
This patch allows virtio-iommu protection for PCI
device-passthrough.
MSI region is mapped by current version of virtio-iommu driver.
This MSI region mapping in not getting pushed on hw iommu
vfio_get_vaddr() allows only ram-region. This RFC patch needed
to be improved.
Signed-off-by: Bharat
Translate msi address if device is behind virtio-iommu.
This logic is similar to vSMMUv3/Intel iommu emulation.
This RFC patch does not handle the case where both vsmmuv3 and
virtio-iommu are available.
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
---
v1-v2:
- Added trace
/html/qemu-devel/2017-07/msg01796.html;
v1-v2:
- Added trace events
- removed vSMMU3 link in patch description
Bharat Bhushan (2):
target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route
virtio-iommu: vfio integration with virtio-iommu
hw/virtio/trace-events | 5 +
u-...@nongnu.org;
> qemu-devel@nongnu.org; jean-philippe.bruc...@arm.com;
> w...@redhat.com; kevin.t...@intel.com; Bharat Bhushan
> <bharat.bhus...@nxp.com>; marc.zyng...@arm.com; t...@semihalf.com;
> will.dea...@arm.com; drjo...@redhat.com; robin.mur...@arm.com;
> christoffer.d..
Fix-up MSI address if it translate via virtual iommu.
This code is based on http://patchwork.ozlabs.org/patch/785951/
Signed-off-by: Bharat Bhushan <bharat.bhus...@nxp.com>
---
target/arm/kvm.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/target/arm/kvm.c b/
This patch allows virtio-iommu protection for PCI
device-passthrough.
MSI region is mapped by current version of virtio-iommu driver.
This MSI region mapping in not getting pushed on hw iommu
vfio_get_vaddr() allows only ram-region. This RFC patch needed
to be improved.
Signed-off-by: Bharat
/qemu-devel/2017-07/msg01796.html;
Bharat Bhushan (2):
target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route
virtio-iommu: vfio integration with virtio-iommu
hw/virtio/virtio-iommu.c | 127 +++
include/hw/virtio/virtio-iommu.h
> -Original Message-
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com]
> Sent: Wednesday, July 12, 2017 4:28 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>; Auger Eric
> <eric.au...@redhat.com>; eric.auger@gmail.com;
> peter.ma
> -Original Message-
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com]
> Sent: Wednesday, July 12, 2017 3:48 PM
> To: Bharat Bhushan <bharat.bhus...@nxp.com>; Auger Eric
> <eric.au...@redhat.com>; eric.auger@gmail.com;
> peter.ma
1 - 100 of 202 matches
Mail list logo