Skip to content

Commit 7e64e05

Browse files
cohuckGleb Natapov
authored andcommitted
KVM: s390: Add a channel I/O based virtio transport driver.
Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. These virtio-ccw devices use a special set of channel commands in order to perform virtio functions. Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
1 parent 0abbe44 commit 7e64e05

4 files changed

Lines changed: 856 additions & 1 deletion

File tree

‎arch/s390/include/asm/irq.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ enum interruption_class {
3535
IOINT_CSC,
3636
IOINT_PCI,
3737
IOINT_MSI,
38+
IOINT_VIR,
3839
NMI_NMI,
3940
NR_IRQS,
4041
};

‎arch/s390/kernel/irq.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ static const struct irq_class intrclass_names[] = {
6060
[IOINT_CSC] = {.name = "CSC", .desc = "[I/O] CHSC Subchannel"},
6161
[IOINT_PCI] = {.name = "PCI", .desc = "[I/O] PCI Interrupt" },
6262
[IOINT_MSI] = {.name = "MSI", .desc = "[I/O] MSI Interrupt" },
63+
[IOINT_VIR] = {.name = "VIR", .desc = "[I/O] Virtual I/O Devices"},
6364
[NMI_NMI] = {.name = "NMI", .desc = "[NMI] Machine Check"},
6465
};
6566

‎drivers/s390/kvm/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# it under the terms of the GNU General Public License (version 2 only)
77
# as published by the Free Software Foundation.
88

9-
obj-$(CONFIG_S390_GUEST) += kvm_virtio.o
9+
obj-$(CONFIG_S390_GUEST) += kvm_virtio.o virtio_ccw.o

0 commit comments

Comments
 (0)