Patch "xen/console: Update console event channel on resume" has been added to the 4.0-stable tree
This is a note to let you know that I've just added the patch titled
xen/console: Update console event channel on resume
to the 4.0-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
xen-console-update-console-event-channel-on-resume.patch
and it can be found in the queue-4.0 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
b9d934f27c91b878c4b2e64299d6e419a4022f8dMon Sep 17 00:00:00 2001
From: Boris Ostrovsky <[email protected]>
Date: Wed, 29 Apr 2015 17:10:14 -0400
Subject: xen/console: Update console event channel on resume
From: Boris Ostrovsky <[email protected]>
commit b9d934f27c91b878c4b2e64299d6e419a4022f8d upstream.
After a resume the hypervisor/tools may change console event channel number. We should re-query it.
--- drivers/tty/hvc/hvc_xen.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
drivers/tty/hvc/hvc_xen.c +17 -1
@@ -299,11 +299,27 @@ static int xen_initial_domain_console_inreturn 0 ; } +static void xen_console_update_evtchn (struct xencons_info *info) +{ +if (xen_hvm_domain ()) { +uint64_t v; +int err; + + err =hvm_get_parameter (HVM_PARAM_CONSOLE_EVTCHN , &v); +if (!err && v) + info->evtchn = v; + }else + info->evtchn = xen_start_info->console.domU.evtchn; +} +void xen_console_resume (void ) {struct xencons_info *info =vtermno_to_xencons (HVC_COOKIE ); -if (info !=NULL && info->irq) +if (info !=NULL && info->irq) { +if (!xen_initial_domain ()) +xen_console_update_evtchn (info);rebind_evtchn_irq (info->evtchn, info->irq); + } }static void xencons_disconnect_backend (struct xencons_info *info)
Patches currently in stable-queue which might be from [email protected] are
queue-4.0/xen-console-update-console-event-channel-on-resume.patch queue-4.0/xen-events-set-irq_info-evtchn-before-binding-the-channel-to-cpu-in-__startup_pirq.patch queue-4.0/xen-xenbus-update-xenbus-event-channel-on-resume.patch queue-4.0/xen-events-clear-cpu_evtchn_mask-before-resuming.patch