Skip to contentSkip to conversation

PV drivers product number registration

PATCH In review Paul Durrant 5 participants 15 messages Sep 26, 2012 – Sep 28, 2012

lore
Share & tools
lore
#0 lore raw

cover PV drivers product number registration

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 module of 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.

#1 lore raw

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     |   50 ++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)
 create mode 100644 xen/include/public/hvm/pvdrivers.h
docs/misc/hvm-emulated-unplug.markdown +1 -1
index 707fbab..ec9ce83 100644
@@ -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 +50 -0

50 lines not on this page · raw message

Signature · 1 line
1.7.2.5
#2 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 25 lines
Quoted 1 line
Quoted 1 line · Paul Durrant
xen/include/public/hvm/pvdrivers.h new file +21 -0
@@ -0,0 +1,50 @@
+/*
+ * pvdrivers.h: Register of PV drivers product numbers.
+ * Copyright (c) 2012, Citrix Systems Inc.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.

xen/include/public/hvm/pvdrivers.h line 31

Quoted 10 lines
xen/include/public/hvm/pvdrivers.h new file +10 -0
+ */
+
+#ifndef _XEN_PUBLIC_PVDRIVERS_H_
+#define _XEN_PUBLIC_PVDRIVERS_H_
+
+/*
+ * This is the master registry of product numbers for
+ * PV drivers. 
+ * If you need a new product number allocating, please
+ * post to [email protected].  You should NOT use

@lists.xen.org

xen/include/public/hvm/pvdrivers.h line 38

Quoted 7 lines
xen/include/public/hvm/pvdrivers.h new file +7 -0
+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.

Which "the product ID"?

Jan

Quoted 20 lines
xen/include/public/hvm/pvdrivers.h new file +12 -0
+ */
+
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID		0x0001	/* Citrix */
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-windows"
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"
+
+#define	PVDRIVERS_EXPERIMENTAL_ID		0xffff
+#define	PVDRIVERS_EXPERIMENTAL_NAME		"experimental"
+
+#endif /* _XEN_PUBLIC_PVDRIVERS_H_ */
Signature · 7 lines
1.7.2.5


_______________________________________________
Xen-devel mailing list
[email protected] 
http://lists.xen.org/xen-devel 
#3 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 44 lines

