From: "Andreas Färber" <afaerber@suse.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
Anthony Liguori <aliguori@us.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] qdev: obey no_user
Date: Mon, 07 Jan 2013 23:10:20 +0100 [thread overview]
Message-ID: <50EB47CC.6030507@suse.de> (raw)
In-Reply-To: <CAFEAcA_Xeuh6AL5m5mDUd3zV=Ph1nT0ydQrnorP4Bqz2=VqSAQ@mail.gmail.com>
Am 07.01.2013 21:16, schrieb Peter Maydell:
> On 7 January 2013 20:12, Anthony Liguori <aliguori@us.ibm.com> wrote:
>> Peter Maydell <peter.maydell@linaro.org> writes:
>>> It seems to me like arbitrarily allowing the monitor to construct
>>> no-user devices isn't really the right way to attack the problem
>>> of "allow complete machine construction by management tools"...
>>
>> There is no such thing as a 'no-user' device. It's a silly distinction
>> that has never had a consistent meaning.
>
> Then let's just rip that flag out completely.
That's a bad idea, given that we are about to make the CPU a device.
So yes, there are devices that are not meant to be instantiated more
than once (e.g., sclp-console). And there are devices that are not meant
to be instantiated by the user at all.
BTW this patch exposed that there is silly code in this function: When
the bus is NULL, it is initialized as the SysBus. But we all know that
SysBus is not hotplug-capable in the first place, so we can never
device_add on SysBus.
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-01-07 22:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 16:00 [Qemu-devel] [PATCH] qdev: obey no_user Christian Borntraeger
2013-01-07 14:05 ` Christian Borntraeger
2013-01-07 14:20 ` Andreas Färber
2013-01-07 15:24 ` Luiz Capitulino
2013-01-07 19:32 ` Anthony Liguori
2013-01-07 19:40 ` Peter Maydell
2013-01-07 20:12 ` Anthony Liguori
2013-01-07 20:16 ` Peter Maydell
2013-01-07 20:48 ` Anthony Liguori
2013-01-07 22:10 ` Andreas Färber [this message]
2013-01-07 22:20 ` Peter Maydell
2013-01-07 22:36 ` Andreas Färber
2013-01-07 22:48 ` Anthony Liguori
2013-01-07 20:40 ` Christian Borntraeger
2013-01-07 21:43 ` Anthony Liguori
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=50EB47CC.6030507@suse.de \
--to=afaerber@suse.de \
--cc=aliguori@us.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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.