Revision f9a90f18

b/hw/virtio-console.c
82 82
    VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port);
83 83

  
84 84
    if (vcon->chr) {
85
        qemu_chr_close(vcon->chr);
85
	/*
86
	 * Instead of closing the chardev, free it so it can be used
87
	 * for other purposes.
88
	 */
89
	qemu_chr_add_handlers(vcon->chr, NULL, NULL, NULL, NULL);
86 90
    }
87 91

  
88 92
    return 0;

Also available in: Unified diff