Skip to contentSkip to conversation

blkif.h: document scsi/0x12/0x<NN> node

PATCH NAK Bob Liu 4 participants 10 messages Mar 23, 2016

lore
Share & tools
lore

Bob Liu

author
#0 lore raw

PATCH 1/1 blkif.h: document scsi/0x12/0x<NN> node

This patch documents a xenstore node which is used by XENVBD Windows PV driver.

The use case is that XenServer may have OEM specific storage backends and there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information from the backend into guest where XENVBD Windows PV driver can get INQUIRY VPD data from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
xen/include/public/io/blkif.h +24 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page code.
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents a Xen VBD to
+ *	its containing operating system as a (virtual) SCSI target may return the
+ *	specified data in response to INQUIRY commands from its containing OS.
+ *
+ *	A frontend which supports this feature must return the backend-specified
+ *	data for every INQUIRY command with the EVPD bit set.
+ *	For EVPD=1 INQUIRY commands where the corresponding xenstore node
+ *	does not exist, the frontend must report (to its containing OS) an
+ *	appropriate failure condition.
+ *
+ *	A frontend which does not support this feature just disregard these
+ *	xenstore nodes.
+ *
+ *	The data of this string node is base64 encoded. Base64 is a group of
+ *	similar binary-to-text encoding schemes that represent binary data in an
+ *	ASCII string format by translating it into a radix-64 representation.
+ *
  *----------------------- Request Transport Parameters ------------------------
  *
  * max-ring-page-order
Signature · 7 lines
1.7.10.4


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

-----Original Message-----
From: Bob Liu [mailto:[email protected]]
Sent: 23 March 2016 11:48
To: [email protected]
Cc: Paul Durrant; Ian Jackson; [email protected]; [email protected]; Roger Pau Monne; [email protected]; David Vrabel; Bob Liu
Subject: [PATCH] blkif.h: document scsi/0x12/0x<NN> node

This patch documents a xenstore node which is used by XENVBD Windows PV
driver.

The use case is that XenServer may have OEM specific storage backends and there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information from
the backend into guest where XENVBD Windows PV driver can get INQUIRY VPD data
from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
xen/include/public/io/blkif.h +8 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page code.
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents a Xen
Quoted 3 lines

VBD to
+ * its containing operating system as a (virtual) SCSI target may return
the

s/target/LUN

Quoted 2 lines

+ * specified data in response to INQUIRY commands from its containing
OS.

I think we can safely say "containing OS" is Windows.

Quoted 8 lines

+ *
+ * A frontend which supports this feature must return the backend-
specified
+ * data for every INQUIRY command with the EVPD bit set.
+ * For EVPD=1 INQUIRY commands where the corresponding xenstore
node
+ * does not exist, the frontend must report (to its containing OS) an
+ * appropriate failure condition.

Not necessarily. Page 0x80 is compulsory in the T10 SPC spec so it has to be synthesized in the absence of data in xenstore.

Quoted 8 lines

+ *
+ * A frontend which does not support this feature just disregard these
+ * xenstore nodes.
+ *
+ * The data of this string node is base64 encoded. Base64 is a group of
+ * similar binary-to-text encoding schemes that represent binary data in
an
+ * ASCII string format by translating it into a radix-64 representation.

Do we need to explain what base64 is?

Paul

Quoted 6 lines

+ *
*----------------------- Request Transport Parameters ------------------------ *
* max-ring-page-order
--
1.7.10.4

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

Nacked-by NAK
#2 lore raw

Paul Durrant writes ("RE: [PATCH] blkif.h: document scsi/0x12/0x<NN> node"):

Quoted 6 lines
Quoted 6 lines

From: Bob Liu [mailto:[email protected]]
Sent: 23 March 2016 11:48
To: [email protected]
Cc: Paul Durrant; Ian Jackson; [email protected]; [email protected]; Roger Pau Monne; [email protected]; David Vrabel; Bob Liu
Subject: [PATCH] blkif.h: document scsi/0x12/0x<NN> node

I'm sorry to say that the need for this protocol extension, and its proper semantics, have yet to be established.

I don't think it was appropriate to repost the patch in this form while the conversation on those topics is ongoing. It would have been appropriate if the patch contained answers, or at least forward movement, in that conversation. But regret to say that this version of this patch does not do that.

Quoted 6 lines
Quoted 4 lines

