From: Fabiano Rosas <farosas@suse.de>
To: Thomas Huth <thuth@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PULL 11/35] arm/Kconfig: Do not build TCG-only boards on a KVM-only build
Date: Thu, 04 May 2023 09:27:50 -0300 [thread overview]
Message-ID: <87bkj0cmd5.fsf@suse.de> (raw)
In-Reply-To: <b5d0ea65-0485-382b-f59a-84a5596b63a2@redhat.com>
Thomas Huth <thuth@redhat.com> writes:
> On 02/05/2023 14.14, Peter Maydell wrote:
>> From: Fabiano Rosas <farosas@suse.de>
>>
>> Move all the CONFIG_FOO=y from default.mak into "default y if TCG"
>> statements in Kconfig. That way they won't be selected when
>> CONFIG_TCG=n.
>>
>> I'm leaving CONFIG_ARM_VIRT in default.mak because it allows us to
>> keep the two default.mak files not empty and keep aarch64-default.mak
>> including arm-default.mak. That way we don't surprise anyone that's
>> used to altering these files.
>>
>> With this change we can start building with --disable-tcg.
>>
>> Signed-off-by: Fabiano Rosas <farosas@suse.de>
>> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>> Message-id: 20230426180013.14814-12-farosas@suse.de
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>> ---
>> configs/devices/aarch64-softmmu/default.mak | 4 --
>> configs/devices/arm-softmmu/default.mak | 37 ------------------
>> hw/arm/Kconfig | 42 ++++++++++++++++++++-
>> 3 files changed, 41 insertions(+), 42 deletions(-)
>>
>> diff --git a/configs/devices/aarch64-softmmu/default.mak b/configs/devices/aarch64-softmmu/default.mak
>> index cf43ac8da11..70e05a197dc 100644
>> --- a/configs/devices/aarch64-softmmu/default.mak
>> +++ b/configs/devices/aarch64-softmmu/default.mak
>> @@ -2,7 +2,3 @@
>>
>> # We support all the 32 bit boards so need all their config
>> include ../arm-softmmu/default.mak
>> -
>> -CONFIG_XLNX_ZYNQMP_ARM=y
>> -CONFIG_XLNX_VERSAL=y
>> -CONFIG_SBSA_REF=y
>> diff --git a/configs/devices/arm-softmmu/default.mak b/configs/devices/arm-softmmu/default.mak
>> index cb3e5aea657..647fbce88d3 100644
>> --- a/configs/devices/arm-softmmu/default.mak
>> +++ b/configs/devices/arm-softmmu/default.mak
>> @@ -4,40 +4,3 @@
>> # CONFIG_TEST_DEVICES=n
>>
>> CONFIG_ARM_VIRT=y
>> -CONFIG_CUBIEBOARD=y
>> -CONFIG_EXYNOS4=y
>> -CONFIG_HIGHBANK=y
>> -CONFIG_INTEGRATOR=y
>> -CONFIG_FSL_IMX31=y
>> -CONFIG_MUSICPAL=y
>> -CONFIG_MUSCA=y
>> -CONFIG_CHEETAH=y
>> -CONFIG_SX1=y
>> -CONFIG_NSERIES=y
>> -CONFIG_STELLARIS=y
>> -CONFIG_STM32VLDISCOVERY=y
>> -CONFIG_REALVIEW=y
>> -CONFIG_VERSATILE=y
>> -CONFIG_VEXPRESS=y
>> -CONFIG_ZYNQ=y
>> -CONFIG_MAINSTONE=y
>> -CONFIG_GUMSTIX=y
>> -CONFIG_SPITZ=y
>> -CONFIG_TOSA=y
>> -CONFIG_Z2=y
>> -CONFIG_NPCM7XX=y
>> -CONFIG_COLLIE=y
>> -CONFIG_ASPEED_SOC=y
>> -CONFIG_NETDUINO2=y
>> -CONFIG_NETDUINOPLUS2=y
>> -CONFIG_OLIMEX_STM32_H405=y
>> -CONFIG_MPS2=y
>> -CONFIG_RASPI=y
>> -CONFIG_DIGIC=y
>> -CONFIG_SABRELITE=y
>> -CONFIG_EMCRAFT_SF2=y
>> -CONFIG_MICROBIT=y
>> -CONFIG_FSL_IMX25=y
>> -CONFIG_FSL_IMX7=y
>> -CONFIG_FSL_IMX6UL=y
>> -CONFIG_ALLWINNER_H3=y
>> diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig
>> index 87c1a29c912..2d7c4579559 100644
>> --- a/hw/arm/Kconfig
>> +++ b/hw/arm/Kconfig
>> @@ -35,20 +35,24 @@ config ARM_VIRT
>>
>> config CHEETAH
>> bool
>> + default y if TCG && ARM
>> select OMAP
>> select TSC210X
>>
>> config CUBIEBOARD
>> bool
>> + default y if TCG && ARM
>> select ALLWINNER_A10
> ...
>
> Hi!
>
> Sorry for not noticing this earlier, but I have to say that I really dislike
> this change, since it very much changes the way we did our machine
> configuration so far.
> Until now, you could simply go to configs/devices/*-softmmu/*.mak and only
> select the machines you wanted to have with "...=y" and delete everything
> else. Now you have to know *all* the machines that you do *not* want to have
> in your build and disable them with "...=n" in that file. That's quite ugly,
> especially for the arm target that has so many machines. (ok, you could also
> do a "--without-default-devices" configuration to get rid of the machines,
> but that also disables all other kind of devices that you then have to
> specify manually).
>
Would leaving the CONFIGs as 'n', but commented out in the .mak files be
of any help? If I understand your use case, you were probably just
deleting the CONFIG=y for the boards you don't want. So now you'd be
uncommenting the CONFIG=n instead.
Alternatively, we could revert the .mak part of this change, convert
default.mak into tcg.mak and kvm.mak, and use those transparently
depending on whether --disable-tcg is present in the configure line.
But there's probably a better way still that I'm not seeing here, let's
see what others think.
next prev parent reply other threads:[~2023-05-04 12:28 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-02 12:14 [PULL 00/35] target-arm queue Peter Maydell
2023-05-02 12:14 ` [PULL 01/35] target/arm: Move cortex sysregs into a separate file Peter Maydell
2023-05-02 12:14 ` [PULL 02/35] target/arm: Remove dead code from cpu_max_set_sve_max_vq Peter Maydell
2023-05-02 12:14 ` [PULL 03/35] target/arm: Extract TCG -cpu max code into a function Peter Maydell
2023-05-02 12:14 ` [PULL 04/35] target/arm: Do not expose all -cpu max features to qtests Peter Maydell
2023-05-02 12:14 ` [PULL 05/35] target/arm: Move 64-bit TCG CPUs into tcg/ Peter Maydell
2023-05-02 12:14 ` [PULL 06/35] tests/qtest: Adjust and document query-cpu-model-expansion test for arm Peter Maydell
2023-05-02 12:14 ` [PULL 07/35] target/arm: move cpu_tcg to tcg/cpu32.c Peter Maydell
2023-05-02 12:14 ` [PULL 08/35] tests/qtest: Fix tests when no KVM or TCG are present Peter Maydell
2023-05-02 12:14 ` [PULL 09/35] tests/avocado: Pass parameters to migration test Peter Maydell
2023-05-02 12:14 ` [PULL 10/35] arm/Kconfig: Always select SEMIHOSTING when TCG is present Peter Maydell
2023-05-02 12:14 ` [PULL 11/35] arm/Kconfig: Do not build TCG-only boards on a KVM-only build Peter Maydell
2023-05-04 7:12 ` Thomas Huth
2023-05-04 12:27 ` Fabiano Rosas [this message]
2023-05-08 22:19 ` Paolo Bonzini
2023-05-09 6:57 ` Thomas Huth
2023-05-02 12:14 ` [PULL 12/35] tests/qtest: Restrict tpm-tis-i2c-test to CONFIG_TCG Peter Maydell
2023-05-02 12:14 ` [PULL 13/35] gitlab-ci: Check building KVM-only aarch64 target Peter Maydell
2023-05-02 12:14 ` [PULL 14/35] hw/net: npcm7xx_emc: set MAC in register space Peter Maydell
2023-05-02 12:14 ` [PULL 15/35] hw/arm/bcm2835_property: Implement "get command line" message Peter Maydell
2023-05-02 12:14 ` [PULL 16/35] make one-insn-per-tb an accel option Peter Maydell
2023-05-02 12:14 ` [PULL 17/35] softmmu: Don't use 'singlestep' global in QMP and HMP commands Peter Maydell
2023-05-02 12:14 ` [PULL 18/35] accel/tcg: Use one_insn_per_tb global instead of old singlestep global Peter Maydell
2023-05-02 12:14 ` [PULL 19/35] linux-user: Add '-one-insn-per-tb' option equivalent to '-singlestep' Peter Maydell
2023-05-02 12:14 ` [PULL 20/35] bsd-user: " Peter Maydell
2023-05-02 12:14 ` [PULL 21/35] Document that -singlestep command line option is deprecated Peter Maydell
2023-05-02 12:14 ` [PULL 22/35] accel/tcg: Report one-insn-per-tb in 'info jit', not 'info status' Peter Maydell
2023-05-02 12:14 ` [PULL 23/35] hmp: Add 'one-insn-per-tb' command equivalent to 'singlestep' Peter Maydell
2023-05-02 12:14 ` [PULL 24/35] qapi/run-state.json: Fix missing newline at end of file Peter Maydell
2023-05-02 12:14 ` [PULL 25/35] qmp: Deprecate 'singlestep' member of StatusInfo Peter Maydell
2023-05-02 12:14 ` [PULL 26/35] docs/about/deprecated.rst: Add "since 7.1" tag to dtb-kaslr-seed deprecation Peter Maydell
2023-05-02 12:14 ` [PULL 27/35] hw/net/msf2-emac: Don't modify descriptor in-place in emac_store_desc() Peter Maydell
2023-05-02 12:14 ` [PULL 28/35] hw/arm/boot: Make write_bootloader() public as arm_write_bootloader() Peter Maydell
2023-05-02 12:14 ` [PULL 29/35] hw/arm/aspeed: Use arm_write_bootloader() to write the bootloader Peter Maydell
2023-05-02 12:14 ` [PULL 30/35] hw/arm/raspi: Use arm_write_bootloader() to write boot code Peter Maydell
2023-05-02 12:14 ` [PULL 31/35] hw/intc/allwinner-a10-pic: Don't use set_bit()/clear_bit() Peter Maydell
2023-06-03 15:03 ` Guenter Roeck
2023-06-03 17:46 ` Michael Tokarev
2023-06-03 18:06 ` Guenter Roeck
2023-06-05 9:40 ` Peter Maydell
2023-06-05 13:35 ` Guenter Roeck
2023-06-06 10:33 ` Peter Maydell
2023-05-02 12:14 ` [PULL 32/35] target/arm: Define and use new load_cpu_field_low32() Peter Maydell
2023-05-02 12:14 ` [PULL 33/35] target/arm: Add compile time asserts to load/store_cpu_field macros Peter Maydell
2023-05-02 12:14 ` [PULL 34/35] hw/sd/allwinner-sdhost: Correctly byteswap descriptor fields Peter Maydell
2023-05-02 12:14 ` [PULL 35/35] hw/net/allwinner-sun8i-emac: " Peter Maydell
2023-05-02 14:09 ` [PULL 00/35] target-arm queue Richard Henderson
2023-05-02 14:47 ` Peter Maydell
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=87bkj0cmd5.fsf@suse.de \
--to=farosas@suse.de \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 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).