From: Laurent Vivier <lvivier@redhat.com>
To: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>,
qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Emanuele Giuseppe Esposito" <esposem@usi.ch>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] vhost-user-test: added proper TestServer *dest initialization in test_migrate()
Date: Wed, 27 Jun 2018 12:05:30 +0200 [thread overview]
Message-ID: <b0ca6234-8ebc-734d-fead-80fb41f76f46@redhat.com> (raw)
In-Reply-To: <1530022733-29581-1-git-send-email-esposem@usi.ch>
On 26/06/2018 16:18, Emanuele Giuseppe Esposito wrote:
> server->bus in _test_server_free() could be NULL, since TestServer *dest in test_migrate() was not properly initialized like TestServer *s.
> Added init_virtio_dev(dest) and uninit_virtio_dev(dest), so the fields are properly set and when test_server_free(dest); is called, they can be correctly freed.
>
> The reason for that is init_virtio_dev() calls qpci_init_pc(), that creates a QPCIBusPC * (returned as QPCIBus *), while test_server_free() calls qpci_free_pc(),
> that frees the QPCIBus *. Not calling init_virtio_dev() would leave the QPCIBus * of TestServer unset.
>
> Problem came out once I modified pci-pc.c and pci-pc.h, modifying QPCIBusPC by adding another field before QPCIBus bus. Re-running the tests showed vhost-user-test failing.
>
> Signed-off-by: Emanuele Giuseppe Esposito <esposem@usi.ch>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
I'm wondering if we have to have the same email address in both "From:"
and "Signed-off-by"?
Thanks,
Laurent
next prev parent reply other threads:[~2018-06-27 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-26 14:18 [Qemu-devel] [PATCH] vhost-user-test: added proper TestServer *dest initialization in test_migrate() Emanuele Giuseppe Esposito
2018-06-27 10:05 ` Laurent Vivier [this message]
2018-07-15 15:41 ` Paolo Bonzini
2018-06-28 3:57 ` Philippe Mathieu-Daudé
2018-07-15 15:40 ` Paolo Bonzini
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=b0ca6234-8ebc-734d-fead-80fb41f76f46@redhat.com \
--to=lvivier@redhat.com \
--cc=e.emanuelegiuseppe@gmail.com \
--cc=esposem@usi.ch \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).