]> 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)
commitd175338775b95984d4e677b005007a9c0188c6a4
tree3ea1ebd524b0a6be237026b300b95cfc7a6e2496
parenteea412f37bfc3b5f2b5e57a4809c2aecd1f8dcb8
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