]> www.infradead.org Git - users/dwmw2/qemu.git/commit
migration: Simplify alignment and alignment checks
authorDavid Hildenbrand <david@redhat.com>
Mon, 11 Oct 2021 17:53:44 +0000 (19:53 +0200)
committerJuan Quintela <quintela@redhat.com>
Mon, 1 Nov 2021 21:56:44 +0000 (22:56 +0100)
commit7648297d40649bbffb296b2d8f2f388f19868759
tree23ec4c1f2bbfe469c51bbea8806e423586ce05f3
parent9470c5e0829c1ebd3ccfc7960de065d4fd6f212d
migration: Simplify alignment and alignment checks

Let's use QEMU_ALIGN_DOWN() and friends to make the code a bit easier to
read.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
migration/postcopy-ram.c
migration/ram.c