backends: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-65-richard.henderson@linaro.org>
This commit is contained in:
parent
9673d7157c
commit
d349d5ab39
@ -393,7 +393,7 @@ static const VMStateDescription dbus_vmstate = {
|
|||||||
.version_id = 0,
|
.version_id = 0,
|
||||||
.pre_save = dbus_vmstate_pre_save,
|
.pre_save = dbus_vmstate_pre_save,
|
||||||
.post_load = dbus_vmstate_post_load,
|
.post_load = dbus_vmstate_post_load,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_UINT32(data_size, DBusVMState),
|
VMSTATE_UINT32(data_size, DBusVMState),
|
||||||
VMSTATE_VBUFFER_ALLOC_UINT32(data, DBusVMState, 0, 0, data_size),
|
VMSTATE_VBUFFER_ALLOC_UINT32(data, DBusVMState, 0, 0, data_size),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
|
@ -939,7 +939,7 @@ static const VMStateDescription vmstate_tpm_emulator = {
|
|||||||
.version_id = 0,
|
.version_id = 0,
|
||||||
.pre_save = tpm_emulator_pre_save,
|
.pre_save = tpm_emulator_pre_save,
|
||||||
.post_load = tpm_emulator_post_load,
|
.post_load = tpm_emulator_post_load,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_UINT32(state_blobs.permanent_flags, TPMEmulator),
|
VMSTATE_UINT32(state_blobs.permanent_flags, TPMEmulator),
|
||||||
VMSTATE_UINT32(state_blobs.permanent.size, TPMEmulator),
|
VMSTATE_UINT32(state_blobs.permanent.size, TPMEmulator),
|
||||||
VMSTATE_VBUFFER_ALLOC_UINT32(state_blobs.permanent.buffer,
|
VMSTATE_VBUFFER_ALLOC_UINT32(state_blobs.permanent.buffer,
|
||||||
|
Loading…
Reference in New Issue
Block a user