From 750200917eee4f465fd1519c97a7aafc0e1ecaa2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 26 Mar 2008 16:39:34 +0000 Subject: [PATCH] Make DMA buffers depend on stubdom max request size. This is the second half of hg changeset f4a92f0db20fda98a633c149e3396c005a759a77 the first half of which is in git changeset 4eaa19458262cce92f0b891c51433ccee0a19b79 Signed-off-by: Ian Jackson Signed-off-by: Samuel Thibault --- hw/ide.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/ide.c b/hw/ide.c index 6062c7448..310c01222 100644 --- a/hw/ide.c +++ b/hw/ide.c @@ -202,7 +202,12 @@ /* set to 1 set disable mult support */ #define MAX_MULT_SECTORS 16 +#ifdef CONFIG_STUBDOM +#include +#define IDE_DMA_BUF_SIZE (BLKIF_MAX_SEGMENTS_PER_REQUEST * TARGET_PAGE_SIZE) +#else #define IDE_DMA_BUF_SIZE 131072 +#endif #if (IDE_DMA_BUF_SIZE < MAX_MULT_SECTORS * 512) #error "IDE_DMA_BUF_SIZE must be bigger or equal to MAX_MULT_SECTORS * 512" -- 2.39.5