mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
ipmi: disable IRQ and ATN on an external disconnect
Otherwise there's no way to clear them without an external command, and it could lock the OS in the VM if they were stuck. Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
c9c4722914
commit
53d34b8c1b
1 changed files with 5 additions and 0 deletions
|
@ -425,6 +425,11 @@ static void chr_event(void *opaque, int event)
|
|||
return;
|
||||
}
|
||||
ibe->connected = false;
|
||||
/*
|
||||
* Don't hang the OS trying to handle the ATN bit, other end will
|
||||
* resend on a reconnect.
|
||||
*/
|
||||
k->set_atn(s, 0, 0);
|
||||
if (ibe->waiting_rsp) {
|
||||
ibe->waiting_rsp = false;
|
||||
ibe->inbuf[1] = ibe->outbuf[1] | 0x04;
|
||||
|
|
Loading…
Reference in a new issue