-----Original Message-----
From: Jan Beulich [mailto:[email protected]]
Sent: 26 September 2012 13:46
To: Paul Durrant
Cc: [email protected]
Subject: Re: [Xen-devel] [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

xen/include/public/hvm/pvdrivers.h line 5

Quoted 9 lines
Quoted 1 line
Quoted 1 line · Paul Durrant
xen/include/public/hvm/pvdrivers.h new file +5 -0
@@ -0,0 +1,50 @@
+/*
+ * pvdrivers.h: Register of PV drivers product numbers.
+ * Copyright (c) 2012, Citrix Systems Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a

copy

xen/include/public/hvm/pvdrivers.h line 6

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * of this software and associated documentation files (the "Software"),

to

xen/include/public/hvm/pvdrivers.h line 7

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * deal in the Software without restriction, including without limitation

the

xen/include/public/hvm/pvdrivers.h line 8

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * rights to use, copy, modify, merge, publish, distribute, sublicense,

and/or

xen/include/public/hvm/pvdrivers.h line 9

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * sell copies of the Software, and to permit persons to whom the

Software is

xen/include/public/hvm/pvdrivers.h

Quoted 3 lines
xen/include/public/hvm/pvdrivers.h new file +3 -0
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be

included in

xen/include/public/hvm/pvdrivers.h

Quoted 3 lines
xen/include/public/hvm/pvdrivers.h new file +3 -0
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY

KIND, EXPRESS OR

xen/include/public/hvm/pvdrivers.h line 16

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF

MERCHANTABILITY,

xen/include/public/hvm/pvdrivers.h line 17

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO

EVENT SHALL THE

xen/include/public/hvm/pvdrivers.h line 18

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,

DAMAGES OR OTHER

xen/include/public/hvm/pvdrivers.h line 19

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR

OTHERWISE, ARISING

xen/include/public/hvm/pvdrivers.h line 20

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE

OR OTHER

Quoted 14 lines

xen/include/public/hvm/pvdrivers.h line 31

Quoted 11 lines
xen/include/public/hvm/pvdrivers.h new file +11 -0
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef _XEN_PUBLIC_PVDRIVERS_H_
+#define _XEN_PUBLIC_PVDRIVERS_H_
+
+/*
+ * This is the master registry of product numbers for
+ * PV drivers.
+ * If you need a new product number allocating, please
+ * post to [email protected].  You should NOT use

@lists.xen.org

Good point. That was historic. I'll fix it up.

Quoted 10 lines

xen/include/public/hvm/pvdrivers.h line 38

Quoted 7 lines
xen/include/public/hvm/pvdrivers.h new file +7 -0
+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.

Which "the product ID"?

The ones post-fixed '_ID'.

Paul

Quoted 29 lines

Jan

xen/include/public/hvm/pvdrivers.h

Quoted 3 lines
xen/include/public/hvm/pvdrivers.h new file +3 -0
+ */
+
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID
	0x0001	/* Citrix */

xen/include/public/hvm/pvdrivers.h line 42

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-

windows"

xen/include/public/hvm/pvdrivers.h line 44

Quoted 2 lines
xen/include/public/hvm/pvdrivers.h new file +2 -0
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/*

James Harper */

xen/include/public/hvm/pvdrivers.h line 45

Quoted 1 line
xen/include/public/hvm/pvdrivers.h new file +1 -0
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-

windows"

xen/include/public/hvm/pvdrivers.h

Quoted 3 lines
xen/include/public/hvm/pvdrivers.h new file +3 -0
+
+#define	PVDRIVERS_EXPERIMENTAL_ID		0xffff
+#define	PVDRIVERS_EXPERIMENTAL_NAME

"experimental"

Quoted 10 lines
xen/include/public/hvm/pvdrivers.h new file +2 -1
+
+#endif /* _XEN_PUBLIC_PVDRIVERS_H_ */
--

1.7.2.5

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 11 lines
Quoted 11 lines
Quoted 1 line · Paul Durrant

From: Jan Beulich [mailto:[email protected]]

Quoted 8 lines
Quoted 1 line
Quoted 1 line · Paul Durrant

+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.

Quoted 4 lines
Quoted 2 lines

Which "the product ID"?

The ones post-fixed '_ID'.

I would have thought it's meant to be specifically PVDRIVERS_EXPERIMENTAL_ID, and hence expected that to be spelled out.

Jan

#5 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 19 lines

-----Original Message-----
From: Jan Beulich [mailto:[email protected]]
Sent: 27 September 2012 08:21
To: Paul Durrant
Cc: [email protected]
Subject: Re: [Xen-devel] [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 11 lines
Quoted 11 lines
Quoted 1 line · Paul Durrant

From: Jan Beulich [mailto:[email protected]]

Quoted 8 lines
Quoted 1 line
Quoted 1 line · Paul Durrant

+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Which "the product ID"?

The ones post-fixed '_ID'.

I would have thought it's meant to be specifically PVDRIVERS_EXPERIMENTAL_ID, and hence expected that to be spelled out.

Sorry, I misread what you'd said. Fixed in the 2nd version anyway.

Paul

#6 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

In reply to Paul Durrant
Quoted 65 lines · Paul Durrant

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     |   50 ++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)
 create mode 100644 xen/include/public/hvm/pvdrivers.h
docs/misc/hvm-emulated-unplug.markdown +1 -1
index 707fbab..ec9ce83 100644
@@ -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 +35 -0
new file mode 100644
index 0000000..4be57ac
@@ -0,0 +1,50 @@
+/*
+ * pvdrivers.h: Register of PV drivers product numbers.
+ * Copyright (c) 2012, Citrix Systems Inc.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef _XEN_PUBLIC_PVDRIVERS_H_
+#define _XEN_PUBLIC_PVDRIVERS_H_
+
+/*
+ * This is the master registry of product numbers for
+ * PV drivers. 
+ * If you need a new product number allocating, please
+ * post to [email protected].  You should NOT use
+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.

xen/include/public/hvm/pvdrivers.h line 45

Quoted 10 lines
xen/include/public/hvm/pvdrivers.h new file +10 -0
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.
+ */
+
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID		0x0001	/* Citrix */
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-windows"
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"

And also the Oracle one :-)

