All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: Add spice vdagent support for upstream qemu
@ 2013-03-18 15:49 fantonifabio
  2013-03-25 12:29 ` Ian Jackson
  0 siblings, 1 reply; 6+ messages in thread
From: fantonifabio @ 2013-03-18 15:49 UTC (permalink / raw)
  To: xen-devel; +Cc: Fabio Fantoni, Ian.Jackson, Ian.Campbell, Stefano.Stabellini

- Enable vdagent on upstream qemu if spice is used.

Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
---
 tools/libxl/libxl_dm.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index a8a36d7..110f1dc 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -427,6 +427,10 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
 
             flexarray_append(dm_args, "-spice");
             flexarray_append(dm_args, spiceoptions);
+            flexarray_vappend(dm_args, "-device", "virtio-serial", "-chardev",
+                "spicevmc,id=vdagent,name=vdagent", "-device",
+                "virtserialport,chardev=vdagent,name=com.redhat.spice.0",
+                NULL);
         }
 
         switch (b_info->u.hvm.vga.kind) {
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] libxl: Add spice vdagent support for upstream qemu
  2013-03-18 15:49 [PATCH] libxl: Add spice vdagent support for upstream qemu fantonifabio
@ 2013-03-25 12:29 ` Ian Jackson
  2013-03-25 14:46   ` Fabio Fantoni
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Jackson @ 2013-03-25 12:29 UTC (permalink / raw)
  To: fantonifabio@tiscali.it
  Cc: Fabio Fantoni, xen-devel@lists.xensource.com, Ian Campbell,
	Stefano Stabellini

fantonifabio@tiscali.it writes ("[PATCH] libxl: Add spice vdagent support for upstream qemu"):
> - Enable vdagent on upstream qemu if spice is used.

Forgive my ignorance, but what is this ?  Can you point me to some
docs or something ?

Thanks,
Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libxl: Add spice vdagent support for upstream qemu
  2013-03-25 12:29 ` Ian Jackson
@ 2013-03-25 14:46   ` Fabio Fantoni
  2013-03-26 16:30     ` Ian Jackson
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Fantoni @ 2013-03-25 14:46 UTC (permalink / raw)
  To: Ian Jackson
  Cc: Fabio Fantoni, xen-devel@lists.xensource.com, Ian Campbell,
	Stefano Stabellini


