]> xenbits.xensource.com Git - people/royger/xen.git/commit
libxl: preserve console tty across soft reset
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 22 Mar 2017 13:59:44 +0000 (14:59 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 23 Mar 2017 12:01:24 +0000 (12:01 +0000)
commit841e86b8e11bc1afa625f18af7b7757d278bd20e
tree04a0b5b61e14df86f410876c11772e59ed145af9
parentba7a5da15ee85a88d18749c5aa30b3a19ab69d45
libxl: preserve console tty across soft reset

On soft reset we remove the domain from xenstore and introduce it back to
have everything reconnected. Console, however, stays attached (as xenconsoled
checks if the domain is dying and our domain is not) but we lose the
information about tty:

before soft reset:
   console = ""
    ...
    type = "xenconsoled"
    output = "pty"
    tty = "/dev/pts/1"
    ...

after:
   console = ""
    ...
    type = "xenconsoled"
    output = "pty"
    tty = ""
    ...

The issue applies to both HVM and PVH but for HVM guests serial console
through QEMU is usually in use and for PVH we don't have it.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_console.c
tools/libxl/libxl_create.c
tools/libxl/libxl_internal.h