i386: Add support for overflow recovery
authorJohn Allen <john.allen@amd.com>
Mon, 3 Jun 2024 19:36:22 +0000 (19:36 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Jun 2024 08:33:39 +0000 (10:33 +0200)
commit1ea1432199cdddbb4e7f98cee71cabf50a9516f2
tree888a0dd955464148f87da8766f7768eea84220b7
parent2ba8b7ee63589d4063c3b8dff3b70dbf9e224fc6
i386: Add support for overflow recovery

Add cpuid bit definition for overflow recovery. This is needed in the case
where a deferred error has been sent to the guest, a guest process accesses the
poisoned memory, but the machine_check_poll function has not yet handled the
original deferred error. If overflow recovery is not set in this case, when we
handle the uncorrected error from the poisoned memory access, the overflow bit
will be set and will result in the guest being shut down.

By the time the MCE reaches the guest, the overflow has been handled
by the host and has not caused a shutdown, so include the bit unconditionally.

Signed-off-by: John Allen <john.allen@amd.com>
Message-ID: <20240603193622.47156-4-john.allen@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/kvm.c