Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: s390: Export virtio-ccw api.

Export the virtio-ccw api in a header for usage by other code.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

authored by

Cornelia Huck and committed by
Marcelo Tosatti
6a773cb8 07e16933

+23 -4
+1
arch/s390/include/uapi/asm/Kbuild
··· 44 44 header-y += types.h 45 45 header-y += ucontext.h 46 46 header-y += unistd.h 47 + header-y += virtio-ccw.h 47 48 header-y += vtoc.h 48 49 header-y += zcrypt.h
+21
arch/s390/include/uapi/asm/virtio-ccw.h
··· 1 + /* 2 + * Definitions for virtio-ccw devices. 3 + * 4 + * Copyright IBM Corp. 2013 5 + * 6 + * This program is free software; you can redistribute it and/or modify 7 + * it under the terms of the GNU General Public License (version 2 only) 8 + * as published by the Free Software Foundation. 9 + * 10 + * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> 11 + */ 12 + #ifndef __KVM_VIRTIO_CCW_H 13 + #define __KVM_VIRTIO_CCW_H 14 + 15 + /* Alignment of vring buffers. */ 16 + #define KVM_VIRTIO_CCW_RING_ALIGN 4096 17 + 18 + /* Subcode for diagnose 500 (virtio hypercall). */ 19 + #define KVM_S390_VIRTIO_CCW_NOTIFY 3 20 + 21 + #endif
+1 -4
drivers/s390/kvm/virtio_ccw.c
··· 31 31 #include <asm/irq.h> 32 32 #include <asm/cio.h> 33 33 #include <asm/ccwdev.h> 34 + #include <asm/virtio-ccw.h> 34 35 35 36 /* 36 37 * virtio related functions ··· 80 79 struct list_head node; 81 80 long cookie; 82 81 }; 83 - 84 - #define KVM_VIRTIO_CCW_RING_ALIGN 4096 85 - 86 - #define KVM_S390_VIRTIO_CCW_NOTIFY 3 87 82 88 83 #define CCW_CMD_SET_VQ 0x13 89 84 #define CCW_CMD_VDEV_RESET 0x33