Skip to contentSkip to conversation

docs: fix mistake in dirty bitmap feature description

PATCH Applied Denis V. Lunev 4 participants 7 messages Jan 28, 2021 – Feb 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: fix mistake in dirty bitmap feature description

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>
---
 docs/interop/parallels.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/interop/parallels.txt +1 -1
index e9271eba5d..f15bf35bd1 100644
@@ -208,7 +208,7 @@ of its data area are:
   28 - 31:    l1_size
               The number of entries in the L1 table of the bitmap.
 
-  variable:   l1 (64 * l1_size bytes)
+  variable:   l1_table (8 * l1_size bytes)
               L1 offset table (in bytes)
 
 A dirty bitmap is stored using a one-level structure for the mapping to host
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Denis V. Lunev

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>
Quoted 9 lines
---
  docs/interop/parallels.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/interop/parallels.txt +0 -0
index e9271eba5d..f15bf35bd1 100644

docs/interop/parallels.txt of its data area are: · line 212

Quoted 6 lines
docs/interop/parallels.txt +1 -1
@@ -208,7 +208,7 @@ of its data area are:
    28 - 31:    l1_size
                The number of entries in the L1 table of the bitmap.
 
-  variable:   l1 (64 * l1_size bytes)
+  variable:   l1_table (8 * l1_size bytes)
                L1 offset table (in bytes)

I don't remember why this "(in bytes)" is here.. What in bytes? L1 table size? But the described field is not L1 table size, but L1 table itself.. It's not in bytes, it's just L1 table :)

So, I'd also drop "(in bytes)" while being here. Or the whole line "L1 offset table (in bytes)" altogether.

Quoted 3 lines
docs/interop/parallels.txt +0 -0
  A dirty bitmap is stored using a one-level structure for the mapping to host
 
Signature · 2 lines
Best regards,
Vladimir
#2 lore raw
Quoted 5 lines · Vladimir Sementsov-Ogievskiy
Quoted 4 lines · Denis V. Lunev

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

Quoted 9 lines
Quoted 6 lines

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>

I saw the subject "dirty bitmap", and assumed it would go through my dirty bitmap tree. In reality, it's unrelated to the dirty bitmap code.
Would an improved subject line help?

Quoted 27 lines
Quoted 9 lines

---
  docs/interop/parallels.txt | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
docs/interop/parallels.txt +0 -0
index e9271eba5d..f15bf35bd1 100644
@@ -208,7 +208,7 @@ of its data area are:
Quoted 5 lines

    28 - 31:    l1_size
                The number of entries in the L1 table of the bitmap. -  variable:   l1 (64 * l1_size bytes)
+  variable:   l1_table (8 * l1_size bytes)
                L1 offset table (in bytes)

I don't remember why this "(in bytes)" is here.. What in bytes? L1 table size? But the described field is not L1 table size, but L1 table itself.. It's not in bytes, it's just L1 table :)

So, I'd also drop "(in bytes)" while being here. Or the whole line "L1 offset table (in bytes)" altogether.

Quoted 3 lines

    A dirty bitmap is stored using a one-level structure for the mapping to host

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
#3 lore raw
Quoted 9 lines · Eric Blake
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
Quoted 7 lines · Denis V. Lunev

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>

I saw the subject "dirty bitmap", and assumed it would go through my dirty bitmap tree. In reality, it's unrelated to the dirty bitmap code.
Would an improved subject line help?

hmm. Actually this is about "how the dirty bitmaps are stored in the Parallels Image format". The section is called "dirty bitmap feature".

What I can propose? :)

"docs: fix mistake in Parallels Image "dirty bitmap" feature description"

Will this work for you?

Den

Quoted 25 lines
Quoted 25 lines
Quoted 9 lines

---
  docs/interop/parallels.txt | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
docs/interop/parallels.txt +0 -0
index e9271eba5d..f15bf35bd1 100644
@@ -208,7 +208,7 @@ of its data area are:
Quoted 5 lines

    28 - 31:    l1_size
                The number of entries in the L1 table of the bitmap. -  variable:   l1 (64 * l1_size bytes)
+  variable:   l1_table (8 * l1_size bytes)
                L1 offset table (in bytes)

I don't remember why this "(in bytes)" is here.. What in bytes? L1 table size? But the described field is not L1 table size, but L1 table itself.. It's not in bytes, it's just L1 table :)

So, I'd also drop "(in bytes)" while being here. Or the whole line "L1 offset table (in bytes)" altogether.

Quoted 3 lines

    A dirty bitmap is stored using a one-level structure for the mapping to host

#4 lore raw
Quoted 18 lines · Denis V. Lunev
Quoted 9 lines · Eric Blake
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
Quoted 7 lines · Denis V. Lunev

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>

I saw the subject "dirty bitmap", and assumed it would go through my dirty bitmap tree. In reality, it's unrelated to the dirty bitmap code.
Would an improved subject line help?

Quoted 8 lines

hmm. Actually this is about "how the dirty bitmaps are stored in the Parallels Image format". The section is called "dirty bitmap feature".

What I can propose? :)

"docs: fix mistake in Parallels Image "dirty bitmap" feature description"

Will this work for you?

That feels a bit long; maybe just:

docs: fix Parallels Image "dirty bitmap" section

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
#5 lore raw
Quoted 22 lines · Eric Blake
Quoted 21 lines · Denis V. Lunev
Quoted 9 lines · Eric Blake
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
Quoted 7 lines · Denis V. Lunev

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>

I saw the subject "dirty bitmap", and assumed it would go through my dirty bitmap tree. In reality, it's unrelated to the dirty bitmap code.
Would an improved subject line help?

hmm. Actually this is about "how the dirty bitmaps are stored in the Parallels Image format". The section is called "dirty bitmap feature".

Quoted 10 lines
Quoted 5 lines

What I can propose? :)

"docs: fix mistake in Parallels Image "dirty bitmap" feature description"

Will this work for you?

That feels a bit long; maybe just:

docs: fix Parallels Image "dirty bitmap" section

looks great to me. Should I resend?

Den

#6 lore raw
Quoted 27 lines · Denis V. Lunev
Quoted 26 lines · Eric Blake
Quoted 25 lines · Denis V. Lunev
Quoted 9 lines · Eric Blake
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
Quoted 7 lines · Denis V. Lunev

Original specification says that l1 table size if 64 * l1_size, which is obviously wrong. The size of the l1 entry is 64 _bits_, not bytes. Thus 64 is to be replaces with 8 as specification says about bytes.

There is also minor tweak, field name is renamed from l1 to l1_table, which matches with the later text.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
CC Stefan Hajnoczi <[email protected]>
CC Vladimir Sementsov-Ogievskiy <[email protected]>

I saw the subject "dirty bitmap", and assumed it would go through my dirty bitmap tree. In reality, it's unrelated to the dirty bitmap code.
Would an improved subject line help?

hmm. Actually this is about "how the dirty bitmaps are stored in the Parallels Image format". The section is called "dirty bitmap feature".

What I can propose? :)

"docs: fix mistake in Parallels Image "dirty bitmap" feature description"

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Will this work for you?

That feels a bit long; maybe just:

docs: fix Parallels Image "dirty bitmap" section

looks great to me. Should I resend?

It's okay. I have merged it, updated the commit message, and added a note about the original commit message. The final commit has a
Message-id: header so it's easy to find the original email thread.

Thanks, applied to my block tree:
https://gitlab.com/stefanha/qemu/commits/block

Stefan