diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2013-02-28 06:33:20 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-03-05 17:12:17 -0500 |
commit | 2b83451b45d720ca38c03878ce42ff9139cad9e3 (patch) | |
tree | 374b4ab82ffc115dc8cb76f783f7735521b6c7bf /Documentation/virtual | |
parent | 060f0ce6ff975decd1e0ee318c08e228bccbee1e (diff) |
KVM: ioeventfd for virtio-ccw devices.
Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw
devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 119358dfb742..c16b442556e8 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -1486,15 +1486,23 @@ struct kvm_ioeventfd { | |||
1486 | __u8 pad[36]; | 1486 | __u8 pad[36]; |
1487 | }; | 1487 | }; |
1488 | 1488 | ||
1489 | For the special case of virtio-ccw devices on s390, the ioevent is matched | ||
1490 | to a subchannel/virtqueue tuple instead. | ||
1491 | |||
1489 | The following flags are defined: | 1492 | The following flags are defined: |
1490 | 1493 | ||
1491 | #define KVM_IOEVENTFD_FLAG_DATAMATCH (1 << kvm_ioeventfd_flag_nr_datamatch) | 1494 | #define KVM_IOEVENTFD_FLAG_DATAMATCH (1 << kvm_ioeventfd_flag_nr_datamatch) |
1492 | #define KVM_IOEVENTFD_FLAG_PIO (1 << kvm_ioeventfd_flag_nr_pio) | 1495 | #define KVM_IOEVENTFD_FLAG_PIO (1 << kvm_ioeventfd_flag_nr_pio) |
1493 | #define KVM_IOEVENTFD_FLAG_DEASSIGN (1 << kvm_ioeventfd_flag_nr_deassign) | 1496 | #define KVM_IOEVENTFD_FLAG_DEASSIGN (1 << kvm_ioeventfd_flag_nr_deassign) |
1497 | #define KVM_IOEVENTFD_FLAG_VIRTIO_CCW_NOTIFY \ | ||
1498 | (1 << kvm_ioeventfd_flag_nr_virtio_ccw_notify) | ||
1494 | 1499 | ||
1495 | If datamatch flag is set, the event will be signaled only if the written value | 1500 | If datamatch flag is set, the event will be signaled only if the written value |
1496 | to the registered address is equal to datamatch in struct kvm_ioeventfd. | 1501 | to the registered address is equal to datamatch in struct kvm_ioeventfd. |
1497 | 1502 | ||
1503 | For virtio-ccw devices, addr contains the subchannel id and datamatch the | ||
1504 | virtqueue index. | ||
1505 | |||
1498 | 1506 | ||
1499 | 4.60 KVM_DIRTY_TLB | 1507 | 4.60 KVM_DIRTY_TLB |
1500 | 1508 | ||