The Novell one looks to be using 107?

Quoted 14 lines
xen/include/public/hvm/pvdrivers.h new file +5 -0
+
+#define	PVDRIVERS_EXPERIMENTAL_ID		0xffff
+#define	PVDRIVERS_EXPERIMENTAL_NAME		"experimental"
+
+#endif /* _XEN_PUBLIC_PVDRIVERS_H_ */
Signature · 7 lines
1.7.2.5


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#7 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 70 lines · Konrad Rzeszutek Wilk
Quoted 69 lines · Paul Durrant

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     |   50 ++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)
 create mode 100644 xen/include/public/hvm/pvdrivers.h
docs/misc/hvm-emulated-unplug.markdown +1 -1
index 707fbab..ec9ce83 100644
@@ -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 +39 -0
new file mode 100644
index 0000000..4be57ac
@@ -0,0 +1,50 @@
+/*
+ * pvdrivers.h: Register of PV drivers product numbers.
+ * Copyright (c) 2012, Citrix Systems Inc.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef _XEN_PUBLIC_PVDRIVERS_H_
+#define _XEN_PUBLIC_PVDRIVERS_H_
+
+/*
+ * This is the master registry of product numbers for
+ * PV drivers. 
+ * If you need a new product number allocating, please
+ * post to [email protected].  You should NOT use
+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.
+ */
Quoted 8 lines

xen/include/public/hvm/pvdrivers.h line 45

Quoted 6 lines
xen/include/public/hvm/pvdrivers.h new file +6 -0
+
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID		0x0001	/* Citrix */
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-windows"
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"

And also the Oracle one :-)

Oracle is using 0x0002? That would be unfortunate...

Quoted 21 lines

The Novell one looks to be using 107?

Quoted 14 lines
xen/include/public/hvm/pvdrivers.h new file +5 -0
+
+#define	PVDRIVERS_EXPERIMENTAL_ID		0xffff
+#define	PVDRIVERS_EXPERIMENTAL_NAME		"experimental"
+
+#endif /* _XEN_PUBLIC_PVDRIVERS_H_ */
Signature · 7 lines
1.7.2.5


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#8 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

In reply to Konrad Rzeszutek Wilk
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

xen/include/public/hvm/pvdrivers.h line 45

Quoted 5 lines · Paul Durrant
xen/include/public/hvm/pvdrivers.h new file +5 -0
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID		0x0001	/* Citrix */
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-windows"
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"

And also the Oracle one :-)

The Novell one looks to be using 107?

Where did you spot that one? I was only able to locate use of 0xffff...

Jan

#9 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · Konrad Rzeszutek Wilk

xen/include/public/hvm/pvdrivers.h line 45

Quoted 5 lines · Paul Durrant
xen/include/public/hvm/pvdrivers.h new file +5 -0
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID		0x0001	/* Citrix */
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-windows"
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"

And also the Oracle one :-)

Quoted 4 lines
Quoted 1 line

The Novell one looks to be using 107?

Where did you spot that one? I was only able to locate use of 0xffff...

Let me doublecheck then. I saw it from the /var/log/xen/qemu.. being printed. This was a Win2K guest.

Quoted 9 lines

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#10 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

