]> git.proxmox.com Git - mirror_qemu.git/commit
block: Clamp BlockBackend requests
authorMax Reitz <mreitz@redhat.com>
Thu, 5 Feb 2015 18:58:23 +0000 (13:58 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:19 +0000 (15:07 +0000)
commite7f7d676c1397291ef7d2892f86045d79ee1a1ec
tree41cc23fc2f3ad99debea058be6bf9e3ae3d011ac
parent4c7b7e9b94b4e81aa85de7c13e209017fc7f61dc
block: Clamp BlockBackend requests

BlockBackend is used as the interface between the block layer and guest
devices. It should therefore assure that all requests are clamped to the
image size.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1423162705-32065-15-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/block-backend.c