Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove 4096B chunk restriction of read/write_volatile_from/into #279

Merged
merged 4 commits into from
Mar 6, 2024

Conversation

roypat
Copy link
Collaborator

@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 <roypat@amazon.co.uk>
@andreeaflorescu andreeaflorescu merged commit 2739a71 into rust-vmm:main Mar 6, 2024
2 checks passed
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