diff options
author | Huang Ying <ying.huang@intel.com> | 2011-03-02 08:56:19 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-03-15 01:19:06 -0300 |
commit | cd19cfa23609dc1a35dd34f0b7554a8462337fde (patch) | |
tree | 0eaebf77bd3ed7ddbee6b38a8172d95f58b42d36 /cpu-common.h | |
parent | 75d49497332361a574d9ed1f546d36de385d238f (diff) |
Add qemu_ram_remap
qemu_ram_remap() unmaps the specified RAM pages, then re-maps these
pages again. This is used by KVM HWPoison support to clear HWPoisoned
page tables across guest rebooting, so that a new page may be
allocated later to recover the memory error.
[ Jan: style fixlets, WIN32 fix ]
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'cpu-common.h')
-rw-r--r-- | cpu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h index 54d21d4717..ef4e8dab7a 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -50,6 +50,7 @@ ram_addr_t qemu_ram_alloc_from_ptr(DeviceState *dev, const char *name, ram_addr_t size, void *host); ram_addr_t qemu_ram_alloc(DeviceState *dev, const char *name, ram_addr_t size); void qemu_ram_free(ram_addr_t addr); +void qemu_ram_remap(ram_addr_t addr, ram_addr_t length); /* This should only be used for ram local to a device. */ void *qemu_get_ram_ptr(ram_addr_t addr); /* Same but slower, to use for migration, where the order of |