]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a1cacdb7065887cdd2f0b4878bf7a634c1d3118
tree3ea1ebd524b0a6be237026b300b95cfc7a6e2496
parent4c714687bf1c3d6ecbef35a6db36b50adca6cba8
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