All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alessandro Di Federico <ale+qemu@clearmind.me>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC PATCH 2/3] *-user targets object files decoupling
Date: Wed, 25 Jan 2017 08:38:28 +0100	[thread overview]
Message-ID: <E1cWIBi-0000iH-R3@clearmind.me> (raw)
In-Reply-To: <CAJ+F1C+B1Ncoh57a1cHUKfum1DVNs3-WbzgbaRSEmqiuxnYJ7w@mail.gmail.com>

On Tue, 24 Jan 2017 10:09:25 +0000
Marc-André Lureau <marcandre.lureau@gmail.com> wrote:

>
> diff --git a/exec.c b/exec.c
> index 47835c1dc1..66f8187281 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -672,9 +672,11 @@ void cpu_exec_unrealizefn(CPUState *cpu)
>      if (cc->vmsd != NULL) {
>          vmstate_unregister(NULL, cc->vmsd, cpu);
>      }
> +#ifndef CONFIG_USER_ONLY
>      if (qdev_get_vmsd(DEVICE(cpu)) == NULL) {
>          vmstate_unregister(NULL, &vmstate_cpu_common, cpu);
>      }
> +#endif
> 
> 
> Shouldn't this #ifndef block also include the vmsd
> vmstate_unregister() above? That would be matching
> cpu_exec_realizefn() #ifndef.
> 

IIRC the idea here was to break a depency introduced by
"vmstate_cpu_common".
I'll include the previous if statement in the `ifndef`.

Let me know if I missed a comment on this patch.

--
Alessandro Di Federico
PhD student at Politecnico di Milano

  reply	other threads:[~2017-01-25  7:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21  8:45 [Qemu-devel] [RFC PATCH 0/3] Preparing the build system for libtcg Alessandro Di Federico
2017-01-21  8:45 ` [Qemu-devel] [RFC PATCH 1/3] Factor out {linux,bsd}-user/qemu.h Alessandro Di Federico
2017-01-24 10:10   ` [Qemu-devel] [RFC PATCH 1/3] Factor out {linux, bsd}-user/qemu.h Marc-André Lureau
2017-01-25  7:37     ` Alessandro Di Federico
2017-01-24 11:18   ` Peter Maydell
2017-01-25  7:38     ` Alessandro Di Federico
2017-02-07 17:25       ` Peter Maydell
2017-01-21  8:45 ` [Qemu-devel] [RFC PATCH 2/3] *-user targets object files decoupling Alessandro Di Federico
2017-01-24 10:09   ` Marc-André Lureau
2017-01-25  7:38     ` Alessandro Di Federico [this message]
2017-01-21  8:46 ` [Qemu-devel] [RFC PATCH 3/3] Introduce libtcg infrastructure Alessandro Di Federico
2017-01-24 10:08   ` Marc-André Lureau
2017-01-25  7:37     ` Alessandro Di Federico
2017-01-21  9:01 ` [Qemu-devel] [RFC PATCH 0/3] Preparing the build system for libtcg no-reply
2017-02-07 11:40 ` Peter Maydell

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=E1cWIBi-0000iH-R3@clearmind.me \
    --to=ale+qemu@clearmind.me \
    --cc=marcandre.lureau@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.