mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
s390x/virtio-ccw: Adapter interrupt support.
Handle the new CCW_CMD_SET_IND_ADAPTER command enabling adapter interrupts on guest request. When active, host->guest notifications will be handled via global_indicator -> queue indicators instead of queue indicators + subchannel I/O interrupt. Indicators for virtqueues may be present at an offset. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
f55ea6297c
commit
7e7494627f
7 changed files with 120 additions and 9 deletions
|
@ -38,6 +38,7 @@
|
|||
#define CCW_CMD_SET_IND 0x43
|
||||
#define CCW_CMD_SET_CONF_IND 0x53
|
||||
#define CCW_CMD_READ_VQ_CONF 0x32
|
||||
#define CCW_CMD_SET_IND_ADAPTER 0x73
|
||||
|
||||
#define TYPE_VIRTIO_CCW_DEVICE "virtio-ccw-device"
|
||||
#define VIRTIO_CCW_DEVICE(obj) \
|
||||
|
@ -83,9 +84,12 @@ struct VirtioCcwDevice {
|
|||
bool ioeventfd_started;
|
||||
bool ioeventfd_disabled;
|
||||
uint32_t flags;
|
||||
uint8_t thinint_isc;
|
||||
/* Guest provided values: */
|
||||
hwaddr indicators;
|
||||
hwaddr indicators2;
|
||||
hwaddr summary_indicator;
|
||||
uint64_t ind_bit;
|
||||
};
|
||||
|
||||
/* virtual css bus type */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue