aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-09-14 15:24:51 +0300
committerHanna Reitz <hreitz@redhat.com>2021-09-15 18:42:38 +0200
commit289ef5f219d1a94b8225c459dc65821b37637a4f (patch)
treee1a617f885f095593fdeae57bd88c8fb3d253e96 /block/qcow2.h
parent9631c7822ec60eff0701ebf151bd8b9bd5c1d5d4 (diff)
downloadqemu-289ef5f219d1a94b8225c459dc65821b37637a4f.zip
qemu-289ef5f219d1a94b8225c459dc65821b37637a4f.tar.gz
qemu-289ef5f219d1a94b8225c459dc65821b37637a4f.tar.bz2
qcow2-refcount: check_refcounts_l2(): check reserved bits
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Eric Blake <eblake@redhat.com> Tested-by: Kirill Tkhai <ktkhai@virtuozzo.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20210914122454.141075-8-vsementsov@virtuozzo.com> [hreitz: Separated `type` declaration from statements] Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r--block/qcow2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow2.h b/block/qcow2.h
index c0e1e83..b8b1093 100644
--- a/block/qcow2.h
+++ b/block/qcow2.h
@@ -587,6 +587,7 @@ typedef enum QCow2MetadataOverlap {
#define L1E_OFFSET_MASK 0x00fffffffffffe00ULL
#define L2E_OFFSET_MASK 0x00fffffffffffe00ULL
+#define L2E_STD_RESERVED_MASK 0x3f000000000001feULL
#define REFT_OFFSET_MASK 0xfffffffffffffe00ULL