All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
	Fabio Fantoni <fantonifabio@tiscali.it>
Subject: Re: Need advice to develop some libxl patches
Date: Fri, 8 Feb 2013 11:50:53 +0000	[thread overview]
Message-ID: <1360324253.29432.13.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1302081134360.4275@kaball.uk.xensource.com>

On Fri, 2013-02-08 at 11:36 +0000, Stefano Stabellini wrote:
> On Thu, 31 Jan 2013, Fabio Fantoni wrote:
> > I tested spice vdagent, spice audio and spice usbredirection with qemu
> > upstream and xen-unstable manually, is all working.
> > I'm start to write some patches to have all spice features on xen 4.3.
> > 
> > About vdagent probably no problem.
> > 
> > About spice audio on test I actually set this variable manually:
> > 
> > export QEMU_AUDIO_DRV=spice
> > 
> > I need know how to setup this env variable but for a given hvm domU start.
> > In other word I need to set this env variable on a per domU basis (if
> > spiceaudio if setted in cfg).
> 
> Pass it from libxl, after all QEMU is spawned by libxl

Setting envvars to configure qemu is a pretty crappy interface though,
given that qemu supports both command line and configuration files for
most other stuff. Perhaps this interface should be fixed upstream to use
the standard mechanisms first?

> > About usb redirection the qemu parameters to add are similar to this:
> > 
> > device_model_args=["-readconfig","/etc/xen/ich9-ehci-uhci.cfg","-chardev","spicevmc,name=usbredir,id=usbredirchardev1","-device","usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=ehci.0,debug=3","-chardev","spicevmc,name=usbredir,id=usbredirchardev2","-device","usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=ehci.0,debug=3","-chardev","spicevmc,name=usbredir,id=usbredirchardev3","-device","usb-redir,chardev=usbredirchardev3,id=usbredirdev3,bus=ehci.0,debug=3"]
> > 
> > Probably is not good point to external generic file (on my test
> > /etc/xen/ich9-ehci-uhci.cfg), someone can tell me the best way for do this?

What does /etc/xen/ich9-ehci-uhci.cfg contain? Perhaps we might want to
add USB passthrough as a concept in libxl so as to expose this in a more
"libxl" like manner, instead of just cutting through the qemu options?
(I think George also brought this up a while back).

Ian.

  reply	other threads:[~2013-02-08 11:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-31 16:01 Need advice to develop some libxl patches Fabio Fantoni
2013-02-08 11:36 ` Stefano Stabellini
2013-02-08 11:50   ` Ian Campbell [this message]
2013-02-08 15:13     ` Fabio Fantoni
2013-02-08 15:21       ` Ian Campbell
2013-02-12 14:37     ` Fabio Fantoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1360324253.29432.13.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=fantonifabio@tiscali.it \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.