From: Paolo Bonzini <pbonzini@redhat.com>
To: Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>,
John Snow <jsnow@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [PATCH] hw/i386: Add the possibility to disable the 'isapc' machine
Date: Fri, 7 Jan 2022 18:28:11 +0100 [thread overview]
Message-ID: <0452d24b-c14f-14d9-f145-2013a3be72d6@redhat.com> (raw)
In-Reply-To: <20220107160713.235918-1-thuth@redhat.com>
On 1/7/22 17:07, Thomas Huth wrote:
> We already have a CONFIG_ISAPC switch - but we're not using it yet.
> Add some "#ifdefs" to make it possible to disable this machine now.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> hw/i386/pc_piix.c | 5 ++++-
> tests/qtest/cdrom-test.c | 2 +-
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index 1999190276..5147e1ee74 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -357,10 +357,12 @@ static void pc_compat_1_4_fn(MachineState *machine)
> pc_compat_1_5_fn(machine);
> }
>
> +#ifdef CONFIG_ISAPC
> static void pc_init_isa(MachineState *machine)
> {
> pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, TYPE_I440FX_PCI_DEVICE);
> }
> +#endif
>
> #ifdef CONFIG_XEN
> static void pc_xen_hvm_init_pci(MachineState *machine)
> @@ -916,6 +918,7 @@ void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id)
> pci_config_set_revision(bridge_dev->config, pch_rev_id);
> }
>
> +#ifdef CONFIG_ISAPC
> static void isapc_machine_options(MachineClass *m)
> {
> PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
> @@ -935,7 +938,7 @@ static void isapc_machine_options(MachineClass *m)
>
> DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa,
> isapc_machine_options);
> -
> +#endif
>
> #ifdef CONFIG_XEN
> static void xenfv_4_2_machine_options(MachineClass *m)
> diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c
> index cfca24fa94..fdd889a487 100644
> --- a/tests/qtest/cdrom-test.c
> +++ b/tests/qtest/cdrom-test.c
> @@ -138,7 +138,7 @@ static void add_x86_tests(void)
> * Unstable CI test under load
> * See https://lists.gnu.org/archive/html/qemu-devel/2019-02/msg05509.html
> */
> - if (g_test_slow()) {
> + if (g_test_slow() && qtest_has_machine("isapc")) {
> qtest_add_data_func("cdrom/boot/isapc", "-M isapc "
> "-drive if=ide,media=cdrom,file=", test_cdboot);
> }
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
next prev parent reply other threads:[~2022-01-07 17:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-07 16:07 [PATCH] hw/i386: Add the possibility to disable the 'isapc' machine Thomas Huth
2022-01-07 17:28 ` Paolo Bonzini [this message]
2022-01-07 18:54 ` Philippe Mathieu-Daudé
2022-01-13 6:57 ` Thomas Huth
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=0452d24b-c14f-14d9-f145-2013a3be72d6@redhat.com \
--to=pbonzini@redhat.com \
--cc=eduardo@habkost.net \
--cc=jsnow@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).