Add RAM -> physical addr mapping in MCE simulation
authorHuang Ying <ying.huang@intel.com>
Mon, 11 Oct 2010 18:31:20 +0000 (15:31 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Oct 2010 21:15:04 +0000 (16:15 -0500)
commit0ecb50346d5f3d62b22df6fbcbc4b933b65dcbb5
tree64ccb62b04a4b7168224eb9101bdf9f0ab8ab547
parent9071ea7cdfee03eafb8cb538b9452508b6861107
Add RAM -> physical addr mapping in MCE simulation

In QEMU-KVM, physical address != RAM address. While MCE simulation
needs physical address instead of RAM address. So
kvm_physical_memory_addr_from_ram() is implemented to do the
conversion, and it is invoked before being filled in the IA32_MCi_ADDR
MSR.

Reported-by: Dean Nelson <dnelson@redhat.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-all.c
kvm.h