target-i386: post memory failure event to QMP
commit8efc4e5150efb68e9f2b1705917ad34c62f44369
authorzhenwei pi <pizhenwei@bytedance.com>
Wed, 30 Sep 2020 10:04:40 +0000 (30 18:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 4 Oct 2020 16:36:23 +0000 (4 18:36 +0200)
tree5d274e7500407e78036ed39daadfe77ccbc9d41f
parent77b285f7f6ed637ee2576ae96744211ce9691567
target-i386: post memory failure event to QMP

Post memory failure event through QMP to handle hardware memory corrupted
event. Rather than simply printing to the log, QEMU could report more
effective message to the client. For example, if a guest receives an MCE,
evacuating the host could be a good idea.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20200930100440.1060708-4-pizhenwei@bytedance.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/helper.c
target/i386/kvm.c