All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Thomas Huth" <thuth@redhat.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Peter Xu" <peterx@redhat.com>,
	qemu-devel@nongnu.org, "Emilio G . Cota" <cota@braap.org>,
	"Anthony Perard" <anthony.perard@citrix.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>
Subject: Re: [Qemu-devel] [RFC PATCH] vl: only display available accelerators
Date: Wed, 8 Nov 2017 13:28:57 +0000	[thread overview]
Message-ID: <20171108132857.GT12670@redhat.com> (raw)
In-Reply-To: <20171030082029.GY2993@localhost.localdomain>

On Mon, Oct 30, 2017 at 09:20:29AM +0100, Eduardo Habkost wrote:
> On Mon, Oct 30, 2017 at 01:00:56AM -0300, Philippe Mathieu-Daudé wrote:
> > examples configuring with '--enable-kvm --disable-tcg'
> > 
> > - before
> > 
> >   $ qemu-system-x86_64 -accel help
> >   Possible accelerators: kvm, xen, hax, tcg
> > 
> >   $ qemu-system-x86_64 -accel tcg
> >   qemu-system-x86_64: -machine accel=tcg: No accelerator found
> > 
> >   # qemu-system-x86_64 -accel hax
> >   qemu-system-x86_64: -machine accel=hax: No accelerator found
> > 
> >   # qemu-system-x86_64 -accel xen
> >   xencall: error: Could not obtain handle on privileged command interface: No such file or directory
> >   xen be core: xen be core: can't open xen interface
> >   can't open xen interface
> >   qemu-system-x86_64: failed to initialize Xen: Operation not permitted
> > 
> > - after
> > 
> >   $ qemu-system-x86_64 -accel help
> >   Possible accelerators: kvm
> > 
> > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> > ---
> > RFC because:
> >     - I don't think this is the nicest way, too much #ifdef'fery in main()
> 
> I suggest using object_class_get_list(TYPE_ACCEL, false).

And check the result of the available() method on the returned classes
too, to filter the results.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

  parent reply	other threads:[~2017-11-08 13:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30  4:00 [Qemu-devel] [RFC PATCH] vl: only display available accelerators Philippe Mathieu-Daudé
2017-10-30  4:13 ` no-reply
2017-10-30  8:20 ` Eduardo Habkost
2017-10-30 15:01   ` Philippe Mathieu-Daudé
2017-10-30 15:34     ` Peter Maydell
2017-11-08 13:28   ` Daniel P. Berrange [this message]
2017-11-08 16:21     ` Philippe Mathieu-Daudé
2017-11-08 16:59       ` Eduardo Habkost
2017-11-08 17:06         ` Daniel P. Berrange
2017-11-08 17:25           ` Eduardo Habkost
2017-11-08 17:28             ` Daniel P. Berrange
2017-11-08 18:03             ` Philippe Mathieu-Daudé
2017-11-08 18:35               ` Eduardo Habkost
2017-11-08 19:41                 ` Philippe Mathieu-Daudé
  -- strict thread matches above, loose matches on Subject: below --
2017-10-30 18:14 Philippe Mathieu-Daudé
2017-10-30 18:18 ` Philippe Mathieu-Daudé
2017-11-03  0:35 ` Eduardo Habkost
2017-11-08 16:20   ` Philippe Mathieu-Daudé
2017-11-08 16:56     ` Eduardo Habkost

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=20171108132857.GT12670@redhat.com \
    --to=berrange@redhat.com \
    --cc=anthony.perard@citrix.com \
    --cc=armbru@redhat.com \
    --cc=cota@braap.org \
    --cc=ehabkost@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=sstabellini@kernel.org \
    --cc=thuth@redhat.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.