Commit 2739a71
fix: Remove 4096B chunk restriction of read/write_volatile
Fixes a bug where GuestMemory::read_volatile_from and
GuestMemory::write_volatile_into would only copy data in chunks of at
most 4096 bytes from/into the underlying stream. The check removed in
this commit was errorneously copied from the read_from/write_into
functions, which use a temporary buffer to transfer data (and this
temporary buffer was capped to 4096 bytes).
Signed-off-by: Patrick Roy <[email protected]>1 parent 4892407 commit 2739a71
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
728 | | - | |
729 | 727 | | |
730 | 728 | | |
731 | 729 | | |
| |||
749 | 747 | | |
750 | 748 | | |
751 | 749 | | |
752 | | - | |
753 | 750 | | |
754 | 751 | | |
755 | 752 | | |
| |||
0 commit comments