lkml.org 
[lkml]   [2012]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject1) 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)
Date

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/




\
 
 \ /
  Last update: 2012-04-19 10:17    [W:0.714 / U:1.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site