[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <A9828EBC1D1743A1BE8627A2400348DD@local.st.by>
Date: Thu, 19 Apr 2012 11:15:01 +0300
From: "Victor Miasnikov" <vvm@....by>
To: "KY Srinivasan" <kys@...rosoft.com>,
"Andy Whitcroft" <apw@...onical.com>,
"Alan Cox" <alan@...rguk.ukuu.org.uk>
Cc: "Jeff Garzik" <jgarzik@...ox.com>, <linux-ide@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
"Mike Sterling" <mike.sterling@...rosoft.com>
Subject: 1) boot flag to disable the Hyper-V IDE drivers: ata_piix.prefer_ms_hyperv=0 2) PIIX_IGNORE_ATA_ON_HYPERV Re: [PATCH 0/2] Hyper-V disk support V3 RE: use hv_storvsc instead of ata_piix to handle the IDE disks devices ( but not for the CD-ROM)
Hi!
Shortly:
1)
The flag to disable the Hyper-V IDE drivers is:
ata_piix.prefer_ms_hyperv=02)
#ifdef CONFIG_X86
#if defined(CONFIG_HYPERV_STORAGE) || defined(CONFIG_HYPERV_STORAGE_MODULE)
#define ATA_PIIX_IGNORE_ATA_DISKS_ON_HYPERV 1
#endif
#endif
---
>>Alan Cox:
>> So what ensures that by
>> skipping it at the ATA device level we will always find it as a VHD ?
> KY Srinivasan:
> So, the check if we are running on Hyper-V is not enough
> to skip the device in the ata_piix driver;
> we need to also make sure that the Hyper-V block driver is available to handle the skipped devices.
> I think the correct approach here is to have a kernel (or an ata_piix module parameter)
> that can be set to override the skipping of the block device by the ata driver.
Already implemented, see:
module_param(prefer_ms_hyperv, int, 0);
and work as need in real life:
http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg3482442.html
==
Tim Miller Dyck
Wed, 14 Mar 2012 07:15:52 -0700
. . .
The boot flags can be viewed by pressing F5? F6? (one of those) on the
setup boot screen and then navigating to the boot line with cursor keys
and adding the boot parameter below before the double dash at the end of
the line.
The flag to disable the Hyper-V IDE drivers is:
ata_piix.prefer_ms_hyperv=0 . . .
==
> Distros that are including the Hyper-V storage driver can set this parameter so
> that when running on Hyper-V, ata can skip the block device.
Best:
Distros that are not-including the Hyper-V storage driver don't worry about "ata can skip" etc.:
See re-incarnatin Olaf Hering idea:
#ifdef CONFIG_X86
#if defined(CONFIG_HYPERV_STORAGE) || defined(CONFIG_HYPERV_STORAGE_MODULE)
#define ATA_PIIX_IGNORE_ATA_DISKS_ON_HYPERV 1
#endif
#endif
and
#ifdef CONFIG_X86
replace to
#ifdef ATA_PIIX_IGNORE_ATA_DISKS_ON_HYPERV
Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists