From: Eduardo Habkost <ehabkost@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
Ben Warren <ben@skyportsystems.com>,
zhang.zhanghailiang@huawei.com,
Markus Armbruster <armbru@redhat.com>,
qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/4] Replace '-machine accel=xyz' with '-accel xyz'
Date: Wed, 13 Jun 2018 13:10:12 -0300 [thread overview]
Message-ID: <20180613161012.GT7451@localhost.localdomain> (raw)
In-Reply-To: <c203ab47-c88b-544d-0233-f7ba48e5e639@redhat.com>
On Wed, Jun 13, 2018 at 02:53:04PM +0200, Thomas Huth wrote:
> On 13.06.2018 14:48, Paolo Bonzini wrote:
> > On 13/06/2018 07:05, Thomas Huth wrote:
> >> diff --git a/tests/vmgenid-test.c b/tests/vmgenid-test.c
> >> index 8d915c6..4324034 100644
> >> --- a/tests/vmgenid-test.c
> >> +++ b/tests/vmgenid-test.c
> >> @@ -131,7 +131,7 @@ static void read_guid_from_monitor(QemuUUID *guid)
> >> static char disk[] = "tests/vmgenid-test-disk-XXXXXX";
> >>
> >> #define GUID_CMD(guid) \
> >> - "-machine accel=kvm:tcg " \
> >> + "-accel kvm:tcg " \
> >> "-device vmgenid,id=testvgid,guid=%s " \
> >
> > "-accel kvm:tcg" works, but it really shouldn't (and I think we can
> > change it without a deprecation period). The right syntax would be
> > "-accel kvm -accel tcg", so that you can specify options that are valid
> > only for KVM, or onlty for TCG.
>
> I see your point, but this would break these qtests that are trying to
> override the "-machine accel=qtest" from libqtest.c this way... and if
> any other tool out there in the wild is already depending on this
> behavior, too, we can not change it so easily anymore.
Tools might rely in "-machine accel=kvm:tcg", but I don't think
anybody should be relying on "-accel kvm:tcg" to work.
I agree with Paolo. If "-accel kvm:tcg" works today, I think we
should either remove that behavior immediately, or deprecate it
on QEMU 3.0.
We should also make sure "-accel kvm,FOO=BAR -accel tcg" won't
set FOO=BAR in the TCG accelerator if KVM is unavailable.
--
Eduardo
next prev parent reply other threads:[~2018-06-13 16:10 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-13 5:05 [Qemu-devel] [PATCH 0/4] Clean up accelerator options Thomas Huth
2018-06-13 5:05 ` [Qemu-devel] [PATCH 1/4] Replace '-machine accel=xyz' with '-accel xyz' Thomas Huth
2018-06-13 12:20 ` Eric Blake
2018-06-13 12:48 ` Paolo Bonzini
2018-06-13 12:53 ` Thomas Huth
2018-06-13 13:54 ` Paolo Bonzini
2018-06-13 14:12 ` Thomas Huth
2018-06-13 16:10 ` Eduardo Habkost [this message]
2018-06-13 13:38 ` Stefan Hajnoczi
2018-06-13 5:05 ` [Qemu-devel] [PATCH 2/4] Replace '-enable-kvm' with '-accel kvm' in docs and help texts Thomas Huth
2018-06-13 12:51 ` Paolo Bonzini
2018-06-13 13:38 ` Stefan Hajnoczi
2018-06-13 5:05 ` [Qemu-devel] [PATCH 3/4] qemu-options: Improve the documentation of '-accel' and '-machine accel=...' Thomas Huth
2018-06-13 13:38 ` Stefan Hajnoczi
2018-06-13 5:05 ` [Qemu-devel] [RFC PATCH 4/4] qemu-options: Do not show -enable-kvm and -enable-hax in the docs anymore Thomas Huth
2018-06-13 12:51 ` Paolo Bonzini
2018-06-13 13:38 ` Stefan Hajnoczi
2018-06-13 13:44 ` Daniel P. Berrangé
2018-06-13 15:11 ` Thomas Huth
2018-06-13 15:19 ` Daniel P. Berrangé
2018-06-13 15:44 ` Thomas Huth
2018-06-13 16:02 ` Markus Armbruster
2018-06-19 15:15 ` Cornelia Huck
2018-06-19 16:16 ` Paolo Bonzini
2018-06-22 18:11 ` Eduardo Habkost
2018-06-22 19:19 ` Thomas Huth
2018-06-22 19:35 ` Eduardo Habkost
2018-06-22 21:22 ` Paolo Bonzini
2018-06-25 6:50 ` Markus Armbruster
2018-06-25 10:28 ` Paolo Bonzini
2018-06-25 17:30 ` Eduardo Habkost
2018-06-25 18:26 ` Paolo Bonzini
2018-06-25 19:51 ` Eduardo Habkost
2018-06-26 5:57 ` Paolo Bonzini
2018-06-26 12:29 ` Eduardo Habkost
2018-06-26 13:05 ` Paolo Bonzini
2018-06-26 16:06 ` Eduardo Habkost
2018-06-26 16:10 ` Daniel P. Berrangé
2018-06-27 8:39 ` Paolo Bonzini
2018-06-27 14:05 ` Eduardo Habkost
2018-06-26 4:40 ` Thomas Huth
2018-06-26 7:50 ` Cornelia Huck
2018-06-26 12:56 ` Eduardo Habkost
2018-06-26 16:43 ` Markus Armbruster
2018-06-27 8:49 ` Paolo Bonzini
2018-06-13 13:39 ` [Qemu-devel] [PATCH 0/4] Clean up accelerator options Stefan Hajnoczi
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=20180613161012.GT7451@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=armbru@redhat.com \
--cc=ben@skyportsystems.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
--cc=zhang.zhanghailiang@huawei.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).