+ * The data of this string node is base64 encoded. Base64 is a group of
+ * similar binary-to-text encoding schemes that represent binary data in
an
+ * ASCII string format by translating it into a radix-64 representation.

Do we need to explain what base64 is?

This seems to be a response to my complaint

I would like the base64 encoding to specified much more explicitly. Just `base64 formatted' is too vague.

By that I meant that the specific exact base64 format (of which there are of course several dialects each with various variants) has to be specified, probably by an reference to a suitable external specification.

I did not mean that a general dictionary definition of base64 should be cut-and-pasted from Wikipedia into this specification document.

Thanks,
Ian.

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

#3 lore raw
In reply to Bob Liu
Quoted 37 lines · Bob Liu

This patch documents a xenstore node which is used by XENVBD Windows PV driver.

The use case is that XenServer may have OEM specific storage backends and there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information from the backend into guest where XENVBD Windows PV driver can get INQUIRY VPD data from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
xen/include/public/io/blkif.h +14 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page code.
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents a Xen VBD to
+ *	its containing operating system as a (virtual) SCSI target may return the
+ *	specified data in response to INQUIRY commands from its containing OS.
+ *
+ *	A frontend which supports this feature must return the backend-specified
+ *	data for every INQUIRY command with the EVPD bit set.
+ *	For EVPD=1 INQUIRY commands where the corresponding xenstore node

xen/include/public/io/blkif.h line 208

Quoted 10 lines
xen/include/public/io/blkif.h +10 -0
+ *	does not exist, the frontend must report (to its containing OS) an
+ *	appropriate failure condition.
+ *
+ *	A frontend which does not support this feature just disregard these
+ *	xenstore nodes.
+ *
+ *	The data of this string node is base64 encoded. Base64 is a group of
+ *	similar binary-to-text encoding schemes that represent binary data in an
+ *	ASCII string format by translating it into a radix-64 representation.
+ *

I'm sorry, but I need to raise similar concerns as the ones expressed by other people.

I understand that those pages that you plan to export to the guest contain some kind of hardware specific information, but how is the guest going to make use of this?

It can only interact with a Xen virtual block device, and there you can only send read, write, flush and discard requests. Even the block size is hardcoded to 512b by the protocol, so I'm not sure how are you going to use this information.

Also, the fact that's implemented in some drivers in some OS isn't an argument in order to have them added. FreeBSD had for a very long time a set of custom extensions, that where never added to blkif.h simply because they were broken and unneeded, so the solution was to remove them from the implementation, and the same could happen here IMHO.

Roger.

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

author
#4 lore raw
Quoted 53 lines · Roger Pau Monné
Quoted 37 lines · Bob Liu

This patch documents a xenstore node which is used by XENVBD Windows PV driver.

The use case is that XenServer may have OEM specific storage backends and there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information from the backend into guest where XENVBD Windows PV driver can get INQUIRY VPD data from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
xen/include/public/io/blkif.h +14 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page code.
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents a Xen VBD to
+ *	its containing operating system as a (virtual) SCSI target may return the
+ *	specified data in response to INQUIRY commands from its containing OS.
+ *
+ *	A frontend which supports this feature must return the backend-specified
+ *	data for every INQUIRY command with the EVPD bit set.
+ *	For EVPD=1 INQUIRY commands where the corresponding xenstore node

xen/include/public/io/blkif.h line 208

Quoted 10 lines
xen/include/public/io/blkif.h +10 -0
+ *	does not exist, the frontend must report (to its containing OS) an
+ *	appropriate failure condition.
+ *
+ *	A frontend which does not support this feature just disregard these
+ *	xenstore nodes.
+ *
+ *	The data of this string node is base64 encoded. Base64 is a group of
+ *	similar binary-to-text encoding schemes that represent binary data in an
+ *	ASCII string format by translating it into a radix-64 representation.
+ *

I'm sorry, but I need to raise similar concerns as the ones expressed by other people.

Quoted 9 lines

I understand that those pages that you plan to export to the guest contain some kind of hardware specific information, but how is the guest going to make use of this?

It can only interact with a Xen virtual block device, and there you can only send read, write, flush and discard requests. Even the block size is hardcoded to 512b by the protocol, so I'm not sure how are you going to use this information.

For this part, there is ioctl() interface for all block device.
Looking at virtio-blk in KVM world, it can accept almost all SCSI commands also in ioctl() even they already have virtio-scsi. But that's another story.

Thanks,
Bob

Quoted 8 lines

Also, the fact that's implemented in some drivers in some OS isn't an argument in order to have them added. FreeBSD had for a very long time a set of custom extensions, that where never added to blkif.h simply because they were broken and unneeded, so the solution was to remove them from the implementation, and the same could happen here IMHO.

Roger.

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

#5 lore raw
Quoted 64 lines · Bob Liu
Quoted 53 lines · Roger Pau Monné
Quoted 37 lines · Bob Liu

This patch documents a xenstore node which is used by XENVBD Windows PV driver.

The use case is that XenServer may have OEM specific storage backends and there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information from the backend into guest where XENVBD Windows PV driver can get INQUIRY VPD data from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
xen/include/public/io/blkif.h +14 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page code.
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents a Xen VBD to
+ *	its containing operating system as a (virtual) SCSI target may return the
+ *	specified data in response to INQUIRY commands from its containing OS.
+ *
+ *	A frontend which supports this feature must return the backend-specified
+ *	data for every INQUIRY command with the EVPD bit set.
+ *	For EVPD=1 INQUIRY commands where the corresponding xenstore node

xen/include/public/io/blkif.h line 208

Quoted 10 lines
xen/include/public/io/blkif.h +10 -0
+ *	does not exist, the frontend must report (to its containing OS) an
+ *	appropriate failure condition.
+ *
+ *	A frontend which does not support this feature just disregard these
+ *	xenstore nodes.
+ *
+ *	The data of this string node is base64 encoded. Base64 is a group of
+ *	similar binary-to-text encoding schemes that represent binary data in an
+ *	ASCII string format by translating it into a radix-64 representation.
+ *

I'm sorry, but I need to raise similar concerns as the ones expressed by other people.

Quoted 9 lines

I understand that those pages that you plan to export to the guest contain some kind of hardware specific information, but how is the guest going to make use of this?

It can only interact with a Xen virtual block device, and there you can only send read, write, flush and discard requests. Even the block size is hardcoded to 512b by the protocol, so I'm not sure how are you going to use this information.

Quoted 4 lines

For this part, there is ioctl() interface for all block device.
Looking at virtio-blk in KVM world, it can accept almost all SCSI commands also in ioctl() even they already have virtio-scsi. But that's another story.

So this means that you would then need to add a bunch of new request types to the PV block protocol in order to make use of this new exported information?

What are those commands going to be? How are they going to be passed to the underlying storage?

Roger.

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

#6 lore raw
Quoted 92 lines

-----Original Message-----
From: Roger Pau Monné [mailto:[email protected]]
Sent: 23 March 2016 14:54
To: Bob Liu
Cc: Roger Pau Monne; [email protected]; Paul Durrant; Ian Jackson; [email protected]; [email protected]; [email protected]; David Vrabel
Subject: Re: [PATCH] blkif.h: document scsi/0x12/0x<NN> node

Quoted 4 lines · Bob Liu
Quoted 3 lines · Roger Pau Monné
Quoted 1 line · Bob Liu

This patch documents a xenstore node which is used by XENVBD

Windows PV

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

driver.

The use case is that XenServer may have OEM specific storage backends

and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information

from

Quoted 1 line
Quoted 1 line
Quoted 1 line

the backend into guest where XENVBD Windows PV driver can get

INQUIRY VPD data

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
xen/include/public/io/blkif.h +0 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
Quoted 8 lines

xen/include/public/io/blkif.h

Quoted 8 lines
xen/include/public/io/blkif.h +5 -0
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page

code.

Quoted 3 lines
Quoted 3 lines

xen/include/public/io/blkif.h

Quoted 3 lines
xen/include/public/io/blkif.h +3 -0
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents

a Xen VBD to

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 193

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	its containing operating system as a (virtual) SCSI target may

return the

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 194

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	specified data in response to INQUIRY commands from its

containing OS.

Quoted 2 lines
Quoted 2 lines

xen/include/public/io/blkif.h line 196

Quoted 2 lines
xen/include/public/io/blkif.h +2 -0
+ *
+ *	A frontend which supports this feature must return the

backend-specified

Quoted 2 lines
Quoted 2 lines

xen/include/public/io/blkif.h line 198

Quoted 2 lines
xen/include/public/io/blkif.h +2 -0
+ *	data for every INQUIRY command with the EVPD bit set.
+ *	For EVPD=1 INQUIRY commands where the corresponding

xenstore node

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 199

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	does not exist, the frontend must report (to its containing

OS) an

Quoted 3 lines
Quoted 3 lines

xen/include/public/io/blkif.h

Quoted 3 lines
xen/include/public/io/blkif.h +3 -0
+ *	appropriate failure condition.
+ *
+ *	A frontend which does not support this feature just disregard

these

Quoted 3 lines
Quoted 3 lines

xen/include/public/io/blkif.h

Quoted 3 lines
xen/include/public/io/blkif.h +3 -0
+ *	xenstore nodes.
+ *
+ *	The data of this string node is base64 encoded. Base64 is a

group of

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 206

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	similar binary-to-text encoding schemes that represent

binary data in an

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 207

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	ASCII string format by translating it into a radix-64

representation.

Quoted 6 lines
Quoted 6 lines

xen/include/public/io/blkif.h line 208

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *

I'm sorry, but I need to raise similar concerns as the ones expressed by other people.

I understand that those pages that you plan to export to the guest

contain

Quoted 11 lines
Quoted 8 lines

some kind of hardware specific information, but how is the guest going to make use of this?

It can only interact with a Xen virtual block device, and there you can only send read, write, flush and discard requests. Even the block size is hardcoded to 512b by the protocol, so I'm not sure how are you going to use this information.

For this part, there is ioctl() interface for all block device. Looking at virtio-blk in KVM world, it can accept almost all SCSI commands

Quoted 9 lines

also in ioctl() even they already have virtio-scsi.

Quoted 2 lines

But that's another story.

So this means that you would then need to add a bunch of new request types
to the PV block protocol in order to make use of this new exported information?

No, why do you think that? The info is in xenstore so why does the blkif protocol need to be involved at all?

Paul

Quoted 4 lines

What are those commands going to be? How are they going to be passed to the underlying storage?

Roger.

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

#7 lore raw
Quoted 96 lines · Paul Durrant
Quoted 96 lines

-----Original Message-----
From: Roger Pau Monné [mailto:[email protected]]
Sent: 23 March 2016 14:54
To: Bob Liu
Cc: Roger Pau Monne; [email protected]; Paul Durrant; Ian Jackson; [email protected]; [email protected]; [email protected]; David Vrabel
Subject: Re: [PATCH] blkif.h: document scsi/0x12/0x<NN> node

Quoted 4 lines · Bob Liu
Quoted 3 lines · Roger Pau Monné
Quoted 1 line · Bob Liu

This patch documents a xenstore node which is used by XENVBD

Windows PV

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

driver.

The use case is that XenServer may have OEM specific storage backends

and

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

there is requirement to run OEM software in guest which relied on VPD information supplied by the storages.
Adding a node to xenstore is the easiest way to get this VPD information

from

Quoted 1 line
Quoted 1 line
Quoted 1 line

the backend into guest where XENVBD Windows PV driver can get

INQUIRY VPD data

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

from this node and return to OEM software.

---
 xen/include/public/io/blkif.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
xen/include/public/io/blkif.h +0 -0
index 99f0326..afbcbff 100644
@@ -182,6 +182,30 @@
Quoted 8 lines

xen/include/public/io/blkif.h

Quoted 8 lines
xen/include/public/io/blkif.h +5 -0
  *      backend driver paired with a LIFO queue in the frontend will
  *      allow us to have better performance in this scenario.
  *
+ * scsi/0x12/0x<NN>
+ *	Values: base64 encoded string
+ *
+ *	This optional node contains SCSI INQUIRY VPD information.
+ *	<NN> is the hexadecimal representation of the VPD page

code.

Quoted 3 lines
Quoted 3 lines

xen/include/public/io/blkif.h

Quoted 3 lines
xen/include/public/io/blkif.h +3 -0
+ *	Currently only XENVBD Windows PV driver is using this node.
+ *
+ *	A frontend e.g XENVBD Windows PV driver which represents

a Xen VBD to

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 193

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	its containing operating system as a (virtual) SCSI target may

return the

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 194

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	specified data in response to INQUIRY commands from its

containing OS.

Quoted 2 lines
Quoted 2 lines

xen/include/public/io/blkif.h line 196

Quoted 2 lines
xen/include/public/io/blkif.h +2 -0
+ *
+ *	A frontend which supports this feature must return the

backend-specified

Quoted 2 lines
Quoted 2 lines

xen/include/public/io/blkif.h line 198

Quoted 2 lines
xen/include/public/io/blkif.h +2 -0
+ *	data for every INQUIRY command with the EVPD bit set.
+ *	For EVPD=1 INQUIRY commands where the corresponding

xenstore node

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 199

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	does not exist, the frontend must report (to its containing

OS) an

Quoted 3 lines
Quoted 3 lines

xen/include/public/io/blkif.h

Quoted 3 lines
xen/include/public/io/blkif.h +3 -0
+ *	appropriate failure condition.
+ *
+ *	A frontend which does not support this feature just disregard

these

Quoted 3 lines
Quoted 3 lines

xen/include/public/io/blkif.h

Quoted 3 lines
xen/include/public/io/blkif.h +3 -0
+ *	xenstore nodes.
+ *
+ *	The data of this string node is base64 encoded. Base64 is a

group of

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 206

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	similar binary-to-text encoding schemes that represent

binary data in an

Quoted 1 line
Quoted 1 line

xen/include/public/io/blkif.h line 207

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *	ASCII string format by translating it into a radix-64

representation.

Quoted 6 lines
Quoted 6 lines

xen/include/public/io/blkif.h line 208

Quoted 1 line
xen/include/public/io/blkif.h +1 -0
+ *

I'm sorry, but I need to raise similar concerns as the ones expressed by other people.

I understand that those pages that you plan to export to the guest

contain

Quoted 11 lines
Quoted 8 lines

some kind of hardware specific information, but how is the guest going to make use of this?

It can only interact with a Xen virtual block device, and there you can only send read, write, flush and discard requests. Even the block size is hardcoded to 512b by the protocol, so I'm not sure how are you going to use this information.

For this part, there is ioctl() interface for all block device. Looking at virtio-blk in KVM world, it can accept almost all SCSI commands

also in ioctl() even they already have virtio-scsi.

Quoted 2 lines

But that's another story.

Quoted 7 lines
Quoted 5 lines

So this means that you would then need to add a bunch of new request types
to the PV block protocol in order to make use of this new exported information?

No, why do you think that? The info is in xenstore so why does the blkif protocol need to be involved at all?

Sorry, I'm just trying to figure out how is this going to be used.

Isn't this information going to have some impact on how the user uses the block device? If not, why are we exporting it then?

Roger.

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

#8 lore raw
Quoted 1 line

-----Original Message-----

[snip]

Quoted 14 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

For this part, there is ioctl() interface for all block device. Looking at virtio-blk in KVM world, it can accept almost all SCSI

commands

Quoted 10 lines
Quoted 9 lines

also in ioctl() even they already have virtio-scsi.

Quoted 2 lines

But that's another story.

So this means that you would then need to add a bunch of new request types
to the PV block protocol in order to make use of this new exported information?

Quoted 8 lines
Quoted 1 line

No, why do you think that? The info is in xenstore so why does the blkif

protocol need to be involved at all?

Sorry, I'm just trying to figure out how is this going to be used.

Isn't this information going to have some impact on how the user uses the block device? If not, why are we exporting it then?

I assume that the user will want to get this information from blkfront via ioctl (as Bob suggests), but blkfront can just pull it straight from xenstore. No need for any communication with blkback.

Paul

Quoted 1 line

Roger.

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

#9 lore raw
Quoted 19 lines · Paul Durrant
Quoted 1 line

-----Original Message-----

[snip]

Quoted 17 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

For this part, there is ioctl() interface for all block device. Looking at virtio-blk in KVM world, it can accept almost all SCSI

commands

Quoted 11 lines
Quoted 9 lines

also in ioctl() even they already have virtio-scsi.

Quoted 2 lines

But that's another story.

So this means that you would then need to add a bunch of new request types
to the PV block protocol in order to make use of this new exported information?

No, why do you think that? The info is in xenstore so why does the blkif

protocol need to be involved at all?

Quoted 7 lines
Quoted 5 lines

Sorry, I'm just trying to figure out how is this going to be used.

Isn't this information going to have some impact on how the user uses the block device? If not, why are we exporting it then?

I assume that the user will want to get this information from blkfront via ioctl (as Bob suggests), but blkfront can just pull it straight from xenstore. No need for any communication with blkback.

Yes, I understand this. What I want to know is what impact is this information going to have on how the user uses the PV block device.

Is the information found in this magic page going to be used to try to send requests of specfic size in order to take advantge of some hw features?

And then my other question is, in order to take advantadge of this information, will we need to add new PV block request types that encapsulate SCSI commands?

TBH, ATM I don't see why this is useful at all.

Roger.

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