OSDN Git Service

ahci: do not remap clb/fis unconditionally
authorJohn Snow <jsnow@redhat.com>
Fri, 22 May 2015 18:13:44 +0000 (14:13 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 22 May 2015 19:58:22 +0000 (15:58 -0400)
commitcd6cb73beb63e5fa62ca8ed540b9d54063b15c44
tree8f4090a87a9780360367cf17d624945ecd5aefa7
parentbd4214fc92090694aefa17882815c6109f0fd70c
ahci: do not remap clb/fis unconditionally

This continues the IOMMU fix from 2.3, where we should not attempt
to remap the CLB or FIS RX buffers if the AHCI device is currently
running.

The same applies to migration: keep our mitts off these registers
unless the device is supposed to be on.

Does not impact backwards compatibility for the AHCI device.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1431470173-30847-2-git-send-email-jsnow@redhat.com
hw/ide/ahci.c