Skip to content

Commit da77adb

Browse files
dagrhkraxel
authored andcommitted
audio: Never send migration section
The audio migration vmstate is empty, and always has been; we can't just remove it though because an old qemu might send it us. Changes with -audiodev now mean it's sometimes created when it didn't used to be, and can confuse migration to old qemu. Change it so that vmstate_audio is never sent; if it's received it should still be accepted, and old qemu's shouldn't be too upset if it's missing. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Tested-by: Daniel P. Berrangé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 7bce330 commit da77adb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

audio/audio.c

+10
Original file line numberDiff line numberDiff line change
@@ -1622,10 +1622,20 @@ void audio_cleanup(void)
16221622
}
16231623
}
16241624

1625+
static bool vmstate_audio_needed(void *opaque)
1626+
{
1627+
/*
1628+
* Never needed, this vmstate only exists in case
1629+
* an old qemu sends it to us.
1630+
*/
1631+
return false;
1632+
}
1633+
16251634
static const VMStateDescription vmstate_audio = {
16261635
.name = "audio",
16271636
.version_id = 1,
16281637
.minimum_version_id = 1,
1638+
.needed = vmstate_audio_needed,
16291639
.fields = (VMStateField[]) {
16301640
VMSTATE_END_OF_LIST()
16311641
}

0 commit comments

Comments
 (0)