Add RAM -> physical addr mapping in MCE simulation
commita05684e367d4eb6809a25eaaea8d83eb6f8cf6c2
authorHuang Ying <ying.huang@intel.com>
Sun, 19 Sep 2010 01:00:33 +0000 (19 09:00 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 20 Sep 2010 16:07:56 +0000 (20 13:07 -0300)
treeae56fe16957442945976e759518a43172ab47c54
parent2f48918f8aaedcd6ab2b637f63927077973a54c7
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>
kvm-all.c
kvm.h
qemu-kvm.c