* [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-08 9:01 ` David Stevens
0 siblings, 0 replies; 12+ messages in thread
From: David Stevens @ 2020-01-08 9:01 UTC (permalink / raw)
To: virtio-dev, Gerd Hoffmann, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
Define a mechanism for sharing resources between different virtio
devices.
Signed-off-by: David Stevens <stevensd@chromium.org>
---
content.tex | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/content.tex b/content.tex
index b1ea9b9..73bd28e 100644
--- a/content.tex
+++ b/content.tex
@@ -373,6 +373,24 @@ \section{Driver Notifications}
\label{sec:Virtqueues / Driver notifications}
\input{shared-mem.tex}
+\section{Exporting Resources}\label{sec:Basic Facilities of a Virtio
Device / Exporting Resources}
+
+When a resource created by one virtio device needs to be
+shared with a seperate virtio device, the first device can
+export the resource by generating a \field{uuid} which the
+guest can pass to the second device to identify the resource.
+
+What constitutes a resource, how to export resources, and
+how to import resources are defined by the individual device
+types. The generation method of a \field{uuid} is dependent
+upon the implementation of the exporting device.
+
+Whether a particular exported resource can be imported into
+a device is dependent upon the implementations of the exporting
+and importing devices. Generally speaking, the guest should
+have some knowledge of the host configuration before trying to
+use exported resources.
+
\chapter{General Initialization And Device
Operation}\label{sec:General Initialization And Device Operation}
We start with an overview of device initialization, then expand on the
--
2.24.1.735.g03f4e72817-goog
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-08 9:01 ` David Stevens
0 siblings, 0 replies; 12+ messages in thread
From: David Stevens @ 2020-01-08 9:01 UTC (permalink / raw)
To: virtio-dev, Gerd Hoffmann, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
Define a mechanism for sharing resources between different virtio
devices.
Signed-off-by: David Stevens <stevensd@chromium.org>
---
content.tex | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/content.tex b/content.tex
index b1ea9b9..73bd28e 100644
--- a/content.tex
+++ b/content.tex
@@ -373,6 +373,24 @@ \section{Driver Notifications}
\label{sec:Virtqueues / Driver notifications}
\input{shared-mem.tex}
+\section{Exporting Resources}\label{sec:Basic Facilities of a Virtio
Device / Exporting Resources}
+
+When a resource created by one virtio device needs to be
+shared with a seperate virtio device, the first device can
+export the resource by generating a \field{uuid} which the
+guest can pass to the second device to identify the resource.
+
+What constitutes a resource, how to export resources, and
+how to import resources are defined by the individual device
+types. The generation method of a \field{uuid} is dependent
+upon the implementation of the exporting device.
+
+Whether a particular exported resource can be imported into
+a device is dependent upon the implementations of the exporting
+and importing devices. Generally speaking, the guest should
+have some knowledge of the host configuration before trying to
+use exported resources.
+
\chapter{General Initialization And Device
Operation}\label{sec:General Initialization And Device Operation}
We start with an overview of device initialization, then expand on the
--
2.24.1.735.g03f4e72817-goog
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
2020-01-08 9:01 ` David Stevens
(?)
@ 2020-01-08 10:40 ` Gerd Hoffmann
-1 siblings, 0 replies; 12+ messages in thread
From: Gerd Hoffmann @ 2020-01-08 10:40 UTC (permalink / raw)
To: David Stevens
Cc: virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
On Wed, Jan 08, 2020 at 06:01:58PM +0900, David Stevens wrote:
> Define a mechanism for sharing resources between different virtio
> devices.
>
> Signed-off-by: David Stevens <stevensd@chromium.org>
> ---
> content.tex | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/content.tex b/content.tex
> index b1ea9b9..73bd28e 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -373,6 +373,24 @@ \section{Driver Notifications}
> \label{sec:Virtqueues / Driver notifications}
>
> \input{shared-mem.tex}
>
> +\section{Exporting Resources}\label{sec:Basic Facilities of a Virtio
> Device / Exporting Resources}
> +
> +When a resource created by one virtio device needs to be
> +shared with a seperate virtio device, the first device can
> +export the resource by generating a \field{uuid} which the
> +guest can pass to the second device to identify the resource.
> +
> +What constitutes a resource, how to export resources, and
> +how to import resources are defined by the individual device
> +types. The generation method of a \field{uuid} is dependent
> +upon the implementation of the exporting device.
> +
> +Whether a particular exported resource can be imported into
> +a device is dependent upon the implementations of the exporting
> +and importing devices. Generally speaking, the guest should
> +have some knowledge of the host configuration before trying to
> +use exported resources.
Hmm, I'd suggest to move the whole thing into the virtio-gpu section.
There is no such thing as a "resource" in general virtio context ...
cheers,
Gerd
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-08 10:40 ` Gerd Hoffmann
0 siblings, 0 replies; 12+ messages in thread
From: Gerd Hoffmann @ 2020-01-08 10:40 UTC (permalink / raw)
To: David Stevens
Cc: virtio-dev, Zach Reizner, Alexandre Courbot, qemu-devel,
Stefan Hajnoczi, Alex Lau, Tomasz Figa, Keiichi Watanabe,
Stéphane Marchesin, Dylan Reid, Gurchetan Singh,
Pawel Osciak, Linux Media Mailing List
On Wed, Jan 08, 2020 at 06:01:58PM +0900, David Stevens wrote:
> Define a mechanism for sharing resources between different virtio
> devices.
>
> Signed-off-by: David Stevens <stevensd@chromium.org>
> ---
> content.tex | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/content.tex b/content.tex
> index b1ea9b9..73bd28e 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -373,6 +373,24 @@ \section{Driver Notifications}
> \label{sec:Virtqueues / Driver notifications}
>
> \input{shared-mem.tex}
>
> +\section{Exporting Resources}\label{sec:Basic Facilities of a Virtio
> Device / Exporting Resources}
> +
> +When a resource created by one virtio device needs to be
> +shared with a seperate virtio device, the first device can
> +export the resource by generating a \field{uuid} which the
> +guest can pass to the second device to identify the resource.
> +
> +What constitutes a resource, how to export resources, and
> +how to import resources are defined by the individual device
> +types. The generation method of a \field{uuid} is dependent
> +upon the implementation of the exporting device.
> +
> +Whether a particular exported resource can be imported into
> +a device is dependent upon the implementations of the exporting
> +and importing devices. Generally speaking, the guest should
> +have some knowledge of the host configuration before trying to
> +use exported resources.
Hmm, I'd suggest to move the whole thing into the virtio-gpu section.
There is no such thing as a "resource" in general virtio context ...
cheers,
Gerd
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-08 10:40 ` Gerd Hoffmann
0 siblings, 0 replies; 12+ messages in thread
From: Gerd Hoffmann @ 2020-01-08 10:40 UTC (permalink / raw)
To: David Stevens
Cc: virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
On Wed, Jan 08, 2020 at 06:01:58PM +0900, David Stevens wrote:
> Define a mechanism for sharing resources between different virtio
> devices.
>
> Signed-off-by: David Stevens <stevensd@chromium.org>
> ---
> content.tex | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/content.tex b/content.tex
> index b1ea9b9..73bd28e 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -373,6 +373,24 @@ \section{Driver Notifications}
> \label{sec:Virtqueues / Driver notifications}
>
> \input{shared-mem.tex}
>
> +\section{Exporting Resources}\label{sec:Basic Facilities of a Virtio
> Device / Exporting Resources}
> +
> +When a resource created by one virtio device needs to be
> +shared with a seperate virtio device, the first device can
> +export the resource by generating a \field{uuid} which the
> +guest can pass to the second device to identify the resource.
> +
> +What constitutes a resource, how to export resources, and
> +how to import resources are defined by the individual device
> +types. The generation method of a \field{uuid} is dependent
> +upon the implementation of the exporting device.
> +
> +Whether a particular exported resource can be imported into
> +a device is dependent upon the implementations of the exporting
> +and importing devices. Generally speaking, the guest should
> +have some knowledge of the host configuration before trying to
> +use exported resources.
Hmm, I'd suggest to move the whole thing into the virtio-gpu section.
There is no such thing as a "resource" in general virtio context ...
cheers,
Gerd
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
2020-01-08 10:40 ` Gerd Hoffmann
(?)
(?)
@ 2020-01-08 11:04 ` David Stevens
2020-01-09 13:12 ` Gerd Hoffmann
-1 siblings, 1 reply; 12+ messages in thread
From: David Stevens @ 2020-01-08 11:04 UTC (permalink / raw)
To: Gerd Hoffmann
Cc: David Stevens, virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
>
> Hmm, I'd suggest to move the whole thing into the virtio-gpu section.
> There is no such thing as a "resource" in general virtio context ...
>
If this is moved into the virtio-gpu section, then any device type that
imports resources will have to refer to something defined by the GPU device
type. This would make the GPU device type a sort of special device type
that isn't just a leaf node of the spec. I think it's better to define
'resource' as a top level concept for virtio devices, even if the specifics
of what a 'resource' is are defined by individual device types.
-David
[-- Attachment #2: Type: text/html, Size: 863 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
2020-01-08 11:04 ` David Stevens
2020-01-09 13:12 ` Gerd Hoffmann
@ 2020-01-09 13:12 ` Gerd Hoffmann
0 siblings, 0 replies; 12+ messages in thread
From: Gerd Hoffmann @ 2020-01-09 13:12 UTC (permalink / raw)
To: David Stevens
Cc: David Stevens, virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
Hi,
> that isn't just a leaf node of the spec. I think it's better to define
> 'resource' as a top level concept for virtio devices, even if the specifics
> of what a 'resource' is are defined by individual device types.
Your patch doesn't define what a resource is though. It only refers to
something it calls 'resource' ...
cheers,
Gerd
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-09 13:12 ` Gerd Hoffmann
0 siblings, 0 replies; 12+ messages in thread
From: Gerd Hoffmann @ 2020-01-09 13:12 UTC (permalink / raw)
To: David Stevens
Cc: virtio-dev, Zach Reizner, Alexandre Courbot, qemu-devel,
Stefan Hajnoczi, Alex Lau, Tomasz Figa, Keiichi Watanabe,
David Stevens, Stéphane Marchesin, Dylan Reid,
Gurchetan Singh, Pawel Osciak, Linux Media Mailing List
Hi,
> that isn't just a leaf node of the spec. I think it's better to define
> 'resource' as a top level concept for virtio devices, even if the specifics
> of what a 'resource' is are defined by individual device types.
Your patch doesn't define what a resource is though. It only refers to
something it calls 'resource' ...
cheers,
Gerd
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-09 13:12 ` Gerd Hoffmann
0 siblings, 0 replies; 12+ messages in thread
From: Gerd Hoffmann @ 2020-01-09 13:12 UTC (permalink / raw)
To: David Stevens
Cc: David Stevens, virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
Hi,
> that isn't just a leaf node of the spec. I think it's better to define
> 'resource' as a top level concept for virtio devices, even if the specifics
> of what a 'resource' is are defined by individual device types.
Your patch doesn't define what a resource is though. It only refers to
something it calls 'resource' ...
cheers,
Gerd
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
2020-01-09 13:12 ` Gerd Hoffmann
(?)
@ 2020-01-09 13:44 ` David Stevens
-1 siblings, 0 replies; 12+ messages in thread
From: David Stevens @ 2020-01-09 13:44 UTC (permalink / raw)
To: Gerd Hoffmann
Cc: David Stevens, virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
> > that isn't just a leaf node of the spec. I think it's better to define
> > 'resource' as a top level concept for virtio devices, even if the specifics
> > of what a 'resource' is are defined by individual device types.
>
> Your patch doesn't define what a resource is though. It only refers to
> something it calls 'resource' ...
Reading it again, what I wrote was a little ambiguous. Stating things
more clearly, the top level defines an 'exported resource' as a
'resource' associated with a uuid for the purpose of sharing between
different virtio devices. It leaves the definition of what constitutes
a 'resource' to individual device types. Perhaps it would be better to
use 'object' or something instead of 'resource', to avoid the
collision with virtio-gpu resources.
-David
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-09 13:44 ` David Stevens
0 siblings, 0 replies; 12+ messages in thread
From: David Stevens @ 2020-01-09 13:44 UTC (permalink / raw)
To: Gerd Hoffmann
Cc: virtio-dev, Zach Reizner, Alexandre Courbot, David Stevens,
qemu-devel, Stefan Hajnoczi, Alex Lau, Tomasz Figa,
Keiichi Watanabe, Stéphane Marchesin, Dylan Reid,
Gurchetan Singh, Pawel Osciak, Linux Media Mailing List
> > that isn't just a leaf node of the spec. I think it's better to define
> > 'resource' as a top level concept for virtio devices, even if the specifics
> > of what a 'resource' is are defined by individual device types.
>
> Your patch doesn't define what a resource is though. It only refers to
> something it calls 'resource' ...
Reading it again, what I wrote was a little ambiguous. Stating things
more clearly, the top level defines an 'exported resource' as a
'resource' associated with a uuid for the purpose of sharing between
different virtio devices. It leaves the definition of what constitutes
a 'resource' to individual device types. Perhaps it would be better to
use 'object' or something instead of 'resource', to avoid the
collision with virtio-gpu resources.
-David
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is
@ 2020-01-09 13:44 ` David Stevens
0 siblings, 0 replies; 12+ messages in thread
From: David Stevens @ 2020-01-09 13:44 UTC (permalink / raw)
To: Gerd Hoffmann
Cc: David Stevens, virtio-dev, Dylan Reid, Tomasz Figa, Zach Reizner,
Keiichi Watanabe, Alexandre Courbot, Alex Lau,
Stéphane Marchesin, Pawel Osciak, Gurchetan Singh,
Stefan Hajnoczi, qemu-devel, Linux Media Mailing List
> > that isn't just a leaf node of the spec. I think it's better to define
> > 'resource' as a top level concept for virtio devices, even if the specifics
> > of what a 'resource' is are defined by individual device types.
>
> Your patch doesn't define what a resource is though. It only refers to
> something it calls 'resource' ...
Reading it again, what I wrote was a little ambiguous. Stating things
more clearly, the top level defines an 'exported resource' as a
'resource' associated with a uuid for the purpose of sharing between
different virtio devices. It leaves the definition of what constitutes
a 'resource' to individual device types. Perhaps it would be better to
use 'object' or something instead of 'resource', to avoid the
collision with virtio-gpu resources.
-David
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2020-01-09 13:45 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 9:01 [virtio-dev][RFC PATCH v1 1/2] content: define what exporting a resource is David Stevens
2020-01-08 9:01 ` David Stevens
2020-01-08 10:40 ` Gerd Hoffmann
2020-01-08 10:40 ` Gerd Hoffmann
2020-01-08 10:40 ` Gerd Hoffmann
2020-01-08 11:04 ` David Stevens
2020-01-09 13:12 ` Gerd Hoffmann
2020-01-09 13:12 ` Gerd Hoffmann
2020-01-09 13:12 ` Gerd Hoffmann
2020-01-09 13:44 ` David Stevens
2020-01-09 13:44 ` David Stevens
2020-01-09 13:44 ` David Stevens
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.