parallels: add format spec
PATCH v2 1/1 parallels: add format spec
From: Vladimir Sementsov-Ogievskiy <[email protected]>
This specifies Parallels image format as implemented in Parallels Cloud Server 6.10
---
v2: add license info
switch to offsets from types in field descriptions
MAINTAINERS | 1 +
docs/specs/parallels.txt | 227 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 228 insertions(+) create mode 100644 docs/specs/parallels.txt
MAINTAINERS +1 -0
@@ -1471,6 +1471,7 @@ M: Denis V. Lunev <[email protected]> L: [email protected] S: Supported F: block/parallels.c +F: docs/specs/parallels.txt qed M: Stefan Hajnoczi <[email protected]>
docs/specs/parallels.txt new file +227 -0
227 lines not on this page · raw message
Signature · 1 line
2.1.4
Quoted 5 lines · Denis V. Lunev
From: Vladimir Sementsov-Ogievskiy <[email protected]>
This specifies Parallels image format as implemented in Parallels Cloud Server 6.10
Quoted 8 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Signed-off-by Denis V. Lunev <[email protected]>CC Eric Blake <[email protected]>CC John Snow <[email protected]>CC Stefan Hajnoczi <[email protected]>---
v2: add license info
switch to offsets from types in field descriptions
Cool! Thanks for publishing a specification. This will help everyone understand the code.
Quoted 4 lines
+=== Dirty bitmaps feature ===
docs/specs/parallels.txt new file +3
-0+ +This feature provides a way of storing dirty bitmaps in the image. The fields +of its data area are:
docs/specs/parallels.txt line 205
Quoted 10 lines
docs/specs/parallels.txt new file +10
-0+ + 0 - 7: size + The bitmap size, should be equal to disk size in sectors. + + 8 - 23: id + An identifier for backup consistency checking. + + 24 - 27: granularity + Bitmap granularity, in sectors. I.e., the number of sectors + corresponding to one bit of the bitmap.
Does this need to be a power of 2?
docs/specs/parallels.txt line 216
Quoted 10 lines
docs/specs/parallels.txt new file +10
-0+ 28 - 31: l1_size + The number of entries in the L1 table of the bitmap. + + variable: l1 (64 * l1_size bytes) + L1 offset table (in bytes) + +A dirty bitmap is stored using a one-level structure for the mapping to host +clusters - an L1 table. + +Given an offset into the bitmap, the offset in bytes into the image file can be
What are the units of the offset into the bitmap? Is it a bit number (i.e. sector number / granularity)?
Quoted 17 lines · Stefan Hajnoczi
Quoted 5 lines · Denis V. Lunev
From: Vladimir Sementsov-Ogievskiy <[email protected]>
This specifies Parallels image format as implemented in Parallels Cloud Server 6.10
Quoted 8 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Signed-off-by Denis V. Lunev <[email protected]>CC Eric Blake <[email protected]>CC John Snow <[email protected]>CC Stefan Hajnoczi <[email protected]>---
v2: add license info
switch to offsets from types in field descriptionsCool! Thanks for publishing a specification. This will help everyone understand the code.
Quoted 15 lines
Quoted 4 lines
+=== Dirty bitmaps feature ===
docs/specs/parallels.txt new file +3
-0+ +This feature provides a way of storing dirty bitmaps in the image. The fields +of its data area are:docs/specs/parallels.txt line 205
Quoted 10 lines
docs/specs/parallels.txt new file +10
-0+ + 0 - 7: size + The bitmap size, should be equal to disk size in sectors. + + 8 - 23: id + An identifier for backup consistency checking. + + 24 - 27: granularity + Bitmap granularity, in sectors. I.e., the number of sectors + corresponding to one bit of the bitmap.Does this need to be a power of 2?
Good point
Quoted 13 lines
docs/specs/parallels.txt line 216
Quoted 11 lines
docs/specs/parallels.txt new file +10
-0+ 28 - 31: l1_size + The number of entries in the L1 table of the bitmap. + + variable: l1 (64 * l1_size bytes) + L1 offset table (in bytes) + +A dirty bitmap is stored using a one-level structure for the mapping to host +clusters - an L1 table. + +Given an offset into the bitmap, the offset in bytes into the image file can beWhat are the units of the offset into the bitmap? Is it a bit number (i.e. sector number / granularity)?
No, here bitmap is considered as raw data, stored using L1, so offset is in bytes. Bytes of the bitmap itself, as raw binary data.
Signature · 3 lines
Best regards, Vladimir * now, @virtuozzo.com instead of @parallels.com. Sorry for this inconvenience.