rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
299 stars 97 forks source link

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

Closed roypat closed 5 months ago

roypat commented 7 months ago

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: