summary refs log tree commit diff stats
path: root/hw/intc/grlib_irqmp.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-07-22 15:41:06 +0200
committerMichael S. Tsirkin <mst@redhat.com>2019-07-25 07:57:57 -0400
commite6129b271b9dccca22c84870e313c315f2c70063 (patch)
treea48b0103610819f48f83f2807859546cf7d62ac9 /hw/intc/grlib_irqmp.c
parent2ffc49eea1bbd454913a88a0ad872c2649b36950 (diff)
downloadfocaccia-qemu-e6129b271b9dccca22c84870e313c315f2c70063.tar.gz
focaccia-qemu-e6129b271b9dccca22c84870e313c315f2c70063.zip
virtio-balloon: Better names for offset variables in inflate/deflate code
"host_page_base" is really confusing, let's make this clearer, also
rename the other offsets to indicate to which base they apply.

offset -> mr_offset
ram_offset -> rb_offset
host_page_base -> rb_aligned_offset

While at it, use QEMU_ALIGN_DOWN() instead of a handcrafted computation
and move the computation to the place where it is needed.

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190722134108.22151-5-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/intc/grlib_irqmp.c')
0 files changed, 0 insertions, 0 deletions