PV drivers product number registration (v3)
cover PV drivers product number registration (v3)
PV drivers in HVM guests typically make use off an 'unplug' protocol in QEMU to prevent co-existence of emulated devices.
See docs/misc/hvm-emulated-unplug.markdown for details.
The register of product numbers used by the blacklisting feature of this protocol is currently directly in the xenstore.c source moduleof traditional QEMU. It should really be in a Xen header file to prevent duplication/conflict between QEMU versions.
Moreover the linux PV-on-HVM drivers make use of product number 3 seemingly without ever registering that number.
This patch series introduces a new header and registers product number 3 for Linux's use. A subsequent patch to qemu-xen-unstable wll be created to make use of the new header.
Version 2:
I have re-coded at Ian Jackson's request in the form of macros that allow a switch statement or array to be easily generated from the product list.
Version 3:
Ditching the terminator list entry.
The associated QEMU patch is unmodified by this so not resending.
PATCH 1/2 Add a new pvdrivers header to serve as the register of product numbers.
These product numbers are used by the QEMU blacklisting protocol in traditional QEMU and are currently coded directly into the xenstore.c source module. Since there are now multiple QEMUs this information should be pulled into a public header to avoid duplication/conflict. hvm-emulated-unplug.markdown has also been adjusted to reference the new header.
--- docs/misc/hvm-emulated-unplug.markdown | 2 +- xen/include/public/hvm/pvdrivers.h | 46 ++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletions(-) create mode 100644 xen/include/public/hvm/pvdrivers.h
docs/misc/hvm-emulated-unplug.markdown +1 -1
@@ -65,4 +65,4 @@ decimal number. `{product_name}` is a string corresponding to the product number in step 3. The master registry of product names and numbers is in -qemu-xen-unstable's xenstore.c. +xen/include/public/hvm/pvdrivers.h
xen/include/public/hvm/pvdrivers.h new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
1.7.2.5
Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.
Paul Durrant writes ("[Xen-devel] [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers."):
Quoted 6 lines
These product numbers are used by the QEMU blacklisting protocol in traditional QEMU and are currently coded directly into the
xenstore.csource module. Since there are now multiple QEMUs this information should be pulled into a public header to avoid duplication/conflict. hvm-emulated-unplug.markdown has also been adjusted to reference the new header.
Given the fact this is in a public header, we should probably get an ack from Keir or Jan.
Ian.
Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.
Quoted 17 lines
-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 01 October 2012 17:56
To: Paul Durrant
Cc: [email protected]; Keir (Xen.org); Jan Beulich
Subject: Re: [Xen-devel] [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.Paul Durrant writes ("[Xen-devel] [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers."):
Quoted 6 lines
These product numbers are used by the QEMU blacklisting protocol in traditional QEMU and are currently coded directly into the
xenstore.csource module. Since there are now multiple QEMUs this information should be pulled into a public header to avoid duplication/conflict. hvm-emulated-unplug.markdown has also been adjusted to reference the new header.
Quoted 5 lines
Acked-by Ian Jackson <[email protected]>Given the fact this is in a public header, we should probably get an ack from Keir or Jan.
Thanks.
Paul
PATCH 2/2 Register Linux PV-on-HVM drivers product number.
In reply to Paul DurrantThis is already in use despite never being registereed. See XEN_IOPORT_LINUX_PRODNUM in include/xen/platform_pci.h
--- xen/include/public/hvm/pvdrivers.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
xen/include/public/hvm/pvdrivers.h +1 -0
@@ -41,6 +41,7 @@#define PVDRIVERS_PRODUCT_LIST (EACH ) \ EACH("xensource-windows", 0x0001)/* Citrix */ \ EACH("gplpv-windows", 0x0002) /* James Harper */ \ + EACH("linux", 0x0003) \ EACH("experimental", 0xffff)#endif /* _XEN_PUBLIC_PVDRIVERS_H_ */
Signature · 1 line
1.7.2.5
Re: [PATCH 2/2] Register Linux PV-on-HVM drivers product number.
Paul Durrant writes ("[Xen-devel] [PATCH 2/2] Register Linux PV-on-HVM drivers product number."):
Quoted 2 lines
This is already in use despite never being registereed. See
XEN_IOPORT_LINUX_PRODNUMininclude/xen/platform_pci.h
Very unfortunate. But
Quoted 1 line
Signed-off-by Paul Durrant <[email protected]>
Ian.