aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2020-10-08 10:30:29 +0200
committerMichael S. Tsirkin <mst@redhat.com>2020-11-03 07:19:26 -0500
commit296e88fd9f407c1ca5d749b921e12407e7f9da1d (patch)
tree6534241b8bd108407e52a36d397524f7db35085f /util
parentc726aa69419ba2ecd38ae14dc62aaa189c3510e5 (diff)
downloadqemu-296e88fd9f407c1ca5d749b921e12407e7f9da1d.zip
qemu-296e88fd9f407c1ca5d749b921e12407e7f9da1d.tar.gz
qemu-296e88fd9f407c1ca5d749b921e12407e7f9da1d.tar.bz2
virito-mem: Implement get_min_alignment()
The block size determines the alignment requirements. Implement get_min_alignment() of the TYPE_MEMORY_DEVICE interface. This allows auto-assignment of a properly aligned address in guest physical address space. For example, when specifying a 2GB block size for a virtio-mem device with 10GB with a memory setup "-m 4G, 20G", we'll no longer fail when realizing. Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Wei Yang <richardw.yang@linux.intel.com> Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Cc: Igor Mammedov <imammedo@redhat.com> Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20201008083029.9504-7-david@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions