kvm: fix alignment of ram address
commitbbfd3017eb0ae59fe799e67046914dd1f94a9767
authorDavid Hildenbrand <david@redhat.com>
Mon, 16 Oct 2017 14:42:57 +0000 (16 16:42 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Oct 2017 08:14:35 +0000 (18 10:14 +0200)
treeff89da938b10a40128eef4a290b2b1c0cdf45b2c
parentae990e6cd77a4e6004b7abc6d293598910abca63
kvm: fix alignment of ram address

Fix the wrong calculation of the delta, used to align the ram address.

This only strikes if alignment has to be done.

Reported-by: Joe Clifford <joeclifford@gmail.com>
Fixes: 5ea69c2e3614 ("kvm: factor out alignment of memory section")
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20171016144302.24284-3-david@redhat.com>
Tested-by: Joe Clifford <joeclifford@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c