]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
Hierarchical memory region API
authorAvi Kivity <avi@redhat.com>
Tue, 26 Jul 2011 11:26:01 +0000 (14:26 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jul 2011 13:25:42 +0000 (08:25 -0500)
commit093bc2cd885e4e3420509a80a1b9e81848e4b8fe
treea75dc34dbddaeb5283025f182eb9a84022b1bfff
parent9d3a4736cb86f0ad7904b223eccb165de8d4327b
Hierarchical memory region API

The memory API separates the attributes of a memory region (its size, how
reads or writes are handled, dirty logging, and coalescing) from where it
is mapped and whether it is enabled.  This allows a device to configure
a memory region once, then hand it off to its parent bus to map it according
to the bus configuration.

Hierarchical registration also allows a device to compose a region out of
a number of sub-regions with different properties; for example some may be
RAM while others may be MMIO.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile.target
memory.c [new file with mode: 0644]
memory.h [new file with mode: 0644]