diff options
author | Huang Ying | 2010-10-11 20:31:20 +0200 |
---|---|---|
committer | Anthony Liguori | 2010-10-20 23:15:04 +0200 |
commit | 983dfc3b135de0a4808a41a8ca71e1809ba6a62e (patch) | |
tree | 64ccb62b04a4b7168224eb9101bdf9f0ab8ab547 /kvm.h | |
parent | Export qemu_ram_addr_from_host (diff) | |
download | qemu-983dfc3b135de0a4808a41a8ca71e1809ba6a62e.tar.gz qemu-983dfc3b135de0a4808a41a8ca71e1809ba6a62e.tar.xz qemu-983dfc3b135de0a4808a41a8ca71e1809ba6a62e.zip |
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>
Diffstat (limited to 'kvm.h')
-rw-r--r-- | kvm.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -174,6 +174,12 @@ static inline void cpu_synchronize_post_init(CPUState *env) } } + +#if !defined(CONFIG_USER_ONLY) +int kvm_physical_memory_addr_from_ram(KVMState *s, ram_addr_t ram_addr, + target_phys_addr_t *phys_addr); +#endif + #endif int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val, bool assign); |