1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

xen/intr: properly dispose event channels on resume

All event channels are torn down when performing a migration on Xen, make
sure all handlers are also removed and the event channel structure is
properly disposed so it can be reused.

Sponsored by:		Citrix Systems R&D
MFC after:		2 weeks
This commit is contained in:
Roger Pau Monné 2015-11-18 18:10:28 +00:00
parent 531cfe55e2
commit ea64b86f94
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291023

View File

@ -780,7 +780,10 @@ xen_intr_resume(struct pic *unused, bool suspend_cancelled)
xen_rebind_virq(isrc);
break;
default:
intr_remove_handler(isrc->xi_cookie);
isrc->xi_cpu = 0;
isrc->xi_type = EVTCHN_TYPE_UNBOUND;
isrc->xi_cookie = NULL;
break;
}
}