Skip to content

Conversation

@roypat
Copy link
Member

@roypat roypat commented Jan 8, 2024

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).

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

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]>
@andreeaflorescu andreeaflorescu merged commit 2739a71 into rust-vmm:main Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants