* [PATCH] ioemu stubdom: fix scsi dma buffer size
@ 2009-07-06 12:41 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2009-07-06 12:41 UTC (permalink / raw)
To: xen-devel, Ian Jackson
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
Hi!
Attached patch fixes calculation of scsi dma buffer size.
Found by build error on NetBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xen_ioemu_scsi.diff --]
[-- Type: text/x-diff, Size: 470 bytes --]
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index 9745ca3..4fc18f0 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -41,7 +41,7 @@ do { fprintf(stderr, "scsi-disk: " fmt , ##args); } while (0)
#ifdef CONFIG_STUBDOM
#include <xen/io/blkif.h>
-#define SCSI_DMA_BUF_SIZE ((BLKIF_MAX_SEGMENTS_PER_REQUEST - 1) * PAGE_SIZE)
+#define SCSI_DMA_BUF_SIZE ((BLKIF_MAX_SEGMENTS_PER_REQUEST - 1) * TARGET_PAGE_SIZE)
#else
#define SCSI_DMA_BUF_SIZE 131072
#endif
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-06 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 12:41 [PATCH] ioemu stubdom: fix scsi dma buffer size Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.