Date: Wed, 18 Nov 2015 18:10:28 +0000 (UTC) From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291023 - head/sys/x86/xen Message-ID: <201511181810.tAIIASn4009989@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: royger Date: Wed Nov 18 18:10:28 2015 New Revision: 291023 URL: https://svnweb.freebsd.org/changeset/base/291023 Log: 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 Modified: head/sys/x86/xen/xen_intr.c Modified: head/sys/x86/xen/xen_intr.c ============================================================================== --- head/sys/x86/xen/xen_intr.c Wed Nov 18 18:09:49 2015 (r291022) +++ head/sys/x86/xen/xen_intr.c Wed Nov 18 18:10:28 2015 (r291023) @@ -780,7 +780,10 @@ xen_intr_resume(struct pic *unused, bool 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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511181810.tAIIASn4009989>