[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 33/39] migration: Use vmstate_register_any() for eeprom93xx
From: |
Juan Quintela |
Subject: |
[PULL 33/39] migration: Use vmstate_register_any() for eeprom93xx |
Date: |
Tue, 24 Oct 2023 15:12:59 +0200 |
We can have more than one eeprom93xx.
For instance:
e100_nic_realize() -> eeprom93xx_new()
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020090731.28701-13-quintela@redhat.com>
---
hw/nvram/eeprom93xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/nvram/eeprom93xx.c b/hw/nvram/eeprom93xx.c
index 1081e2cc0d..57d63638d7 100644
--- a/hw/nvram/eeprom93xx.c
+++ b/hw/nvram/eeprom93xx.c
@@ -321,7 +321,7 @@ eeprom_t *eeprom93xx_new(DeviceState *dev, uint16_t nwords)
/* Output DO is tristate, read results in 1. */
eeprom->eedo = 1;
logout("eeprom = 0x%p, nwords = %u\n", eeprom, nwords);
- vmstate_register(VMSTATE_IF(dev), 0, &vmstate_eeprom, eeprom);
+ vmstate_register_any(VMSTATE_IF(dev), &vmstate_eeprom, eeprom);
return eeprom;
}
--
2.41.0
- [PULL 22/39] migration/ram: Fix compilation with -Wshadow=local, (continued)
- [PULL 22/39] migration/ram: Fix compilation with -Wshadow=local, Juan Quintela, 2023/10/24
- [PULL 25/39] migration: Create vmstate_register_any(), Juan Quintela, 2023/10/24
- [PULL 17/39] migration: Rename ram_compressed_pages() to compress_ram_pages(), Juan Quintela, 2023/10/24
- [PULL 24/39] migration: set file error on subsection loading, Juan Quintela, 2023/10/24
- [PULL 07/39] migration: Give one error if trying to set MULTIFD and XBZRLE, Juan Quintela, 2023/10/24
- [PULL 29/39] migration: Hack to maintain backwards compatibility for ppc, Juan Quintela, 2023/10/24
- [PULL 27/39] migration: Use vmstate_register_any() for isa-ide, Juan Quintela, 2023/10/24
- [PULL 31/39] migration: Improve example and documentation of vmstate_register(), Juan Quintela, 2023/10/24
- [PULL 35/39] qemu-iotests: Filter warnings about block migration being deprecated, Juan Quintela, 2023/10/24
- [PULL 28/39] migration: Use VMSTATE_INSTANCE_ID_ANY for slirp, Juan Quintela, 2023/10/24
- [PULL 33/39] migration: Use vmstate_register_any() for eeprom93xx,
Juan Quintela <=
- [PULL 30/39] migration: Check in savevm_state_handler_insert for dups, Juan Quintela, 2023/10/24
- [PULL 36/39] migration: migrate 'inc' command option is deprecated., Juan Quintela, 2023/10/24
- [PULL 26/39] migration: Use vmstate_register_any(), Juan Quintela, 2023/10/24
- [PULL 37/39] migration: migrate 'blk' command option is deprecated., Juan Quintela, 2023/10/24
- [PULL 38/39] migration: Deprecate block migration, Juan Quintela, 2023/10/24
- [PULL 34/39] migration: Use vmstate_register_any() for vmware_vga, Juan Quintela, 2023/10/24
- [PULL 39/39] migration: Deprecate old compression method, Juan Quintela, 2023/10/24
- [PULL 32/39] migration: Use vmstate_register_any() for audio, Juan Quintela, 2023/10/24
- Re: [PULL 00/39] Migration 20231024 patches, Stefan Hajnoczi, 2023/10/25