You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
guest_memory: avoid multiple side-effecting reads in Bytes<GuestAddress>::write_to
Reading from a GuestMemoryRegion could have side effects if the region is
not RAM, and in that case we cannot repeat the read. Therefore, write_to
should use dst.write_all() in the else branch. Do it, and add comments
explaining the difference between the two.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
0 commit comments