vdpa: Check for iova range at mappings changes
commit013108b6e51e1c10b78859e2e091202364aa7a7d
authorEugenio Pérez <eperezma@redhat.com>
Thu, 14 Oct 2021 14:12:36 +0000 (14 16:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2021 08:37:55 +0000 (20 04:37 -0400)
treeb3520190e397232a7349a871b7bdad06c11fc1e9
parent032e4d686e9c6f8ae3b9206c720ae3614e28d8a3
vdpa: Check for iova range at mappings changes

Check vdpa device range before updating memory regions so we don't add
any outside of it, and report the invalid change if any.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20211014141236.923287-4-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
hw/virtio/trace-events
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost-vdpa.h