qemu/backends
Paolo Bonzini 5692399f0a backends: Introduce chr-testdev
From: Paolo Bonzini <pbonzini@redhat.com>

chr-testdev enables a virtio serial channel to be used for guest
initiated qemu exits. hw/misc/debugexit already enables guest
initiated qemu exits, but only for PC targets. chr-testdev supports
any virtio-capable target. kvm-unit-tests/arm is already making use
of this backend.

Currently there is a single command implemented, "q".  It takes a
(prefix) argument for the exit code, thus an exit is implemented by
writing, e.g. "1q", to the virtio-serial port.

It can be used as:
   $QEMU ... \
     -device virtio-serial-device \
     -device virtserialport,chardev=ctd -chardev testdev,id=ctd

or, use:
   $QEMU ... \
     -device virtio-serial-device \
     -device virtconsole,chardev=ctd -chardev testdev,id=ctd

to bind it to virtio-serial port0.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-08-06 17:53:05 +02:00
..
Makefile.objs backends: Introduce chr-testdev 2014-08-06 17:53:05 +02:00
baum.c qemu-char: introduce qemu_chr_alloc 2014-06-23 11:12:28 -04:00
hostmem-file.c hostmem: add property to map memory with MAP_SHARED 2014-06-19 18:44:20 +03:00
hostmem-ram.c hostmem: separate allocation from UserCreatable complete method 2014-06-19 18:44:20 +03:00
hostmem.c hostmem: add properties for NUMA memory policy 2014-06-19 18:44:21 +03:00
msmouse.c qemu-char: introduce qemu_chr_alloc 2014-06-23 11:12:28 -04:00
rng-egd.c rng-egd: offset the point when repeatedly read from the buffer 2013-11-21 07:55:37 -08:00
rng-random.c rng-random: NULL check not needed before g_free() 2014-06-24 20:01:24 +04:00
rng.c qom: Clean up fragile use of error_is_set() in set() methods 2014-05-05 19:08:49 +02:00
testdev.c backends: Introduce chr-testdev 2014-08-06 17:53:05 +02:00
tpm.c qom: Clean up fragile use of error_is_set() in set() methods 2014-05-05 19:08:49 +02:00