On Wed, Nov 17, 2010 at 1:05 AM, Alexander Graf wrote:
> @@ -535,12 +543,25 @@ static int dma_buf_rw(BMDMAState *bm, int is_write)
> if (bm->cur_prd_len == 0) {
> /* end of table (with a fail safe of one page) */
> if (bm->cur_prd_last ||
> - (bm->cur
Hi,
+if (s->sg_third_party) {
+/* We've already parsed the guest RAM PRDT.
+ * This is essential for AHCI, where the PRDT is in a different
+ * format than in IDE BMDMA.
+ */
+memcpy((uint8_t *)&prd, s-
The AHCI core does all the SG handling for us, so we need to allow it
to keep its own layouts.
This patch adds hooks into the IDE code to allow for preallocated SG lists.
Signed-off-by: Roland Elek
Signed-off-by: Alexander Graf
---
hw/ide/core.c | 38 +++--