xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Paul Durrant <Paul.Durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Stefano Stabellini <Stefano.Stabellini@citrix.com>,
	Ian Jackson <Ian.Jackson@citrix.com>
Subject: Re: [PATCH v5 1/6] libxl: do not add a vkb backend to hvm guests
Date: Fri, 24 Jul 2015 12:10:24 +0100	[thread overview]
Message-ID: <1437736224.24746.71.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1507241132120.28668@kaball.uk.xensource.com>

On Fri, 2015-07-24 at 11:56 +0100, Stefano Stabellini wrote:
> On Fri, 24 Jul 2015, Paul Durrant wrote:
> > > -----Original Message-----
> > > From: Stefano Stabellini [mailto:stefano.stabellini@eu.citrix.com
> > > ]
> > > Sent: 24 July 2015 11:21
> > > To: Paul Durrant
> > > Cc: Stefano Stabellini; xen-devel@lists.xensource.com; Wei Liu; 
> > > Ian Jackson;
> > > Ian Campbell
> > > Subject: RE: [Xen-devel] [PATCH v5 1/6] libxl: do not add a vkb 
> > > backend to
> > > hvm guests
> > > 
> > > On Fri, 24 Jul 2015, Paul Durrant wrote:
> > > > > -----Original Message-----
> > > > > From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-
> > > > > bounces@lists.xen.org] On Behalf Of Stefano Stabellini
> > > > > Sent: 23 July 2015 18:28
> > > > > To: xen-devel@lists.xensource.com
> > > > > Cc: Wei Liu; Ian Jackson; Ian Campbell; Stefano Stabellini
> > > > > Subject: [Xen-devel] [PATCH v5 1/6] libxl: do not add a vkb 
> > > > > backend to
> > > hvm
> > > > > guests
> > > > > 
> > > > > When QEMU restricts its xenstore connection, it cannot 
> > > > > provide PV
> > > > > backends. A separate QEMU instance is required to provide PV 
> > > > > backends
> > > in
> > > > > userspace, such as qdisk. With two separate instances, it is 
> > > > > not
> > > > > possible to take advantage of vkb for mouse and keyboard, as 
> > > > > the QEMU
> > > > > that emulates the graphic card (the device model), would be 
> > > > > separate
> > > > > from the QEMU running the vkb backend (PV QEMU).
> > > > > 
> > > > > Removing this functionality is acceptable, because is only 
> > > > > useful for
> > > > > power saving when usb emulation is off, letting QEMU sleep 
> > > > > for longer
> > > > > periods of time.  However usb emulation is on by default, and 
> > > > > how to
> > > > > take advantage of this configuration has never been 
> > > > > documented.
> > > > > 
> > > > 
> > > > I don't think I agree. Turning off USB emulation for HVM guests 
> > > > (particularly
> > > Windows) has been shown to be highly advantageous in performance 
> > > and
> > > scalability terms, and we have a prototype HID driver (not yet 
> > > part of the
> > > XenProject driver set, but hopefully soon will be) which uses 
> > > vkb.
> > > 
> > > I would appreciate if this kind of comments were made at v1 or 
> > > v2, not
> > > v5 of a series :-)
> > > 
> > 
> > Yes, I realise that, but I've been busy... sorry.
> > 
> > > 
> > > I know that turning USB emulation off is a big win, but nobody is 
> > > really
> > > doing it. The reason is that we didn't properly documented how to 
> > > do it.
> > 
> > It's documented for XenServer and we have toolstack support to do 
> > it.
> 
> You could still use it if you call libxl_device_vkb_add explicitely and
> you avoid creating any of depriv QEMU users (xen-qemudepriv-domid* and
> xen-qemudepriv-shared).

There really ought to be a way at the libxl level (but not necessarily
in xl) to disable the depriv without having to arrange things "just so"
such that it doesn't occur...

Ian.

  reply	other threads:[~2015-07-24 11:10 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 17:26 [PATCH v5 0/6] libxl: xs_restrict QEMU Stefano Stabellini
2015-07-23 17:27 ` [PATCH v5 1/6] libxl: do not add a vkb backend to hvm guests Stefano Stabellini
2015-07-24  8:01   ` Paul Durrant
2015-07-24 10:21     ` Stefano Stabellini
2015-07-24 10:31       ` Paul Durrant
2015-07-24 10:56         ` Stefano Stabellini
2015-07-24 11:10           ` Ian Campbell [this message]
2015-07-24 11:12             ` Ian Jackson
2015-07-24 11:29             ` Stefano Stabellini
2015-07-24 11:39               ` Ian Campbell
2015-07-24 11:12           ` Paul Durrant
2015-07-24 12:04             ` Stefano Stabellini
2015-07-24 14:10               ` Stefano Stabellini
2015-07-24 14:13                 ` Paul Durrant
2015-07-24 10:45       ` Fabio Fantoni
2015-07-23 17:27 ` [PATCH v5 2/6] [WIP] libxl: xsrestrict QEMU Stefano Stabellini
2015-07-23 17:27 ` [PATCH v5 3/6] libxl: allow /local/domain/$LIBXL_TOOLSTACK_DOMID/device-model/$DOMID to be written by $DOMID Stefano Stabellini
2015-07-23 17:27 ` [PATCH v5 4/6] libxl: change xs path for QEMU Stefano Stabellini
2015-07-23 17:27 ` [PATCH v5 5/6] libxl: change qdisk-backend-pid path on xenstore Stefano Stabellini
2015-07-23 17:27 ` [PATCH v5 6/6] libxl: spawns two QEMUs for HVM guests Stefano Stabellini
2015-07-27 11:08 ` [PATCH v5 0/6] libxl: xs_restrict QEMU Fabio Fantoni
2015-07-29  9:21   ` Stefano Stabellini
2015-07-29  9:33     ` Fabio Fantoni
2015-07-29  9:36       ` Stefano Stabellini

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=1437736224.24746.71.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=Stefano.Stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).