virtio-input: emulated devices [pci]
commit710e2d90da1a16807f7885d37b203ce739fdc53a
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Jun 2015 10:34:42 +0000 (4 12:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2015 16:15:06 +0000 (10 18:15 +0200)
tree28650f197254ed8d8263ddf035c2a41905f5c5ae
parentf958c8aa138718b8126a300d6faece522f7674b8
virtio-input: emulated devices [pci]

This patch adds virtio-pci support for the emulated virtio-input
devices.  Using them is as simple as adding "-device virtio-tablet-pci"
to your command line.  If you want add multiple devices but don't want
waste a pci slot for each you can compose a multifunction device this way:

qemu -device virtio-keyboard-pci,addr=0d.0,multifunction=on \
     -device virtio-tablet-pci,addr=0d.1,multifunction=on

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h