In reply to Paul Durrant
Quoted 58 lines · Paul Durrant

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     |   50 ++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)
 create mode 100644 xen/include/public/hvm/pvdrivers.h
docs/misc/hvm-emulated-unplug.markdown +1 -1
index 707fbab..ec9ce83 100644
@@ -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 +28 -0
new file mode 100644
index 0000000..4be57ac
@@ -0,0 +1,50 @@
+/*
+ * pvdrivers.h: Register of PV drivers product numbers.
+ * Copyright (c) 2012, Citrix Systems Inc.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef _XEN_PUBLIC_PVDRIVERS_H_
+#define _XEN_PUBLIC_PVDRIVERS_H_
+
+/*
+ * This is the master registry of product numbers for

xen/include/public/hvm/pvdrivers.h line 38

Quoted 10 lines
xen/include/public/hvm/pvdrivers.h new file +10 -0
+ * PV drivers. 
+ * If you need a new product number allocating, please
+ * post to [email protected].  You should NOT use
+ * a product number without allocating one.
+ * If you maintain a separate versioning and distribution path
+ * for PV drivers you should have a separate product number so
+ * that your drivers can be separated from others.
+ *
+ * During development, you may use the product ID to
+ * indicate a driver which is yet to be released.

Can we add a reference to the unplug protocol doc here too please.

Quoted 12 lines
xen/include/public/hvm/pvdrivers.h new file +12 -0
+ */
+
+#define	PVDRIVERS_XENSOURCE_WINDOWS_ID		0x0001	/* Citrix */
+#define	PVDRIVERS_XENSOURCE_WINDOWS_NAME	"xensource-windows"
+
+#define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
+#define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"
+
+#define	PVDRIVERS_EXPERIMENTAL_ID		0xffff
+#define	PVDRIVERS_EXPERIMENTAL_NAME		"experimental"
+
+#endif /* _XEN_PUBLIC_PVDRIVERS_H_ */
#11 lore raw

Re: [PATCH 1/2] Add a new pvdrivers header to serve as the register of product numbers.

In reply to Paul Durrant
Quoted 2 lines · Paul Durrant

+ * During development, you may use the product ID to

^ EXPERIMENTAL ?

Quoted 1 line

+ * indicate a driver which is yet to be released.

David

#12 lore raw

PATCH 2/2 Register Linux PV-on-HVM drivers product number.

In reply to Paul Durrant

This 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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
xen/include/public/hvm/pvdrivers.h +3 -0
index 4be57ac..75fa656 100644
@@ -44,6 +44,9 @@
 #define	PVDRIVERS_GPLPV_WINDOWS_ID		0x0002	/* James Harper */
 #define	PVDRIVERS_GPLPV_WINDOWS_NAME		"gplpv-windows"
 
+#define	PVDRIVERS_LINUX_ID			0x0003	/* platform_pci.h */
+#define	PVDRIVERS_LINUX_NAME			"linux"
+
 #define	PVDRIVERS_EXPERIMENTAL_ID		0xffff
 #define	PVDRIVERS_EXPERIMENTAL_NAME		"experimental"
 
Signature · 1 line
1.7.2.5
#13 lore raw
In reply to Paul Durrant
Quoted 7 lines · Paul Durrant

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 module of traditional QEMU. It should really be in a Xen header file to prevent

Why do we want to blacklist them? Isn't it a whitelist (as in it is the right values?)

Quoted 17 lines

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.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#14 lore raw
Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 7 lines · Paul Durrant

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 module of traditional QEMU. It should really be in a Xen header file to prevent

Why do we want to blacklist them? Isn't it a whitelist (as in it is the right values?)

We don't *want* to blacklist them, but this gives us a mechanism whereby in the future we can blacklist drivers which turn out to be buggy from the host level (via qemu). See docs/misc/hvm-emulated-unplug.markdown

AFAIK qemu currently doesn't blacklist anything.

Ian.

Quoted 23 lines
Quoted 10 lines

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.

Quoted 8 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel