aliguori 5ccfae10a7 Implement "info chardev" command. (Gerd Hoffmann)
This patch makes qemu keep track of the character devices in use and
implements a "info chardev" monitor command to print a list.

qemu_chr_open() sticks the devices into a linked list now.  It got a new
argument (label), so there is a name for each device.  It also assigns a
filename to each character device.  By default it just copyes the
filename passed in.  Individual drivers can fill in something else
though.  qemu_chr_open_pty() sets the filename to name of the pseudo tty
allocated.

Output looks like this:

  (qemu) info chardev
  monitor: filename=unix:/tmp/run.sh-26827/monitor,server,nowait
  serial0: filename=unix:/tmp/run.sh-26827/console,server
  serial1: filename=pty:/dev/pts/5
  parallel0: filename=vc:640x480

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5575 c046a42c-6fe2-441c-8c8c-71466251a162
2008-10-31 17:31:29 +00:00
..
2008-06-21 17:14:50 +00:00
2008-09-02 00:09:25 +00:00
2007-11-17 17:14:51 +00:00
2008-10-31 17:25:56 +00:00
2008-05-12 16:13:33 +00:00
2008-07-02 16:48:32 +00:00
2007-11-17 17:14:51 +00:00
2008-07-02 16:48:32 +00:00
2007-11-17 17:14:51 +00:00
2008-06-13 10:48:22 +00:00
2008-04-08 06:01:02 +00:00
2008-04-08 06:01:02 +00:00
2007-11-17 17:14:51 +00:00
2008-05-12 16:13:33 +00:00
2008-06-21 17:15:00 +00:00
2007-11-17 17:14:51 +00:00
2008-10-31 17:25:56 +00:00
2008-03-13 19:23:00 +00:00
2008-10-28 10:59:59 +00:00
2008-04-11 04:55:07 +00:00
2008-10-02 19:14:17 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-06-21 17:14:50 +00:00
2008-10-02 19:14:17 +00:00
2008-10-31 17:25:56 +00:00
2008-10-28 10:59:59 +00:00
2008-03-21 18:05:23 +00:00
2004-11-07 18:04:02 +00:00
2004-11-07 18:04:02 +00:00
2008-10-04 07:22:29 +00:00
2008-08-17 01:44:53 +00:00
2008-08-17 01:44:53 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-07-05 13:40:58 +00:00
2007-11-17 17:14:51 +00:00
2008-07-01 23:16:53 +00:00
2007-11-18 14:36:08 +00:00
2007-11-17 17:14:51 +00:00
2008-10-31 17:25:56 +00:00
2008-09-22 16:30:29 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2008-07-21 19:52:54 +00:00
2008-09-20 01:10:32 +00:00
2008-10-28 10:59:59 +00:00
2008-08-22 08:57:09 +00:00
2008-10-02 18:33:50 +00:00
2007-11-17 17:14:51 +00:00
2008-10-02 19:14:17 +00:00
2007-11-17 17:14:51 +00:00
2008-06-09 00:20:13 +00:00
2008-07-02 16:48:32 +00:00
2008-07-02 16:48:32 +00:00
2007-11-17 17:14:51 +00:00
2008-07-02 16:48:32 +00:00
2007-11-24 23:35:08 +00:00
2008-05-25 10:10:12 +00:00
2008-10-04 07:20:07 +00:00
2008-10-28 10:59:59 +00:00
2008-10-04 07:20:07 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2007-11-24 23:35:08 +00:00
2007-11-17 17:14:51 +00:00
2008-10-02 19:14:17 +00:00
2007-11-24 23:55:52 +00:00
2007-11-17 17:14:51 +00:00
2008-10-02 19:14:17 +00:00
2008-10-28 10:59:59 +00:00
2008-04-07 19:47:14 +00:00
2008-10-28 10:59:59 +00:00
2008-06-02 00:55:08 +00:00
2008-04-14 21:05:22 +00:00
2007-11-17 17:14:51 +00:00
2008-09-02 16:18:28 +00:00
2008-09-15 07:05:18 +00:00
2008-10-31 17:25:56 +00:00
2008-05-12 16:13:33 +00:00
2008-05-10 10:12:00 +00:00
2008-07-02 15:17:21 +00:00
2008-05-12 16:13:33 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-07-07 23:01:25 +00:00
2008-07-07 23:01:25 +00:00
2008-07-02 16:48:32 +00:00
2008-10-28 10:59:59 +00:00
2008-05-12 16:13:33 +00:00
2008-10-31 17:25:56 +00:00
2008-05-10 10:12:00 +00:00
2008-10-31 17:25:56 +00:00
2008-06-09 14:31:18 +00:00
2008-10-02 19:14:17 +00:00
2008-10-02 19:14:17 +00:00
2008-10-28 10:59:59 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-04-22 03:15:10 +00:00
2007-11-17 17:14:51 +00:00
2007-11-17 17:14:51 +00:00
2008-10-28 10:59:59 +00:00
2008-10-11 17:37:25 +00:00
2007-11-17 17:14:51 +00:00