From 7fa41e536b05865baa9d79c6fd72785f6841576a Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Mon, 23 Aug 2010 18:58:34 +0200 Subject: [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 --- v1 -> v2: - make s390 virtio hoplug code emulate-capable --- hw/s390-virtio-bus.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hw/s390-virtio-bus.h') 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; -- cgit v1.2.1