[Spice-devel] [PATCH spice-streaming-agent 1/1] rename the virtio port to com.redhat.spice.stream.0
Victor Toso
victortoso at redhat.com
Fri Mar 23 12:43:53 UTC 2018
On Fri, Mar 23, 2018 at 01:30:31PM +0100, Lukáš Hrázký wrote:
> On Thu, 2018-03-22 at 10:30 -0400, Frediano Ziglio wrote:
> > >
> > > The name "com.redhat.stream.0" is too generic and in no way denotes it
> > > belongs to SPICE.
> > >
> >
> > Maybe following webdav name (org.spice-space.webdav.0) we should use
> > org.spice-space.stream.0 ?
>
> I'm fine with either... Who else likes org.spice-space.* more? :)
+1
>
> > I would expect also a patch for the server, was this an RFC patch?
>
> I think you missed my notes under the --- line, see below. Well, I
> consider this subject to discussion, even though I didn't mark is as
> RFC. I wasn't sure how to send a server patch along with this, I'll
> send it in a reply for completeness.
>
> > Frediano
> >
> > > Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>
> > > ---
> > > It would be better to name it something like "org.spice-space.stream.0"
> > > but alas, we already have 'com.redhat.spice.0" and can hardly change
> > > that.
> > >
> > > Though we do also seem to have "org.spice-space.webdav.0"...
> > >
> > > The server will need an update too, I'll do it if this gets acked.
>
> ^^^^^^^^ here :)
>
> > > README | 12 ++++++------
> > > data/90-spice-guest-streaming.rules | 2 +-
> > > src/spice-streaming-agent.cpp | 2 +-
> > > 3 files changed, 8 insertions(+), 8 deletions(-)
> > >
> > > diff --git a/README b/README
> > > index 7e9a3c7..0d85916 100644
> > > --- a/README
> > > +++ b/README
> > > @@ -13,7 +13,7 @@ Virtual Machine Configuration
> > > =============================
> > >
> > > In order to set up streaming, qemu needs to expose a
> > > -`com.redhat.stream.0` virtio port, associated with a
> > > +`com.redhat.spice.stream.0` virtio port, associated with a
> > > corresponding Spice port.
> > >
> > > Using virt-manager
> > > @@ -21,8 +21,8 @@ Using virt-manager
> > >
> > > In the hardware details, click on "Add Hardware", then select
> > > "Channel". Add a "Spice port" device type with the
> > > -"com.redhat.stream.0" name. You also need to set "Channel" to
> > > -"com.redhat.stream.0"
> > > +"com.redhat.spice.stream.0" name. You also need to set "Channel" to
> > > +"com.redhat.spice.stream.0"
> > >
> > >
> > > Using libvirt
> > > @@ -31,8 +31,8 @@ Using libvirt
> > > [source,xml]
> > > <devices>
> > > <channel type='spiceport'>
> > > - <source channel='com.redhat.stream.0'/>
> > > - <target type='virtio' name='com.redhat.stream.0'/>
> > > + <source channel='com.redhat.spice.stream.0'/>
> > > + <target type='virtio' name='com.redhat.spice.stream.0'/>
> > > </channel>
> > > </devices>
> > >
> > > @@ -40,4 +40,4 @@ Using QEMU
> > > ----------
> > >
> > > [source,sh]
> > > --device
> > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel1,id=channel1,name=com.redhat.stream.0
> > > -chardev spiceport,name=com.redhat.stream.0,id=charchannel1
> > > +-device
> > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel1,id=channel1,name=com.redhat.spice.stream.0
> > > -chardev spiceport,name=com.redhat.spice.stream.0,id=charchannel1
> > > diff --git a/data/90-spice-guest-streaming.rules
> > > b/data/90-spice-guest-streaming.rules
> > > index 6cedd5c..5f74bd9 100644
> > > --- a/data/90-spice-guest-streaming.rules
> > > +++ b/data/90-spice-guest-streaming.rules
> > > @@ -1,2 +1,2 @@
> > > -ACTION=="add", SUBSYSTEM=="virtio-ports",
> > > ENV{DEVLINKS}=="/dev/virtio-ports/com.redhat.stream.0", MODE="0666"
> > > +ACTION=="add", SUBSYSTEM=="virtio-ports",
> > > ENV{DEVLINKS}=="/dev/virtio-ports/com.redhat.spice.stream.0", MODE="0666"
> > >
> > > diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
> > > index b39782c..eb469c8 100644
> > > --- a/src/spice-streaming-agent.cpp
> > > +++ b/src/spice-streaming-agent.cpp
> > > @@ -480,7 +480,7 @@ done:
> > >
> > > int main(int argc, char* argv[])
> > > {
> > > - const char *streamport = "/dev/virtio-ports/com.redhat.stream.0";
> > > + const char *streamport = "/dev/virtio-ports/com.redhat.spice.stream.0";
> > > int opt;
> > > const char *log_filename = NULL;
> > > int logmask = LOG_UPTO(LOG_WARNING);
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180323/b89f00bf/attachment.sig>
More information about the Spice-devel
mailing list