exec: split length -> used_length/max_length
commit9b8424d5735278ca382f11adc7c63072b632ab83
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 15 Dec 2014 20:55:32 +0000 (15 22:55 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Jan 2015 11:17:54 +0000 (8 13:17 +0200)
treea7320e19b3418258eebda8d2b2164e9a9b830d3a
parentc8d6f66ae7d0ce5f3622c19e29a2333d28dc1e9a
exec: split length -> used_length/max_length

This patch allows us to distinguish between two
length values for each block:
    max_length - length of memory block that was allocated
    used_length - length of block used by QEMU/guest

Currently, we set used_length - max_length, unconditionally.
Follow-up patches allow used_length <= max_length.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
arch_init.c
exec.c
include/exec/cpu-all.h