From: Gerd Hoffmann <kraxel@suse.de>
To: Ian Campbell <Ian.Campbell@XenSource.com>
Cc: "Zulauf, John" <john.zulauf@intel.com>,
Xen devel list <xen-devel@lists.xensource.com>
Subject: Re: xensource (pci) device id's?
Date: Fri, 02 Feb 2007 09:15:26 +0100 [thread overview]
Message-ID: <45C2F31E.6010808@suse.de> (raw)
In-Reply-To: <1170361776.12801.14.camel@localhost.localdomain>
Ian Campbell wrote:
> On Thu, 2007-02-01 at 12:02 -0800, Zulauf, John wrote:
>> If we change all the PCI vendor ID's for the virtualized devices, how
>> will the OS find the correct driver in standard HVM systems?
>
> Gerd is proposing to change the subvendor/subdevice ID's which is
> different to the regular vendor/device ID.
>
> The purpose of the subvendor/subdevice ID is to allow manufacturers to
> take an existing PCI device chipset (with a given vendor/device ID burnt
> in) and incorporate it into a card of their own. They can then use their
> own subvendor/subdevice ID for this card and presumably have their own
> driver match on these IDs rather than the more generic ones to offer
> advanced functionality which is dependant on the board not the chipset
> etc.
>
> Linux at least matches primarily on the vendor/device IDs with
> subvendor/subdevice set to match anything so we would be OK here.
No. It fully depends on the driver.
> From
> include/linux/pci.h here is the macro typically used by drivers:
>
> #define PCI_DEVICE(vend,dev) \
> .vendor = (vend), .device = (dev), \
> .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
You *can* specify subvendor IDs too. If you do so linux will match only
devices where both normal and subsystem ID match. And I think they are
even preferred over more generic (without subsystem) matches, at least
when it comes to module loading.
Adding a subsystem ID makes it possible for the guest OS to use a
different driver for the virtual device. Without special hooks needed,
the normal device probing works just fine for that purpose then. If no
special driver is available the generic chipset driver will be used.
cheers,
Gerd
--
Gerd Hoffmann <kraxel@suse.de>
next prev parent reply other threads:[~2007-02-02 8:15 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-01 13:53 xensource (pci) device id's? Gerd Hoffmann
2007-02-01 13:58 ` Ian Campbell
2007-02-01 14:30 ` Gerd Hoffmann
2007-02-01 15:45 ` Gerd Hoffmann
2007-02-02 9:26 ` Ian Campbell
2007-02-02 9:47 ` Gerd Hoffmann
2007-02-02 18:25 ` Keir Fraser
2007-02-05 8:48 ` Gerd Hoffmann
2007-02-05 14:20 ` Gerd Hoffmann
2007-02-02 19:03 ` Keir Fraser
2007-02-05 2:29 ` EPS Signature Kaushik Barde
2007-02-05 2:52 ` Ian Pratt
2007-02-10 7:52 ` GDT access from DOM-0 driver Kaushik Barde
2007-02-11 1:33 ` EPS Signature Kaushik Barde
2007-02-11 10:09 ` Keir Fraser
2007-02-11 23:39 ` Kaushik Barde
2007-02-12 0:58 ` Keir Fraser
2007-02-12 2:36 ` Kaushik Barde
2007-02-12 7:43 ` Keir Fraser
2007-02-06 15:43 ` Andrew D. Ball
2007-02-05 8:55 ` xensource (pci) device id's? Gerd Hoffmann
2007-02-01 20:02 ` Zulauf, John
2007-02-01 20:29 ` Ian Campbell
2007-02-01 23:22 ` Keir Fraser
2007-02-02 8:15 ` Gerd Hoffmann [this message]
2007-02-01 23:17 ` Keir Fraser
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=45C2F31E.6010808@suse.de \
--to=kraxel@suse.de \
--cc=Ian.Campbell@XenSource.com \
--cc=john.zulauf@intel.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.