From: Ian Campbell Subject: Re: [PATCH] Register PV driver product numbers 4 and 5. Date: Thu, 3 Oct 2013 14:18:54 +0100 Message-ID: <1380806334.25936.118.camel@kazak.uk.xensource.com> References: <1380539893-16894-1-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1380539893-16894-1-git-send-email-paul.durrant@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2013-09-30 at 12:18 +0100, Paul Durrant wrote: > Signed-off-by: Paul Durrant > --- > xen/include/public/hvm/pvdrivers.h | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/xen/include/public/hvm/pvdrivers.h b/xen/include/public/hvm/pvdrivers.h > index 4c6b705..77994d2 100644 > --- a/xen/include/public/hvm/pvdrivers.h > +++ b/xen/include/public/hvm/pvdrivers.h > @@ -38,10 +38,12 @@ > * indicate a driver which is yet to be released. > */ > > -#define PVDRIVERS_PRODUCT_LIST(EACH) \ > - EACH("xensource-windows", 0x0001) /* Citrix */ \ > - EACH("gplpv-windows", 0x0002) /* James Harper */ \ > - EACH("linux", 0x0003) \ > - EACH("experimental", 0xffff) > +#define PVDRIVERS_PRODUCT_LIST(EACH) \ > + EACH("xensource-windows", 0x0001) /* Citrix */ \ > + EACH("gplpv-windows", 0x0002) /* James Harper */ \ > + EACH("linux", 0x0003) \ > + EACH("xenserver-windows-v7.0+", 0x0004) /* Citrix */ \ > + EACH("xenserver-windows-v7.2+", 0x0005) /* Citrix */ \ The unplug protocol includes 4. The drivers write a four-byte build number to IO port `0x10`. Can't you use that instead of defining a new product for each version of your drivers? How does this interact with the use of the alternative platform device thing which you added? Does docs/misc/hvm-emulated-unplug.markdown need expanding to cover that case? I notice that docs/misc/hvm-emulated-unplug.markdown also says: 3. The drivers write a two-byte product number to IO port `0x12`. At the moment, the only drivers using this protocol are our closed-source ones, which use product number 1. which isn't accurate any longer... > + EACH("experimental", 0xffff) > > #endif /* _XEN_PUBLIC_PVDRIVERS_H_ */