qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable
@ 2023-12-04  7:28 Volker Rümelin
  2023-12-04  7:52 ` Volker Rümelin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Volker Rümelin @ 2023-12-04  7:28 UTC (permalink / raw)
  To: Gerd Hoffmann, Manos Pitsidianakis, Michael S. Tsirkin
  Cc: Marc-André Lureau, Alex Bennée, qemu-devel

The virtio-sound device is currently not migratable. QEMU crashes
on the source machine at some point during the migration with a
segmentation fault.

Even with this bug fixed, the virtio-sound device doesn't migrate
the state of the audio streams. For example, running streams leave
the device on the destination machine in a broken condition.

Mark the device as unmigratable until these issues have been fixed.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
---
 hw/audio/virtio-snd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c
index 2fe966e311..b10fad1228 100644
--- a/hw/audio/virtio-snd.c
+++ b/hw/audio/virtio-snd.c
@@ -68,6 +68,7 @@ static const VMStateDescription vmstate_virtio_snd_device = {
 
 static const VMStateDescription vmstate_virtio_snd = {
     .name = TYPE_VIRTIO_SND,
+    .unmigratable = 1,
     .minimum_version_id = VIRTIO_SOUND_VM_VERSION,
     .version_id = VIRTIO_SOUND_VM_VERSION,
     .fields = (VMStateField[]) {
-- 
2.35.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable
  2023-12-04  7:28 [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable Volker Rümelin
@ 2023-12-04  7:52 ` Volker Rümelin
  2023-12-04  8:03 ` Marc-André Lureau
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Volker Rümelin @ 2023-12-04  7:52 UTC (permalink / raw)
  To: Gerd Hoffmann, Manos Pitsidianakis, Michael S. Tsirkin
  Cc: Marc-André Lureau, Alex Bennée, qemu-devel

Am 04.12.23 um 08:28 schrieb Volker Rümelin:

> The virtio-sound device is currently not migratable. QEMU crashes
> on the source machine at some point during the migration with a
> segmentation fault.
>
> Even with this bug fixed, the virtio-sound device doesn't migrate
> the state of the audio streams. For example, running streams leave
> the device on the destination machine in a broken condition.
>
> Mark the device as unmigratable until these issues have been fixed.
>
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
> ---
>  hw/audio/virtio-snd.c | 1 +
>  1 file changed, 1 insertion(+)

I already have a working patch series with 6 patches to fix these
issues. I wrote them in the last two days, which means they are not yet
in a reviewable state and the series is too big for 8.2. I think I need
another weekend or two before I send them to the qemu-devel mailing list.

With best regards,
Volker

> diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c
> index 2fe966e311..b10fad1228 100644
> --- a/hw/audio/virtio-snd.c
> +++ b/hw/audio/virtio-snd.c
> @@ -68,6 +68,7 @@ static const VMStateDescription vmstate_virtio_snd_device = {
>  
>  static const VMStateDescription vmstate_virtio_snd = {
>      .name = TYPE_VIRTIO_SND,
> +    .unmigratable = 1,
>      .minimum_version_id = VIRTIO_SOUND_VM_VERSION,
>      .version_id = VIRTIO_SOUND_VM_VERSION,
>      .fields = (VMStateField[]) {



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable
  2023-12-04  7:28 [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable Volker Rümelin
  2023-12-04  7:52 ` Volker Rümelin
