mirror of https://github.com/proxmox/mirror_qemu
xen: cleanup IOREQ server on exit
Device model is supposed to destroy IOREQ server for itself. Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com> Acked-by: Paul Durrant <paul.durrant@citrix.com> Message-Id: <1564428563-1006-1-git-send-email-igor.druzhinin@citrix.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>master
parent
d297e533a5
commit
ba7fdd64b6
|
@ -1247,6 +1247,8 @@ static void xen_exit_notifier(Notifier *n, void *data)
|
||||||
{
|
{
|
||||||
XenIOState *state = container_of(n, XenIOState, exit);
|
XenIOState *state = container_of(n, XenIOState, exit);
|
||||||
|
|
||||||
|
xen_destroy_ioreq_server(xen_domid, state->ioservid);
|
||||||
|
|
||||||
xenevtchn_close(state->xce_handle);
|
xenevtchn_close(state->xce_handle);
|
||||||
xs_daemon_close(state->xenstore);
|
xs_daemon_close(state->xenstore);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue