diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 16:26:02 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-29 23:56:03 +0100 |
commit | db40598863e8cbbd11053ad3c8bae89000f603f9 (patch) | |
tree | 47c61f5d8c3f031ef7f45f108e70d3785112037c /arch/s390 | |
parent | virtio: use LGUEST_VRING_ALIGN instead of relying on pagesize (diff) | |
download | linux-db40598863e8cbbd11053ad3c8bae89000f603f9.tar.xz linux-db40598863e8cbbd11053ad3c8bae89000f603f9.zip |
virtio: use KVM_S390_VIRTIO_RING_ALIGN instead of relying on pagesize
This doesn't really matter, since s390 pagesize is 4k anyway.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/kvm_virtio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kvm_virtio.h b/arch/s390/include/asm/kvm_virtio.h index c13568b9351c..0503936f101f 100644 --- a/arch/s390/include/asm/kvm_virtio.h +++ b/arch/s390/include/asm/kvm_virtio.h @@ -50,6 +50,10 @@ struct kvm_vqconfig { #define KVM_S390_VIRTIO_RESET 1 #define KVM_S390_VIRTIO_SET_STATUS 2 +/* The alignment to use between consumer and producer parts of vring. + * This is pagesize for historical reasons. */ +#define KVM_S390_VIRTIO_RING_ALIGN 4096 + #ifdef __KERNEL__ /* early virtio console setup */ #ifdef CONFIG_S390_GUEST |