aboutsummaryrefslogtreecommitdiff
path: root/libdecnumber
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-12-15 13:04:20 +0100
committerKevin Wolf <kwolf@redhat.com>2017-02-28 20:40:36 +0100
commit33a610c398603efafd954c706ba07850835a5098 (patch)
treebe851b767225da6995faa95b824199a843b0305a /libdecnumber
parentd5e6f437c5508614803d11e59ee16a758dde09ef (diff)
downloadqemu-33a610c398603efafd954c706ba07850835a5098.zip
qemu-33a610c398603efafd954c706ba07850835a5098.tar.gz
qemu-33a610c398603efafd954c706ba07850835a5098.tar.bz2
block: Involve block drivers in permission granting
In many cases, the required permissions of one node on its children depend on what its parents require from it. For example, the raw format or most filter drivers only need to request consistent reads if that's something that one of their parents wants. In order to achieve this, this patch introduces two new BlockDriver callbacks. The first one lets drivers first check (recursively) whether the requested permissions can be set; the second one actually sets the new permission bitmask. Also add helper functions that drivers can use in their implementation of the callbacks to update their permissions on a specific child. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Acked-by: Fam Zheng <famz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'libdecnumber')
0 files changed, 0 insertions, 0 deletions