]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/memory.c
memory: Skip bad range assertion if notifier is DEVIOTLB_UNMAP type
authorEugenio Pérez <eperezma@redhat.com>
Mon, 16 Nov 2020 16:55:06 +0000 (17:55 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Dec 2020 18:48:57 +0000 (13:48 -0500)
commit1804857f19f612f6907832e35599cdb51d4ec764
tree4b80e0ee166a494ca13864827c14f0e48435e733
parentf7701e2c7983b680790af47117577b285b6a1aed
memory: Skip bad range assertion if notifier is DEVIOTLB_UNMAP type

Device IOTLB invalidations can unmap arbitrary ranges, eiter outside of
the memory region or even [0, ~0ULL] for all the space. The assertion
could be hit by a guest, and rhel7 guest effectively hit it.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20201116165506.31315-6-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
softmmu/memory.c