From: "Alex Bennée" <alex.bennee@linaro.org>
To: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
virtio-fs@redhat.com
Subject: Re: [Virtio-fs] Regression save/restore of vsock: (was [PULL 07/55] hw/virtio: move vm_running check to virtio_device_started)
Date: Fri, 14 Oct 2022 09:37:00 +0100 [thread overview]
Message-ID: <87pmeuol2i.fsf@linaro.org> (raw)
In-Reply-To: <3a002a6a-9135-ad45-3fed-7dd270450d0b@linux.ibm.com>
Christian Borntraeger <borntraeger@linux.ibm.com> writes:
> Am 10.10.22 um 19:29 schrieb Michael S. Tsirkin:
>> From: Alex Bennée <alex.bennee@linaro.org>
>> All the boilerplate virtio code does the same thing (or should at
>> least) of checking to see if the VM is running before attempting to
>> start VirtIO. Push the logic up to the common function to avoid
>> getting a copy and paste wrong.
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> Message-Id: <20220802095010.3330793-11-alex.bennee@linaro.org>
>> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>
> This results in a regression for our s390x CI when doing save/restore of guests with vsock:
>
>
> #1 0x000003ff9a248580 raise (libc.so.6 + 0x48580)
> #2 0x000003ff9a22b5c0 abort (libc.so.6 + 0x2b5c0)
> #3 0x000003ff9a2409da __assert_fail_base (libc.so.6 + 0x409da)
> #4 0x000003ff9a240a4e __assert_fail (libc.so.6 + 0x40a4e)
> #5 0x000002aa2d69a066 vhost_vsock_common_pre_save (qemu-system-s390x + 0x39a066)
> #6 0x000002aa2d55570e vmstate_save_state_v (qemu-system-s390x + 0x25570e)
> #7 0x000002aa2d556218 vmstate_save_state (qemu-system-s390x + 0x256218)
> #8 0x000002aa2d570ba4
> qemu_savevm_state_complete_precopy_non_iterable (qemu-system-s390x +
> 0x270ba4)
> #9 0x000002aa2d5710b6 qemu_savevm_state_complete_precopy (qemu-system-s390x + 0x2710b6)
> #10 0x000002aa2d564d0e migration_completion (qemu-system-s390x + 0x264d0e)
> #11 0x000002aa2d8db25c qemu_thread_start (qemu-system-s390x + 0x5db25c)
> #12 0x000003ff9a296248 start_thread (libc.so.6 + 0x96248)
> #13 0x000003ff9a31183e thread_start (libc.so.6 + 0x11183e)
Which test does this break?
Looking at the change the only thing I can think of is there is a subtle
change in the order of checks because if the device is set as
use_started we return the result regardless of vm or config state:
if (vdev->use_started) {
return vdev->started;
}
Could some printfs confirm that?
--
Alex Bennée
next prev parent reply other threads:[~2022-10-14 8:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20221010172813.204597-1-mst@redhat.com>
2022-10-10 17:29 ` [Virtio-fs] [PULL 07/55] hw/virtio: move vm_running check to virtio_device_started Michael S. Tsirkin
2022-10-14 7:30 ` [Virtio-fs] Regression save/restore of vsock: (was [PULL 07/55] hw/virtio: move vm_running check to virtio_device_started) Christian Borntraeger
2022-10-14 8:31 ` Christian Borntraeger
2022-10-14 11:07 ` Alex Bennée
2022-10-14 11:58 ` Christian Borntraeger
2022-10-14 8:37 ` Alex Bennée [this message]
2022-10-14 8:44 ` Christian Borntraeger
2022-11-05 16:45 ` [Virtio-fs] [PULL 07/55] hw/virtio: move vm_running check to virtio_device_started Michael S. Tsirkin
2022-11-07 9:21 ` Alex Bennée
2022-10-10 17:29 ` [Virtio-fs] [PULL 08/55] hw/virtio: move vhd->started check into helper and add FIXME Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmeuol2i.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=borntraeger@linux.ibm.com \
--cc=dgilbert@redhat.com \
--cc=mathieu.poirier@linaro.org \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox