Add qemu_ram_remap
authorHuang Ying <ying.huang@intel.com>
Wed, 2 Mar 2011 07:56:19 +0000 (08:56 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 15 Mar 2011 04:19:06 +0000 (01:19 -0300)
commit52a7aa10f673eea28a38dfd35564f5bb06c0f851
tree0eaebf77bd3ed7ddbee6b38a8172d95f58b42d36
parent518f1caf3ebf50a81fe5e0752f8621d9deda5c01
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>
cpu-all.h
cpu-common.h
exec.c