qemu-e2k/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
..
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
Makefile.objs backends: Introduce chr-testdev 2014-08-06 17:53:05 +02:00
msmouse.c qemu-char: introduce qemu_chr_alloc 2014-06-23 11:12:28 -04:00
rng-egd.c
rng-random.c rng-random: NULL check not needed before g_free() 2014-06-24 20:01:24 +04:00
rng.c
testdev.c backends: Introduce chr-testdev 2014-08-06 17:53:05 +02:00
tpm.c