From: Greg KH <greg@kroah.com>
To: Hank Janssen <hjanssen@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Problem with auto-detecting a HV environment from within Linux
Date: Thu, 25 Feb 2010 08:44:36 -0800 [thread overview]
Message-ID: <20100225164436.GA3310@kroah.com> (raw)
Hi guys,
In looking at the HV code, there doesn't seem to be a way to
automatically detect if we are running in a HV environment in order to
know to load the drivers in the first place.
Normally, we trigger off of things like PCI ids, or some other
externally visible id to know if we can properly load the drivers.
This also is a problem for distros, as they need to know to include the
drivers or not, through their device update processes (i.e. rpm and
install tools can detect pci dependancies of a machine to know to set
things properly.)
So, is there a way to "know" ahead of time if we are in a HV guest
environment? I was told that there is a Microsoft VGA adapter that is
exposed to the guest, could we trigger off of this device? Or is there
some other unique PCI id that we could use?
thanks,
greg k-h
next reply other threads:[~2010-02-25 16:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 16:44 Greg KH [this message]
2010-02-25 17:30 ` Problem with auto-detecting a HV environment from within Linux Haiyang Zhang
2010-02-25 17:36 ` Greg KH
2010-02-25 18:37 ` Haiyang Zhang
2010-02-25 23:06 ` Greg KH
2010-02-25 23:40 ` Haiyang Zhang
2010-02-26 0:21 ` Greg KH
2010-02-26 0:46 ` Greg KH
2010-02-26 2:14 ` Hank Janssen
2010-02-26 2:57 ` Greg KH
2010-02-26 19:07 ` Haiyang Zhang
2010-02-26 19:16 ` Greg KH
2010-02-26 9:47 ` Ameya Palande
2010-02-26 14:54 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100225164436.GA3310@kroah.com \
--to=greg@kroah.com \
--cc=devel@driverdev.osuosl.org \
--cc=haiyangz@microsoft.com \
--cc=hjanssen@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox