vhost: Huge page align and merge
commitc1ece84e7c930a12eccff56c7482e4068ec00eb7
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 12 Mar 2018 17:21:21 +0000 (12 17:21 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 14:40:37 +0000 (20 16:40 +0200)
treeef56d182bf39922006832a3c044b6e766e88a914
parent46343570c06e63b4499f619011df80f91349cd49
vhost: Huge page align and merge

Align RAMBlocks to page size alignment, and adjust the merging code
to deal with partial overlap due to that alignment.

This is needed for postcopy so that we can place/fetch whole hugepages
when under userfault.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/trace-events
hw/virtio/vhost.c