All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] vdpa: Check iova range on memory regions ops
@ 2021-10-05  8:01 Eugenio Pérez
  2021-10-05  8:01 ` [PATCH 1/3] vdpa: Skip protected ram IOMMU mappings Eugenio Pérez
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Eugenio Pérez @ 2021-10-05  8:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Parav Pandit, Michael S. Tsirkin, Jason Wang, virtualization,
	Stefan Hajnoczi, Eli Cohen, Stefano Garzarella

At this moment vdpa will not send memory regions bigger than 1<<63.
However, actual iova range could be way more restrictive than that.

Since we can obtain the range through vdpa ioctl call, just save it
from the beginning of the operation and check against it.

Eugenio Pérez (3):
  vdpa: Skip protected ram IOMMU mappings
  vdpa: Add vhost_vdpa_section_end
  vdpa: Check for iova range at mappings changes

 include/hw/virtio/vhost-vdpa.h |  2 +
 hw/virtio/vhost-vdpa.c         | 83 +++++++++++++++++++++++++---------
 hw/virtio/trace-events         |  1 +
 3 files changed, 65 insertions(+), 21 deletions(-)

-- 
2.27.0




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-10-05 13:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05  8:01 [PATCH 0/3] vdpa: Check iova range on memory regions ops Eugenio Pérez
2021-10-05  8:01 ` [PATCH 1/3] vdpa: Skip protected ram IOMMU mappings Eugenio Pérez
2021-10-05  8:01 ` [PATCH 2/3] vdpa: Add vhost_vdpa_section_end Eugenio Pérez
2021-10-05  8:15   ` Michael S. Tsirkin
2021-10-05  8:15     ` Michael S. Tsirkin
2021-10-05  9:52     ` Eugenio Perez Martin
2021-10-05 10:47       ` Michael S. Tsirkin
2021-10-05 10:47         ` Michael S. Tsirkin
2021-10-05 13:14         ` Eugenio Perez Martin
2021-10-05  8:01 ` [PATCH 3/3] vdpa: Check for iova range at mappings changes Eugenio Pérez
2021-10-05  8:14   ` Michael S. Tsirkin
2021-10-05  8:14     ` Michael S. Tsirkin
2021-10-05  9:58     ` Eugenio Perez Martin
2021-10-05 10:46       ` Michael S. Tsirkin
2021-10-05 10:46         ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.