@ 2023-12-04  8:03 ` Marc-André Lureau
  2023-12-04  8:07 ` Manos Pitsidianakis
  2023-12-04  8:20 ` Michael S. Tsirkin
  3 siblings, 0 replies; 5+ messages in thread
From: Marc-André Lureau @ 2023-12-04  8:03 UTC (permalink / raw)
  To: Volker Rümelin
  Cc: Gerd Hoffmann, Manos Pitsidianakis, Michael S. Tsirkin,
	Alex Bennée, qemu-devel

Hi

On Mon, Dec 4, 2023 at 11:30 AM Volker Rümelin <vr_qemu@t-online.de> wrote:
>
> The virtio-sound device is currently not migratable. QEMU crashes
> on the source machine at some point during the migration with a
> segmentation fault.
>
> Even with this bug fixed, the virtio-sound device doesn't migrate
> the state of the audio streams. For example, running streams leave
> the device on the destination machine in a broken condition.
>
> Mark the device as unmigratable until these issues have been fixed.
>
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

I'll queue this.

> ---
>  hw/audio/virtio-snd.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c
> index 2fe966e311..b10fad1228 100644
> --- a/hw/audio/virtio-snd.c
> +++ b/hw/audio/virtio-snd.c
> @@ -68,6 +68,7 @@ static const VMStateDescription vmstate_virtio_snd_device = {
>
>  static const VMStateDescription vmstate_virtio_snd = {
>      .name = TYPE_VIRTIO_SND,
> +    .unmigratable = 1,
>      .minimum_version_id = VIRTIO_SOUND_VM_VERSION,
>      .version_id = VIRTIO_SOUND_VM_VERSION,
>      .fields = (VMStateField[]) {
> --
> 2.35.3
>
>


-- 
Marc-André Lureau


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable
  2023-12-04  7:28 [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable Volker Rümelin
  2023-12-04  7:52 ` Volker Rümelin
  2023-12-04  8:03 ` Marc-André Lureau
@ 2023-12-04  8:07 ` Manos Pitsidianakis
  2023-12-04  8:20 ` Michael S. Tsirkin
  3 siblings, 0 replies; 5+ messages in thread
From: Manos Pitsidianakis @ 2023-12-04  8:07 UTC (permalink / raw)
  To: Volker Rümelin
  Cc: Gerd Hoffmann, Michael S. Tsirkin, Marc-André Lureau,
	Alex Bennée, qemu-devel

On Mon, 4 Dec 2023 at 09:29, Volker Rümelin <vr_qemu@t-online.de> wrote:
>
> The virtio-sound device is currently not migratable. QEMU crashes
> on the source machine at some point during the migration with a
> segmentation fault.
>
> Even with this bug fixed, the virtio-sound device doesn't migrate
> the state of the audio streams. For example, running streams leave
> the device on the destination machine in a broken condition.
>
> Mark the device as unmigratable until these issues have been fixed.
>
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
> ---
>  hw/audio/virtio-snd.c | 1 +
>  1 file changed, 1 insertion(+)

Hello Volker!

I don't have the slightest clue on how migration works, but if this is
enough to prevent those bugs from happening, it sounds good to me.

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable
  2023-12-04  7:28 [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable Volker Rümelin
                   ` (2 preceding siblings ...)
  2023-12-04  8:07 ` Manos Pitsidianakis
@ 2023-12-04  8:20 ` Michael S. Tsirkin
  3 siblings, 0 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2023-12-04  8:20 UTC (permalink / raw)
  To: Volker Rümelin
  Cc: Gerd Hoffmann, Manos Pitsidianakis, Marc-André Lureau,
	Alex Bennée, qemu-devel

On Mon, Dec 04, 2023 at 08:28:37AM +0100, Volker Rümelin wrote:
> The virtio-sound device is currently not migratable. QEMU crashes
> on the source machine at some point during the migration with a
> segmentation fault.
> 
> Even with this bug fixed, the virtio-sound device doesn't migrate
> the state of the audio streams. For example, running streams leave
> the device on the destination machine in a broken condition.
> 
> Mark the device as unmigratable until these issues have been fixed.
> 
> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>

Acked-by: Michael S. Tsirkin <mst@redhat.com>

> ---
>  hw/audio/virtio-snd.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/audio/virtio-snd.c b/hw/audio/virtio-snd.c
> index 2fe966e311..b10fad1228 100644
> --- a/hw/audio/virtio-snd.c
> +++ b/hw/audio/virtio-snd.c
> @@ -68,6 +68,7 @@ static const VMStateDescription vmstate_virtio_snd_device = {
>  
>  static const VMStateDescription vmstate_virtio_snd = {
>      .name = TYPE_VIRTIO_SND,
> +    .unmigratable = 1,
>      .minimum_version_id = VIRTIO_SOUND_VM_VERSION,
>      .version_id = VIRTIO_SOUND_VM_VERSION,
>      .fields = (VMStateField[]) {
> -- 
> 2.35.3



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-04  8:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04  7:28 [PATCH for 8.2] hw/audio/virtio-sound: mark the device as unmigratable Volker Rümelin
2023-12-04  7:52 ` Volker Rümelin
2023-12-04  8:03 ` Marc-André Lureau
2023-12-04  8:07 ` Manos Pitsidianakis
2023-12-04  8:20 ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).