mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -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
|
@ -891,8 +891,12 @@ void kvm_s390_io_interrupt(S390CPU *cpu, uint16_t subchannel_id,
|
|||
{
|
||||
uint32_t type;
|
||||
|
||||
type = ((subchannel_id & 0xff00) << 24) |
|
||||
((subchannel_id & 0x00060) << 22) | (subchannel_nr << 16);
|
||||
if (io_int_word & IO_INT_WORD_AI) {
|
||||
type = KVM_S390_INT_IO(1, 0, 0, 0);
|
||||
} else {
|
||||
type = ((subchannel_id & 0xff00) << 24) |
|
||||
((subchannel_id & 0x00060) << 22) | (subchannel_nr << 16);
|
||||
}
|
||||
kvm_s390_interrupt_internal(cpu, type,
|
||||
((uint32_t)subchannel_id << 16) | subchannel_nr,
|
||||
((uint64_t)io_int_parm << 32) | io_int_word, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue