* [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines
@ 2026-11-27 14:40 Thomas Huth
2026-11-27 14:40 ` [PATCH 1/2] hw/i386: Remove the " Thomas Huth
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Thomas Huth @ 2026-11-27 14:40 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
Cc: Michael S. Tsirkin, Richard Henderson, Zhao Liu,
Philippe Mathieu-Daudé
The pc-q35-4.1 and pc-i440fx-4.1 have already been disabled automatically
since they are older than 6 years. The related code is dead, we can remove
it now.
Thomas Huth (2):
hw/i386: Remove the code of the obsolete pc-q35-4.1 and pc-i440fx-4.1
machines
hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from
virtio-pci
include/hw/core/boards.h | 3 ---
include/hw/i386/pc.h | 3 ---
include/hw/virtio/virtio-pci.h | 4 ----
hw/core/machine.c | 5 -----
hw/i386/pc.c | 3 ---
hw/i386/pc_piix.c | 9 ---------
hw/i386/pc_q35.c | 9 ---------
hw/virtio/virtio-pci.c | 13 +++----------
8 files changed, 3 insertions(+), 46 deletions(-)
--
2.56.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] hw/i386: Remove the code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines
2026-11-27 14:40 [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Thomas Huth
@ 2026-11-27 14:40 ` Thomas Huth
2026-11-30 15:54 ` Philippe Mathieu-Daudé
2026-11-27 14:40 ` [PATCH 2/2] hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from virtio-pci Thomas Huth
2026-11-30 17:07 ` [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Philippe Mathieu-Daudé
2 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2026-11-27 14:40 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
Cc: Michael S. Tsirkin, Richard Henderson, Zhao Liu,
Philippe Mathieu-Daudé
These machines have been disabled already since they are older
than 6 years. Let's clean up the related code now.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/hw/i386/pc.h | 3 ---
hw/i386/pc.c | 3 ---
hw/i386/pc_piix.c | 9 ---------
hw/i386/pc_q35.c | 9 ---------
4 files changed, 24 deletions(-)
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 844ae835784..4aa5b02fe35 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -277,9 +277,6 @@ extern const size_t pc_compat_5_0_len;
extern GlobalProperty pc_compat_4_2[];
extern const size_t pc_compat_4_2_len;
-extern GlobalProperty pc_compat_4_1[];
-extern const size_t pc_compat_4_1_len;
-
#define DEFINE_PC_MACHINE_EXTENDED(suffix, namestr, initfn, optsfn, issecure) \
static void pc_machine_##suffix##_class_init(ObjectClass *oc, \
const void *data) \
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 4737eb471c1..d14a8210641 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -182,9 +182,6 @@ GlobalProperty pc_compat_4_2[] = {
};
const size_t pc_compat_4_2_len = G_N_ELEMENTS(pc_compat_4_2);
-GlobalProperty pc_compat_4_1[] = {};
-const size_t pc_compat_4_1_len = G_N_ELEMENTS(pc_compat_4_1);
-
/*
* @PC_FW_DATA:
* Size of the chunk of memory at the top of RAM for the BIOS ACPI tables
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 446590e4e55..6d04d1c75be 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -622,15 +622,6 @@ static void pc_i440fx_machine_4_2_options(MachineClass *m)
DEFINE_I440FX_MACHINE(4, 2);
-static void pc_i440fx_machine_4_1_options(MachineClass *m)
-{
- pc_i440fx_machine_4_2_options(m);
- compat_props_add(m->compat_props, hw_compat_4_1, hw_compat_4_1_len);
- compat_props_add(m->compat_props, pc_compat_4_1, pc_compat_4_1_len);
-}
-
-DEFINE_I440FX_MACHINE(4, 1);
-
#ifdef CONFIG_XEN
static void xenfv_machine_4_2_options(MachineClass *m)
{
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index c3ce9c56492..e6a6c711f47 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -598,12 +598,3 @@ static void pc_q35_machine_4_2_options(MachineClass *m)
}
DEFINE_Q35_MACHINE(4, 2);
-
-static void pc_q35_machine_4_1_options(MachineClass *m)
-{
- pc_q35_machine_4_2_options(m);
- compat_props_add(m->compat_props, hw_compat_4_1, hw_compat_4_1_len);
- compat_props_add(m->compat_props, pc_compat_4_1, pc_compat_4_1_len);
-}
-
-DEFINE_Q35_MACHINE(4, 1);
--
2.56.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from virtio-pci
2026-11-27 14:40 [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Thomas Huth
2026-11-27 14:40 ` [PATCH 1/2] hw/i386: Remove the " Thomas Huth
@ 2026-11-27 14:40 ` Thomas Huth
2026-11-30 15:53 ` Philippe Mathieu-Daudé
2026-11-30 17:07 ` [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Philippe Mathieu-Daudé
2 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2026-11-27 14:40 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
Cc: Michael S. Tsirkin, Richard Henderson, Zhao Liu,
Philippe Mathieu-Daudé
There is no machine left that is using hw_compat_4_1[], so the array
and the "virtio-pci"->"x-pcie-flr-init" setting can be removed now.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/hw/core/boards.h | 3 ---
include/hw/virtio/virtio-pci.h | 4 ----
hw/core/machine.c | 5 -----
hw/virtio/virtio-pci.c | 13 +++----------
4 files changed, 3 insertions(+), 22 deletions(-)
diff --git a/include/hw/core/boards.h b/include/hw/core/boards.h
index d0e4ad98201..a45495db81f 100644
--- a/include/hw/core/boards.h
+++ b/include/hw/core/boards.h
@@ -893,7 +893,4 @@ extern const size_t hw_compat_5_0_len;
extern GlobalProperty hw_compat_4_2[];
extern const size_t hw_compat_4_2_len;
-extern GlobalProperty hw_compat_4_1[];
-extern const size_t hw_compat_4_1_len;
-
#endif
diff --git a/include/hw/virtio/virtio-pci.h b/include/hw/virtio/virtio-pci.h
index f033237035a..b2738ceafac 100644
--- a/include/hw/virtio/virtio-pci.h
+++ b/include/hw/virtio/virtio-pci.h
@@ -35,7 +35,6 @@ enum {
VIRTIO_PCI_FLAG_MODERN_PIO_NOTIFY_BIT,
VIRTIO_PCI_FLAG_PAGE_PER_VQ_BIT,
VIRTIO_PCI_FLAG_ATS_BIT,
- VIRTIO_PCI_FLAG_INIT_FLR_BIT,
VIRTIO_PCI_FLAG_AER_BIT,
VIRTIO_PCI_FLAG_ATS_PAGE_ALIGNED_BIT,
VIRTIO_PCI_FLAG_PM_NO_SOFT_RESET_BIT,
@@ -64,9 +63,6 @@ enum {
#define VIRTIO_PCI_FLAG_PM_NO_SOFT_RESET \
(1 << VIRTIO_PCI_FLAG_PM_NO_SOFT_RESET_BIT)
-/* Init Function Level Reset capability */
-#define VIRTIO_PCI_FLAG_INIT_FLR (1 << VIRTIO_PCI_FLAG_INIT_FLR_BIT)
-
/* Advanced Error Reporting capability */
#define VIRTIO_PCI_FLAG_AER (1 << VIRTIO_PCI_FLAG_AER_BIT)
diff --git a/hw/core/machine.c b/hw/core/machine.c
index ed9bf8f5008..8342a3bb94c 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -235,11 +235,6 @@ GlobalProperty hw_compat_4_2[] = {
};
const size_t hw_compat_4_2_len = G_N_ELEMENTS(hw_compat_4_2);
-GlobalProperty hw_compat_4_1[] = {
- { "virtio-pci", "x-pcie-flr-init", "off" },
-};
-const size_t hw_compat_4_1_len = G_N_ELEMENTS(hw_compat_4_1);
-
MachineState *current_machine;
static char *machine_get_kernel(Object *obj, Error **errp)
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index fe2e545c302..9ff8b63d090 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -799,10 +799,7 @@ static void virtio_write_config(PCIDevice *pci_dev, uint32_t address,
struct virtio_pci_cfg_cap *cfg;
pci_default_write_config(pci_dev, address, val, len);
-
- if (proxy->flags & VIRTIO_PCI_FLAG_INIT_FLR) {
- pcie_cap_flr_write_config(pci_dev, address, val, len);
- }
+ pcie_cap_flr_write_config(pci_dev, address, val, len);
if (proxy->flags & VIRTIO_PCI_FLAG_ATS) {
pcie_ats_config_write(pci_dev, address, val, len);
@@ -2309,10 +2306,8 @@ static void virtio_pci_realize(PCIDevice *pci_dev, Error **errp)
proxy->last_pcie_cap_offset += PCI_EXT_CAP_ATS_SIZEOF;
}
- if (proxy->flags & VIRTIO_PCI_FLAG_INIT_FLR) {
- /* Set Function Level Reset capability bit */
- pcie_cap_flr_init(pci_dev);
- }
+ /* Set Function Level Reset capability bit */
+ pcie_cap_flr_init(pci_dev);
} else {
/*
* make future invocations of pci_is_express() return false
@@ -2418,8 +2413,6 @@ static const Property virtio_pci_properties[] = {
VIRTIO_PCI_FLAG_ATS_PAGE_ALIGNED_BIT, true),
DEFINE_PROP_BIT("x-pcie-pm-no-soft-reset", VirtIOPCIProxy, flags,
VIRTIO_PCI_FLAG_PM_NO_SOFT_RESET_BIT, false),
- DEFINE_PROP_BIT("x-pcie-flr-init", VirtIOPCIProxy, flags,
- VIRTIO_PCI_FLAG_INIT_FLR_BIT, true),
DEFINE_PROP_BIT("aer", VirtIOPCIProxy, flags,
VIRTIO_PCI_FLAG_AER_BIT, false),
};
--
2.56.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from virtio-pci
2026-11-27 14:40 ` [PATCH 2/2] hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from virtio-pci Thomas Huth
@ 2026-11-30 15:53 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-11-30 15:53 UTC (permalink / raw)
To: Thomas Huth, Paolo Bonzini, qemu-devel
Cc: Michael S. Tsirkin, Richard Henderson, Zhao Liu
On 27/11/26 15:40, Thomas Huth wrote:
> There is no machine left that is using hw_compat_4_1[], so the array
> and the "virtio-pci"->"x-pcie-flr-init" setting can be removed now.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> include/hw/core/boards.h | 3 ---
> include/hw/virtio/virtio-pci.h | 4 ----
> hw/core/machine.c | 5 -----
> hw/virtio/virtio-pci.c | 13 +++----------
> 4 files changed, 3 insertions(+), 22 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] hw/i386: Remove the code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines
2026-11-27 14:40 ` [PATCH 1/2] hw/i386: Remove the " Thomas Huth
@ 2026-11-30 15:54 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-11-30 15:54 UTC (permalink / raw)
To: Thomas Huth, Paolo Bonzini, qemu-devel
Cc: Michael S. Tsirkin, Richard Henderson, Zhao Liu
On 27/11/26 15:40, Thomas Huth wrote:
> These machines have been disabled already since they are older
> than 6 years. Let's clean up the related code now.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> include/hw/i386/pc.h | 3 ---
> hw/i386/pc.c | 3 ---
> hw/i386/pc_piix.c | 9 ---------
> hw/i386/pc_q35.c | 9 ---------
> 4 files changed, 24 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines
2026-11-27 14:40 [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Thomas Huth
2026-11-27 14:40 ` [PATCH 1/2] hw/i386: Remove the " Thomas Huth
2026-11-27 14:40 ` [PATCH 2/2] hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from virtio-pci Thomas Huth
@ 2026-11-30 17:07 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-11-30 17:07 UTC (permalink / raw)
To: Thomas Huth, Paolo Bonzini, qemu-devel
Cc: Michael S. Tsirkin, Richard Henderson, Zhao Liu
On 27/11/26 15:40, Thomas Huth wrote:
> The pc-q35-4.1 and pc-i440fx-4.1 have already been disabled automatically
> since they are older than 6 years. The related code is dead, we can remove
> it now.
>
> Thomas Huth (2):
> hw/i386: Remove the code of the obsolete pc-q35-4.1 and pc-i440fx-4.1
> machines
> hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from
> virtio-pci
Queued, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-30 17:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 14:40 [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Thomas Huth
2026-11-27 14:40 ` [PATCH 1/2] hw/i386: Remove the " Thomas Huth
2026-11-30 15:54 ` Philippe Mathieu-Daudé
2026-11-27 14:40 ` [PATCH 2/2] hw/virtio: Remove hw_compat_4_1[] array and "x-pcie-flr-init" from virtio-pci Thomas Huth
2026-11-30 15:53 ` Philippe Mathieu-Daudé
2026-11-30 17:07 ` [PATCH for-12.0 0/2] Remove code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines Philippe Mathieu-Daudé
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.