Received: from eggs.gnu.org ([2001:4830:134:3::10]:46552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNR3-0004bL-3R for qemu-devel@nongnu.org; Wed, 03 Jul 2013 09:49:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuNQx-00030O-3o for qemu-devel@nongnu.org; Wed, 03 Jul 2013 09:49:29 -0400 Received: from smtp.eu.citrix.com ([46.33.159.39]:26050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNQw-0002zZ-UU for qemu-devel@nongnu.org; Wed, 03 Jul 2013 09:49:23 -0400 Message-ID: <1372859359.27768.265.camel@zakaz.uk.xensource.com> From: Ian Campbell Date: Wed, 3 Jul 2013 14:49:19 +0100 In-Reply-To: <871u7fahal.fsf@codemonkey.ws> References: <1372779366-25446-1-git-send-email-paul.durrant@citrix.com> <1372840122.27768.150.camel@zakaz.uk.xensource.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0058785@LONPEX01CL01.citrite.net> <1372840803.27768.159.camel@zakaz.uk.xensource.com> <871u7fahal.fsf@codemonkey.ws> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] Citrix PV Bus device [V3] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Paolo Bonzini , Paul Durrant , "xen-devel@lists.xen.org" , "qemu-devel@nongnu.org" , Stefano Stabellini On Wed, 2013-07-03 at 08:45 -0500, Anthony Liguori wrote: > Ian Campbell writes: > > > On Wed, 2013-07-03 at 09:34 +0100, Paul Durrant wrote: > >> Already did that :-) > >> > >> > There are also sub-vendor and sub-device IDs but I don't think they are > >> > so useful for us (AFAIK they are intended to allow the board > >> > manufacturer to "subclass" the IDs baked into the ASIC). > >> > > >> > >> I'm always hazy about what those mean. I thought the idea was that a > >> vendor may collect together many devices, potentially from different > >> vendors, into a single chip/board and they should use common subsystem > >> vendor/device info for all those devices to indicate that they were > >> all part of that larger unit - but maybe I'm completely wrong. > > > > I figured it was so the board vendor could add "value" in their drivers > > by taking advantage of the higher precedence given to the binding to the > > sub-ids by OSs. > > It's essentially an OEM id. Often times it's an EEPROM setting on real > hardware. A different subsystem vendor/device does not indicate a > different programming interface. > > We set it to a vendor/device ID reserved for QEMU by default. It's best > to keep it the QEMU ID to identify it as a device implemented by QEMU. > > It's mighty handy as it lets software figure out that it's a Cirrus VGA > card emulated by QEMU (not real hardware). In fact, I believe the > kernel KMS driver for Cirrus only binds to the QEMU vendor/device ID > since that's the only thing reasonably testable these days. That makes sense. > > Regards, > > Anthony Liguori >