mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw/virtio: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-61-richard.henderson@linaro.org>
This commit is contained in:
parent
65bd53e8d5
commit
ca02a17054
11 changed files with 44 additions and 44 deletions
|
@ -817,7 +817,7 @@ static const VMStateDescription vmstate_virtio_balloon_free_page_hint = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = virtio_balloon_free_page_support,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(free_page_hint_cmd_id, VirtIOBalloon),
|
||||
VMSTATE_UINT32(free_page_hint_status, VirtIOBalloon),
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -829,7 +829,7 @@ static const VMStateDescription vmstate_virtio_balloon_page_poison = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = virtio_balloon_page_poison_support,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(poison_val, VirtIOBalloon),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
|
@ -840,12 +840,12 @@ static const VMStateDescription vmstate_virtio_balloon_device = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.post_load = virtio_balloon_post_load_device,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(num_pages, VirtIOBalloon),
|
||||
VMSTATE_UINT32(actual, VirtIOBalloon),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription * []) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_virtio_balloon_free_page_hint,
|
||||
&vmstate_virtio_balloon_page_poison,
|
||||
NULL
|
||||
|
@ -996,7 +996,7 @@ static const VMStateDescription vmstate_virtio_balloon = {
|
|||
.name = "virtio-balloon",
|
||||
.minimum_version_id = 1,
|
||||
.version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_VIRTIO_DEVICE,
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue