5692399f0a
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>
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
stub-obj-y += arch-query-cpu-def.o
|
|
stub-obj-y += bdrv-commit-all.o
|
|
stub-obj-y += chr-baum-init.o
|
|
stub-obj-y += chr-msmouse.o
|
|
stub-obj-y += chr-testdev.o
|
|
stub-obj-y += clock-warp.o
|
|
stub-obj-y += cpu-get-clock.o
|
|
stub-obj-y += cpu-get-icount.o
|
|
stub-obj-y += dump.o
|
|
stub-obj-y += fdset-add-fd.o
|
|
stub-obj-y += fdset-find-fd.o
|
|
stub-obj-y += fdset-get-fd.o
|
|
stub-obj-y += fdset-remove-fd.o
|
|
stub-obj-y += gdbstub.o
|
|
stub-obj-y += get-fd.o
|
|
stub-obj-y += get-next-serial.o
|
|
stub-obj-y += get-vm-name.o
|
|
stub-obj-y += iothread-lock.o
|
|
stub-obj-y += is-daemonized.o
|
|
stub-obj-y += machine-init-done.o
|
|
stub-obj-y += migr-blocker.o
|
|
stub-obj-y += mon-is-qmp.o
|
|
stub-obj-y += mon-printf.o
|
|
stub-obj-y += mon-set-error.o
|
|
stub-obj-y += monitor-init.o
|
|
stub-obj-y += notify-event.o
|
|
stub-obj-y += pci-drive-hot-add.o
|
|
stub-obj-$(CONFIG_SPICE) += qemu-chr-open-spice.o
|
|
stub-obj-y += qtest.o
|
|
stub-obj-y += reset.o
|
|
stub-obj-y += runstate-check.o
|
|
stub-obj-y += set-fd-handler.o
|
|
stub-obj-y += slirp.o
|
|
stub-obj-y += sysbus.o
|
|
stub-obj-y += uuid.o
|
|
stub-obj-y += vc-init.o
|
|
stub-obj-y += vm-stop.o
|
|
stub-obj-y += vmstate.o
|
|
stub-obj-$(CONFIG_WIN32) += fd-register.o
|
|
stub-obj-y += cpus.o
|
|
stub-obj-y += kvm.o
|
|
stub-obj-y += qmp_pc_dimm_device_list.o
|