>From 15a2fd2653586392c2ccd0d32b86aceea0fbeddb Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld <vrozenfe@xxxxxxxxxx> Date: Mon, 2 May 2011 13:38:07 +0300 Subject: [COMMIT] [viostor] increase number of physical segments if indirect support is turned on --- viostor/virtio_stor.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/viostor/virtio_stor.h b/viostor/virtio_stor.h index a129c5c..94e8f66 100644 --- a/viostor/virtio_stor.h +++ b/viostor/virtio_stor.h @@ -52,9 +52,15 @@ typedef struct VirtIOBufferDescriptor VIO_SG, *PVIO_SG; #define VIRTIO_BLK_S_UNSUPP 2 #define SECTOR_SIZE 512 +#define IO_PORT_LENGTH 0x40 + +#ifdef INDIRECT_SUPPORTED +#define MAX_PHYS_SEGMENTS 64 +#else #define MAX_PHYS_SEGMENTS 16 +#endif + #define VIRTIO_MAX_SG (3+MAX_PHYS_SEGMENTS) -#define IO_PORT_LENGTH 0x40 #pragma pack(1) typedef struct virtio_blk_config { -- 1.7.0.2.msysgit.0 -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html