[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 21/27] hw/audio/pcspk: Remove PCSpkState::migrate field
From: |
Igor Mammedov |
Subject: |
Re: [PATCH v4 21/27] hw/audio/pcspk: Remove PCSpkState::migrate field |
Date: |
Tue, 13 May 2025 11:02:27 +0200 |
On Thu, 8 May 2025 15:35:44 +0200
Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
> The PCSpkState::migrate boolean was only set in the
> pc_compat_2_7[] array, via the 'migrate=off' property.
> We removed all machines using that array, lets remove
> that property, simplifying vmstate_spk[].
same as 14/27, it should be safe to remove without deprecation
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
> ---
> hw/audio/pcspk.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/hw/audio/pcspk.c b/hw/audio/pcspk.c
> index a419161b5b1..0e83ba0bf73 100644
> --- a/hw/audio/pcspk.c
> +++ b/hw/audio/pcspk.c
> @@ -56,7 +56,6 @@ struct PCSpkState {
> unsigned int play_pos;
> uint8_t data_on;
> uint8_t dummy_refresh_clock;
> - bool migrate;
> };
>
> static const char *s_spk = "pcspk";
> @@ -196,18 +195,10 @@ static void pcspk_realizefn(DeviceState *dev, Error
> **errp)
> pcspk_state = s;
> }
>
> -static bool migrate_needed(void *opaque)
> -{
> - PCSpkState *s = opaque;
> -
> - return s->migrate;
> -}
> -
> static const VMStateDescription vmstate_spk = {
> .name = "pcspk",
> .version_id = 1,
> .minimum_version_id = 1,
> - .needed = migrate_needed,
> .fields = (const VMStateField[]) {
> VMSTATE_UINT8(data_on, PCSpkState),
> VMSTATE_UINT8(dummy_refresh_clock, PCSpkState),
> @@ -218,7 +209,6 @@ static const VMStateDescription vmstate_spk = {
> static const Property pcspk_properties[] = {
> DEFINE_AUDIO_PROPERTIES(PCSpkState, card),
> DEFINE_PROP_UINT32("iobase", PCSpkState, iobase, 0x61),
> - DEFINE_PROP_BOOL("migrate", PCSpkState, migrate, true),
> };
>
> static void pcspk_class_initfn(ObjectClass *klass, const void *data)
- [PATCH v4 18/27] hw/i386/pc: Remove pc_compat_2_7[] array, (continued)
- [PATCH v4 18/27] hw/i386/pc: Remove pc_compat_2_7[] array, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 19/27] target/i386/cpu: Remove CPUX86State::full_cpuid_auto_level field, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 20/27] target/i386/cpu: Remove CPUX86State::enable_l3_cache field, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 21/27] hw/audio/pcspk: Remove PCSpkState::migrate field, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 22/27] hw/core/machine: Remove hw_compat_2_7[] array, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 23/27] hw/i386/intel_iommu: Remove IntelIOMMUState::buggy_eim field, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 24/27] hw/intc/ioapic: Remove IOAPICCommonState::version field, Philippe Mathieu-Daudé, 2025/05/08
- [PATCH v4 25/27] hw/virtio/virtio-pci: Remove VirtIOPCIProxy::ignore_backend_features field, Philippe Mathieu-Daudé, 2025/05/08