[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 66/71] migration: Constify VMState
|
From: |
Juan Quintela |
|
Subject: |
Re: [PATCH 66/71] migration: Constify VMState |
|
Date: |
Mon, 06 Nov 2023 12:18:48 +0100 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) |
Richard Henderson <richard.henderson@linaro.org> wrote:
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
> ---
> migration/global_state.c | 2 +-
> migration/savevm.c | 10 +++++-----
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/migration/global_state.c b/migration/global_state.c
> index 4e2a9d8ec0..8ee15dbb06 100644
> --- a/migration/global_state.c
> +++ b/migration/global_state.c
> @@ -131,7 +131,7 @@ static const VMStateDescription vmstate_globalstate = {
> .post_load = global_state_post_load,
> .pre_save = global_state_pre_save,
> .needed = global_state_needed,
> - .fields = (VMStateField[]) {
> + .fields = (const VMStateField[]) {
I would really like to have an initializer that is nicer than this.
The only thing that I have come up with is declaring it as its own variable,
but that that is ugly for other reasons.
Later, Juan.
- Re: [PATCH 48/71] hw/riscv: Constify VMState, (continued)
- [PATCH 52/71] hw/sd: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 57/71] hw/tpm: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 59/71] hw/vfio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 49/71] hw/rtc: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 60/71] hw/virtio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 64/71] backends: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 66/71] migration: Constify VMState, Richard Henderson, 2023/11/06
- Re: [PATCH 66/71] migration: Constify VMState,
Juan Quintela <=
- [PATCH 70/71] tests/unit/test-vmstate: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 40/71] hw/misc: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 41/71] hw/net: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 62/71] hw/misc/macio: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 44/71] hw/pci: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 61/71] hw/watchdog: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 68/71] replay: Constify VMState, Richard Henderson, 2023/11/06
- [PATCH 67/71] system: Constify VMState, Richard Henderson, 2023/11/06