Revision 33f00271 hw/scsi-disk.c
b/hw/scsi-disk.c | ||
---|---|---|
46 | 46 |
int sector_count; |
47 | 47 |
/* The amounnt of data in the buffer. */ |
48 | 48 |
int buf_len; |
49 |
uint8_t dma_buf[SCSI_DMA_BUF_SIZE];
|
|
49 |
uint8_t *dma_buf;
|
|
50 | 50 |
BlockDriverAIOCB *aiocb; |
51 | 51 |
struct SCSIRequest *next; |
52 | 52 |
} SCSIRequest; |
... | ... | |
78 | 78 |
free_requests = r->next; |
79 | 79 |
} else { |
80 | 80 |
r = qemu_malloc(sizeof(SCSIRequest)); |
81 |
r->dma_buf = qemu_memalign(512, SCSI_DMA_BUF_SIZE); |
|
81 | 82 |
} |
82 | 83 |
r->dev = s; |
83 | 84 |
r->tag = tag; |
Also available in: Unified diff