qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Juan Quintela <quintela@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/3] New VMState table based load/save	infrastructure
Date: Wed, 19 Aug 2009 17:21:13 +0200	[thread overview]
Message-ID: <4A8C1869.1000200@redhat.com> (raw)
In-Reply-To: <cover.1250692287.git.quintela@redhat.com>

   Hi,

> - For structures, Kraxel suggested to use a VMSTATE_INCLUDE() instead of
>    having to declare a new VMStateInfo struct.  As I already have the new
>    struct code working, I sent it with the struct.  Thinking about how to
>    implement the VMSTATE_INCLUDE() and which one is easier to use.

Looked at your code and figured the two approaches are not that 
different.  I'd just put the pointer to the chained/included 
VMStateDescription directly into the VMStateField to avoid the (IMHO 
pointless) indirection via VMStateInfo.

Also:  It would probably useful to have two include modes here:  One for 
embedded structs, i.e. this:

struct dev_state {
   PCIDevice dev;
};

... and one for referenced structs, i.e. this:

struct dev2_state {
   PCIDevice *dev;
};

cheers,
   Gerd

  parent reply	other threads:[~2009-08-19 15:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 14:34 [Qemu-devel] [PATCH 0/3] New VMState table based load/save infrastructure Juan Quintela
2009-08-19 14:34 ` [Qemu-devel] [PATCH 1/3] New VMstate save/load infrastructure Juan Quintela
2009-08-19 14:34 ` [Qemu-devel] [PATCH 2/3] Port apic to new VMState design Juan Quintela
2009-08-19 14:34 ` [Qemu-devel] [PATCH 3/3] Port i8254 " Juan Quintela
2009-08-19 15:21 ` Gerd Hoffmann [this message]
2009-08-19 16:21   ` [Qemu-devel] Re: [PATCH 0/3] New VMState table based load/save infrastructure Juan Quintela

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=4A8C1869.1000200@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@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;
as well as URLs for NNTP newsgroup(s).