]> git.proxmox.com Git - qemu.git/commit
memory: Change MemoryRegion priorities from unsigned to signed
authorMarcel Apfelbaum <marcel.a@redhat.com>
Mon, 16 Sep 2013 08:21:14 +0000 (11:21 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 14 Oct 2013 14:11:44 +0000 (17:11 +0300)
commita1ff8ae0666ffcbe78ae7e28812dd30db6bb7131
tree79f618d7857094f5cdfd758aa5726ec0ffb83593
parente26d3e734650640fabd7d95ace4f3a6f88725e0b
memory: Change MemoryRegion priorities from unsigned to signed

When memory regions overlap, priority can be used to specify
which of them takes priority. By making the priority values signed
rather than unsigned, we make it more convenient to implement
a situation where one "background" region should appear only
where no other region exists: rather than having to explicitly
specify a high priority for all the other regions, we can let them take
the default (zero) priority and specify a negative priority for the
background region.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/sysbus.c
include/exec/memory.h
include/hw/sysbus.h
memory.c