diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-11 09:44:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-06 17:53:05 +0200 |
commit | 5692399f0af2b48b164b3c0b5c4c532b186b33ae (patch) | |
tree | c0159e0e33570c8232489b2bf7e09d5a62f8ba33 /qapi-schema.json | |
parent | 41a1a9c42c4e0fb5f1b94aa8b72e42f66ebde3d9 (diff) | |
download | qemu-5692399f0af2b48b164b3c0b5c4c532b186b33ae.zip qemu-5692399f0af2b48b164b3c0b5c4c532b186b33ae.tar.gz qemu-5692399f0af2b48b164b3c0b5c4c532b186b33ae.tar.bz2 |
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>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r-- | qapi-schema.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json index b11aad2..341f417 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2749,7 +2749,7 @@ # # Configuration info for the new chardev backend. # -# Since: 1.4 +# Since: 1.4 (testdev since 2.2) ## { 'type': 'ChardevDummy', 'data': { } } @@ -2764,6 +2764,7 @@ 'mux' : 'ChardevMux', 'msmouse': 'ChardevDummy', 'braille': 'ChardevDummy', + 'testdev': 'ChardevDummy', 'stdio' : 'ChardevStdio', 'console': 'ChardevDummy', 'spicevmc' : 'ChardevSpiceChannel', |