[-- Attachment #1.1: Type: text/plain, Size: 915 bytes --]

Il 25/03/2013 13:29, Ian Jackson ha scritto:
> fantonifabio@tiscali.it writes ("[PATCH] libxl: Add spice vdagent support for upstream qemu"):
>> - Enable vdagent on upstream qemu if spice is used.
> Forgive my ignorance, but what is this ?  Can you point me to some
> docs or something ?
>
> Thanks,
> Ian.
>
Spice for now not have very good documentation, his documentation is 
mainly on kvm even if is working also without kvm, I used vdagent for 
one year manually without problem on xen, it provide some very useful (I 
think essential) functions.
For small and fast description about it probably the description of this 
package is good:
http://packages.debian.org/wheezy/spice-vdagent

If someone think of add xl parameter for use it, is not necessary 
because spice is working also without agent on guest os installed and 
there is already "spiceagent_mouse" xl parameter if necessary.


[-- Attachment #1.2: Firma crittografica S/MIME --]
[-- Type: application/pkcs7-signature, Size: 4510 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libxl: Add spice vdagent support for upstream qemu
  2013-03-25 14:46   ` Fabio Fantoni
@ 2013-03-26 16:30     ` Ian Jackson
  2013-03-26 17:42       ` Fabio Fantoni
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Jackson @ 2013-03-26 16:30 UTC (permalink / raw)
  To: fantonifabio@tiscali.it
  Cc: Fabio Fantoni, xen-devel@lists.xensource.com, Ian Campbell,
	Stefano Stabellini

Fabio Fantoni writes ("Re: [PATCH] libxl: Add spice vdagent support for upstream qemu"):
> Spice for now not have very good documentation, his documentation is 
> mainly on kvm even if is working also without kvm, I used vdagent for 
> one year manually without problem on xen, it provide some very useful (I 
> think essential) functions.
> For small and fast description about it probably the description of this 
> package is good:
> http://packages.debian.org/wheezy/spice-vdagent

Hmmm.

Does this then pass more things through to the guest ?  Is there any
security risk to the host ?  This is I'm afraid unclear, and is why
I'm hesitating.

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libxl: Add spice vdagent support for upstream qemu
  2013-03-26 16:30     ` Ian Jackson
@ 2013-03-26 17:42       ` Fabio Fantoni
  2013-04-22 12:11         ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Fantoni @ 2013-03-26 17:42 UTC (permalink / raw)
  To: Ian Jackson
  Cc: Fabio Fantoni, xen-devel@lists.xensource.com, Ian Campbell,
	Stefano Stabellini


[-- Attachment #1.1: Type: text/plain, Size: 938 bytes --]

Il 26/03/2013 17:30, Ian Jackson ha scritto:
> Fabio Fantoni writes ("Re: [PATCH] libxl: Add spice vdagent support for upstream qemu"):
>> Spice for now not have very good documentation, his documentation is
>> mainly on kvm even if is working also without kvm, I used vdagent for
>> one year manually without problem on xen, it provide some very useful (I
>> think essential) functions.
>> For small and fast description about it probably the description of this
>> package is good:
>> http://packages.debian.org/wheezy/spice-vdagent
> Hmmm.
>
> Does this then pass more things through to the guest ?  Is there any
> security risk to the host ?  This is I'm afraid unclear, and is why
> I'm hesitating.
>
> Ian.
>
>
I think there aren't security risk for host because these are only 
operation done between spice client and guest os if this channel is 
present on qemu of guest and agent is installed on guest os.


[-- Attachment #1.2: Firma crittografica S/MIME --]
[-- Type: application/pkcs7-signature, Size: 4510 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] libxl: Add spice vdagent support for upstream qemu
  2013-03-26 17:42       ` Fabio Fantoni
@ 2013-04-22 12:11         ` Ian Campbell
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Campbell @ 2013-04-22 12:11 UTC (permalink / raw)
  To: fantonifabio@tiscali.it
  Cc: Fabio Fantoni, xen-devel@lists.xensource.com, Ian Jackson,
	Stefano Stabellini

On Tue, 2013-03-26 at 17:42 +0000, Fabio Fantoni wrote:
> Il 26/03/2013 17:30, Ian Jackson ha scritto:
> > Fabio Fantoni writes ("Re: [PATCH] libxl: Add spice vdagent support for upstream qemu"):
> >> Spice for now not have very good documentation, his documentation is
> >> mainly on kvm even if is working also without kvm, I used vdagent for
> >> one year manually without problem on xen, it provide some very useful (I
> >> think essential) functions.
> >> For small and fast description about it probably the description of this
> >> package is good:
> >> http://packages.debian.org/wheezy/spice-vdagent
> > Hmmm.
> >
> > Does this then pass more things through to the guest ?  Is there any
> > security risk to the host ?  This is I'm afraid unclear, and is why
> > I'm hesitating.

> I think there aren't security risk for host because these are only 
> operation done between spice client and guest os if this channel is 
> present on qemu of guest and agent is installed on guest os.

Looks like (from http://spice-space.org/page/Whiteboard/AgentProtocol)
this protocol supports things like clipboard sharing, which may or may
not be what the person starting the VM wants depending on who they are
allowing to access the VM remotely.

So I think at a minimum this needs to only be optionally added to the
guest, and probably to default to off even if spice is enabled.

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-22 12:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-18 15:49 [PATCH] libxl: Add spice vdagent support for upstream qemu fantonifabio
2013-03-25 12:29 ` Ian Jackson
2013-03-25 14:46   ` Fabio Fantoni
2013-03-26 16:30     ` Ian Jackson
2013-03-26 17:42       ` Fabio Fantoni
2013-04-22 12:11         ` Ian Campbell

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.