aboutsummaryrefslogtreecommitdiff
path: root/hw/s390-virtio-bus.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-08-23 18:58:34 +0200
committerAlexander Graf <agraf@suse.de>2012-01-04 02:48:14 +0100
commit7fa41e536b05865baa9d79c6fd72785f6841576a (patch)
treea6a687c4b309a57c6a4381eef903a1e9998ec8ae /hw/s390-virtio-bus.h
parentf3c6a169a39d188e98c17a0a0ebfa7f85e5aafdd (diff)
[S390] Add hotplug support
I just submitted a few patches that enable the s390 virtio bus to receive a hotplug add event. This patch implements the qemu side of it, so that new hotplug events can be submitted to the guest. Signed-off-by: Alexander Graf <agraf@suse.de> --- v1 -> v2: - make s390 virtio hoplug code emulate-capable
Diffstat (limited to 'hw/s390-virtio-bus.h')
-rw-r--r--hw/s390-virtio-bus.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/s390-virtio-bus.h b/hw/s390-virtio-bus.h
index f1bece738b..d02a90709d 100644
--- a/hw/s390-virtio-bus.h
+++ b/hw/s390-virtio-bus.h
@@ -35,6 +35,11 @@
#define VIRTIO_RING_LEN (TARGET_PAGE_SIZE * 3)
#define S390_DEVICE_PAGES 512
+#define VIRTIO_PARAM_MASK 0xff
+#define VIRTIO_PARAM_VRING_INTERRUPT 0x0
+#define VIRTIO_PARAM_CONFIG_CHANGED 0x1
+#define VIRTIO_PARAM_DEV_ADD 0x2
+
typedef struct VirtIOS390Device {
DeviceState qdev;
ram_addr_t dev_offs;