* [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
@ 2015-02-13 16:51 Markus Armbruster
2015-02-13 22:54 ` David Gibson
0 siblings, 1 reply; 8+ messages in thread
From: Markus Armbruster @ 2015-02-13 16:51 UTC (permalink / raw)
To: qemu-devel; +Cc: David Gibson
Commit 79ca616 "pci: Cleanup configuration for pci-hotplug.c" (June
2013, released in v1.6.0) made linking pci-hotplug-old.o conditional on
make variable CONFIG_PCI_HOTPLUG_OLD, and the actual monitor commands
conditional on preprocessor macro CONFIG_PCI_HOTPLUG_OLD. Where is that
macro defined?
In my local build: nowhere. The two commands are not available.
Am I doing something wrong, or have the commands been gone for five
major releases already?
If the latter, I think we can safely drop them now :)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-13 16:51 [Qemu-devel] Did we lose monitor commands pci_add, pci_del? Markus Armbruster
@ 2015-02-13 22:54 ` David Gibson
2015-02-14 13:19 ` Paolo Bonzini
0 siblings, 1 reply; 8+ messages in thread
From: David Gibson @ 2015-02-13 22:54 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
On Fri, Feb 13, 2015 at 05:51:26PM +0100, Markus Armbruster wrote:
> Commit 79ca616 "pci: Cleanup configuration for pci-hotplug.c" (June
> 2013, released in v1.6.0) made linking pci-hotplug-old.o conditional on
> make variable CONFIG_PCI_HOTPLUG_OLD, and the actual monitor commands
> conditional on preprocessor macro CONFIG_PCI_HOTPLUG_OLD. Where is that
> macro defined?
>
> In my local build: nowhere. The two commands are not available.
>
> Am I doing something wrong, or have the commands been gone for five
> major releases already?
>
> If the latter, I think we can safely drop them now :)
So AFAICT, CONFIG_PCI_HOTPLUG_OLD is still defined for x86 targets:
$ git grep PCI_HOTPLUG_OLD
default-configs/i386-softmmu.mak:CONFIG_PCI_HOTPLUG_OLD=y
default-configs/x86_64-softmmu.mak:CONFIG_PCI_HOTPLUG_OLD=y
...
I believe the reasoning was that for other targets, pci_add/del were
never properly supported and we should go directly to device_add/del
instead.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-13 22:54 ` David Gibson
@ 2015-02-14 13:19 ` Paolo Bonzini
2015-02-15 3:02 ` David Gibson
0 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2015-02-14 13:19 UTC (permalink / raw)
To: David Gibson, Markus Armbruster; +Cc: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13/02/2015 23:54, David Gibson wrote:
> So AFAICT, CONFIG_PCI_HOTPLUG_OLD is still defined for x86
> targets:
>
> $ git grep PCI_HOTPLUG_OLD
> default-configs/i386-softmmu.mak:CONFIG_PCI_HOTPLUG_OLD=y
> default-configs/x86_64-softmmu.mak:CONFIG_PCI_HOTPLUG_OLD=y ...
But these symbols do not become preprocessor macros...
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-14 13:19 ` Paolo Bonzini
@ 2015-02-15 3:02 ` David Gibson
2015-02-15 11:12 ` Peter Maydell
0 siblings, 1 reply; 8+ messages in thread
From: David Gibson @ 2015-02-15 3:02 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Markus Armbruster, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 857 bytes --]
On Sat, Feb 14, 2015 at 02:19:43PM +0100, Paolo Bonzini wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> On 13/02/2015 23:54, David Gibson wrote:
> > So AFAICT, CONFIG_PCI_HOTPLUG_OLD is still defined for x86
> > targets:
> >
> > $ git grep PCI_HOTPLUG_OLD
> > default-configs/i386-softmmu.mak:CONFIG_PCI_HOTPLUG_OLD=y
> > default-configs/x86_64-softmmu.mak:CONFIG_PCI_HOTPLUG_OLD=y ...
>
> But these symbols do not become preprocessor macros...
Godammit. Have I mentioned lately how much it pisses me off that we
have various config symbols and it's never clear which ones make it
into C and which are only in make.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-15 3:02 ` David Gibson
@ 2015-02-15 11:12 ` Peter Maydell
2015-02-16 7:57 ` Markus Armbruster
2015-02-16 8:56 ` Paolo Bonzini
0 siblings, 2 replies; 8+ messages in thread
From: Peter Maydell @ 2015-02-15 11:12 UTC (permalink / raw)
To: David Gibson; +Cc: Paolo Bonzini, Markus Armbruster, QEMU Developers
On 15 February 2015 at 03:02, David Gibson <david@gibson.dropbear.id.au> wrote:
> Godammit. Have I mentioned lately how much it pisses me off that we
> have various config symbols and it's never clear which ones make it
> into C and which are only in make.
That does seem confusing. Is there a reason we can't have a
config-devices.h which gets created from config-devices.mak?
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-15 11:12 ` Peter Maydell
@ 2015-02-16 7:57 ` Markus Armbruster
2015-02-16 10:06 ` Michael Tokarev
2015-02-16 8:56 ` Paolo Bonzini
1 sibling, 1 reply; 8+ messages in thread
From: Markus Armbruster @ 2015-02-16 7:57 UTC (permalink / raw)
To: Peter Maydell; +Cc: Paolo Bonzini, QEMU Developers, David Gibson
Peter Maydell <peter.maydell@linaro.org> writes:
> On 15 February 2015 at 03:02, David Gibson <david@gibson.dropbear.id.au> wrote:
>> Godammit. Have I mentioned lately how much it pisses me off that we
>> have various config symbols and it's never clear which ones make it
>> into C and which are only in make.
>
> That does seem confusing. Is there a reason we can't have a
> config-devices.h which gets created from config-devices.mak?
Newsflash: homespun configuration system confusing, film at eleven.
(Autoconf is also confusing, but at least it's the same confusion
everywhere)
Back to serious: patching configure to make sure all the CONFIG_ make
variables make it into header files sounds good to me.
With #ifdef tests, forgetting to include the header switches things off.
A single header makes guarding against that mistake easier: every .c
needs to include it first, check with grep.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-16 7:57 ` Markus Armbruster
@ 2015-02-16 10:06 ` Michael Tokarev
0 siblings, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2015-02-16 10:06 UTC (permalink / raw)
To: Markus Armbruster, Peter Maydell
Cc: Paolo Bonzini, QEMU Developers, David Gibson
16.02.2015 10:57, Markus Armbruster wrote:
[]
> Back to serious: patching configure to make sure all the CONFIG_ make
> variables make it into header files sounds good to me.
>
> With #ifdef tests, forgetting to include the header switches things off.
> A single header makes guarding against that mistake easier: every .c
> needs to include it first, check with grep.
Single header means that any change in config options results in
recompilation of everything. Linux kernel solves this but the
mechanism is a bit heavy...
Thanks,
/mjt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Did we lose monitor commands pci_add, pci_del?
2015-02-15 11:12 ` Peter Maydell
2015-02-16 7:57 ` Markus Armbruster
@ 2015-02-16 8:56 ` Paolo Bonzini
1 sibling, 0 replies; 8+ messages in thread
From: Paolo Bonzini @ 2015-02-16 8:56 UTC (permalink / raw)
To: Peter Maydell, David Gibson; +Cc: Markus Armbruster, QEMU Developers
On 15/02/2015 12:12, Peter Maydell wrote:
> On 15 February 2015 at 03:02, David Gibson <david@gibson.dropbear.id.au> wrote:
>> Godammit. Have I mentioned lately how much it pisses me off that we
>> have various config symbols and it's never clear which ones make it
>> into C and which are only in make.
>
> That does seem confusing. Is there a reason we can't have a
> config-devices.h which gets created from config-devices.mak?
Blue Swirl opposed it because we already had qdev_try_create... The
problem here was that CONFIG_PCI_HOTPLUG_OLD was in config-devices.mak
but not a device. There were other cases before (CONFIG_FDT maybe?) but
I think this was the last one.
I'd just kill it at this point...
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-02-16 10:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-13 16:51 [Qemu-devel] Did we lose monitor commands pci_add, pci_del? Markus Armbruster
2015-02-13 22:54 ` David Gibson
2015-02-14 13:19 ` Paolo Bonzini
2015-02-15 3:02 ` David Gibson
2015-02-15 11:12 ` Peter Maydell
2015-02-16 7:57 ` Markus Armbruster
2015-02-16 10:06 ` Michael Tokarev
2015-02-16 8:56 ` Paolo Bonzini
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).