ata_piix: defer disks to the Hyper-V drivers by default
authorAndy Whitcroft <apw@canonical.com>
Fri, 4 May 2012 21:15:11 +0000 (22:15 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 7 May 2012 19:32:58 +0000 (15:32 -0400)
commitcd006086fa5d91414d8ff9ff2b78fbb593878e3c
tree3ea1ebd524b0a6be237026b300b95cfc7a6e2496
parentdb63a4c8115a0bb904496e1cdd3e7488e68b0d06
ata_piix: defer disks to the Hyper-V drivers by default

When we are hosted on a Microsoft Hyper-V hypervisor the guest disks
are exposed both via the Hyper-V paravirtualised drivers and via an
emulated SATA disk drive.  In this case we want to use the paravirtualised
drivers if we can as they are much more efficient.  Note that the Hyper-V
paravirtualised drivers only expose the virtual hard disk devices, the
CDROM/DVD devices must still be enumerated.

Mark the host controller ATA_HOST_IGNORE_ATA to prevent enumeration of
disk devices.

BugLink: http://bugs.launchpad.net/bugs/929545
BugLink: http://bugs.launchpad.net/bugs/942316
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ata_piix.c