[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] xen/arm: vpl011: Add a new console_close_evtchn function in xenconsole



commit 2006b2fc4636d3a14ecc7b25614a1edb54078f69
Author:     Bhupinder Thakur <bhupinder.thakur@xxxxxxxxxx>
AuthorDate: Wed Sep 27 11:43:29 2017 +0530
Commit:     Stefano Stabellini <sstabellini@xxxxxxxxxx>
CommitDate: Tue Oct 3 15:23:37 2017 -0700

    xen/arm: vpl011: Add a new console_close_evtchn function in xenconsole
    
    This patch introduces a console_close_evtchn function. This function closes
    the console event channel.
    
    Signed-off-by: Bhupinder Thakur <bhupinder.thakur@xxxxxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 tools/console/daemon/io.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
index cfd7273..71465a0 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -793,6 +793,14 @@ static void cleanup_domain(struct domain *d)
        remove_domain(d);
 }
 
+static void console_close_evtchn(struct console *con)
+{
+       if (con->xce_handle != NULL)
+               xenevtchn_close(con->xce_handle);
+
+       con->xce_handle = NULL;
+}
+
 static void shutdown_domain(struct domain *d)
 {
        struct console *con = &d->console;
@@ -800,9 +808,7 @@ static void shutdown_domain(struct domain *d)
        d->is_dead = true;
        watch_domain(d, false);
        console_unmap_interface(con);
-       if (con->xce_handle != NULL)
-               xenevtchn_close(con->xce_handle);
-       con->xce_handle = NULL;
+       console_close_evtchn(con);
 }
 
 static unsigned enum_pass = 0;
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.