From 87e62065bb5e0e544e45e6935e3ac2b053fe446e Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 1 Feb 2011 15:51:29 +0100 Subject: ahci: send init d2h fis on fis enable The drive sends a d2h init fis on initialization. Usually, the guest doesn't receive fises yet at that point though, so the delivery is deferred. Let's reflect that by sending the init fis on fis receive enablement. Signed-off-by: Alexander Graf Signed-off-by: Kevin Wolf --- hw/ide/ahci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/ide/ahci.h') diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h index d65b5e3..b2786d1 100644 --- a/hw/ide/ahci.h +++ b/hw/ide/ahci.h @@ -282,6 +282,7 @@ struct AHCIDevice { int dma_status; int done_atapi_packet; int busy_slot; + int init_d2h_sent; BlockDriverCompletionFunc *dma_cb; AHCICmdHdr *cur_cmd; NCQTransferState ncq_tfs[AHCI_MAX_CMDS]; -- cgit v1.1