All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
Cc: zhangxh@cn.fujitsu.com, kumagai-atsushi@mxc.nes.nec.co.jp,
	d.hatayama@jp.fujitsu.com, anderson@redhat.com,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/9 v3] Move includes and struct definition to dump.h
Date: Wed, 22 May 2013 16:12:49 +0200	[thread overview]
Message-ID: <519CD261.9060200@suse.de> (raw)
In-Reply-To: <1368761104-20105-4-git-send-email-qiaonuohan@cn.fujitsu.com>

Am 17.05.2013 05:24, schrieb Qiao Nuohan:
> Move includes and definition of struct DumpState into include/sysemu/dump.h.
> 
> Signed-off-by: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
> Reviewed-by: Zhang Xiaohe <zhangxh@cn.fujitsu.com>
> ---
>  dump.c                |   29 -----------------------------
>  include/sysemu/dump.h |   30 ++++++++++++++++++++++++++++++
>  2 files changed, 30 insertions(+), 29 deletions(-)
[...]
> diff --git a/include/sysemu/dump.h b/include/sysemu/dump.h
> index b8c770f..b41469a 100644
> --- a/include/sysemu/dump.h
> +++ b/include/sysemu/dump.h
> @@ -14,12 +14,42 @@
>  #ifndef DUMP_H
>  #define DUMP_H
>  
> +#include "elf.h"
> +#include "cpu.h"
> +#include "exec/cpu-all.h"
> +#include "exec/hwaddr.h"
> +#include "monitor/monitor.h"
> +#include "sysemu/kvm.h"
> +#include "sysemu/sysemu.h"
> +#include "sysemu/memory_mapping.h"
> +#include "qapi/error.h"
> +#include "qmp-commands.h"

Thanks for avoiding qemu-common.h here.

I just posted the rest of my stub refactoring patches:
http://lists.nongnu.org/archive/html/qemu-devel/2013-05/msg02934.html

I fear that this patch is conflicting. Are really all of those headers
actually needed for the struct you're moving? In particular I'm worried
about cpu.h as well as cpu-all.h and kvm.h with indirect dependencies on
cpu.h.

In my case cpu-common.h worked as alternative to cpu-all.h to get
ram_addr_t and hwaddr types.

It would be nice if you could try rebasing your series on
git://github.com/afaerber/qemu-cpu.git qom-cpu branch plus the above
four patches to see if we can get this done in a way that avoids target
dependencies.

Thanks,
Andreas

> +
>  typedef struct ArchDumpInfo {
>      int d_machine;  /* Architecture */
>      int d_endian;   /* ELFDATA2LSB or ELFDATA2MSB */
>      int d_class;    /* ELFCLASS32 or ELFCLASS64 */
>  } ArchDumpInfo;
>  
> +typedef struct DumpState {
> +    ArchDumpInfo dump_info;
> +    MemoryMappingList list;
> +    uint16_t phdr_num;
> +    uint32_t sh_info;
> +    bool have_section;
> +    bool resume;
> +    size_t note_size;
> +    hwaddr memory_offset;
> +    int fd;
> +
> +    RAMBlock *block;
> +    ram_addr_t start;
> +    bool has_filter;
> +    int64_t begin;
> +    int64_t length;
> +    Error **errp;
> +} DumpState;
> +
>  int cpu_get_dump_info(ArchDumpInfo *info);
>  ssize_t cpu_get_note_size(int class, int machine, int nr_cpus);
>  

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2013-05-22 14:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17  3:24 [Qemu-devel] [PATCH 0/9 v3] Make monitor command 'dump-guest-memory' dump in kdump-compressed format Qiao Nuohan
2013-05-17  3:24 ` [Qemu-devel] [PATCH 1/9 v3] Add API to manipulate dump_bitmap Qiao Nuohan
2013-05-17  3:24 ` [Qemu-devel] [PATCH 2/9 v3] Add API to manipulate cache_data Qiao Nuohan
2013-05-17  3:24 ` [Qemu-devel] [PATCH 3/9 v3] Move includes and struct definition to dump.h Qiao Nuohan
2013-05-22 14:12   ` Andreas Färber [this message]
2013-05-27  7:50     ` Qiao Nuohan
2013-05-17  3:24 ` [Qemu-devel] [PATCH 4/9 v3] Add API to create header of vmcore Qiao Nuohan
2013-05-17  3:25 ` [Qemu-devel] [PATCH 5/9 v3] Add API to create data of dump bitmap Qiao Nuohan
2013-05-17  3:25 ` [Qemu-devel] [PATCH 6/9 v3] Add API to create page Qiao Nuohan
2013-05-17  3:25 ` [Qemu-devel] [PATCH 7/9 v3] Add API to free memory used by creating header, bitmap and page Qiao Nuohan
2013-05-17  3:25 ` [Qemu-devel] [PATCH 8/9 v3] Add API to write header, bitmap and page into vmcore Qiao Nuohan
2013-05-17  3:25 ` [Qemu-devel] [PATCH 9/9 v3] Make monitor command 'dump-guest-memory' dump in kdump-compressed format Qiao Nuohan
2013-05-20  1:15 ` [Qemu-devel] [PATCH 0/9 " Qiao Nuohan
2013-05-22  6:37 ` Qiao Nuohan
2013-05-22 12:24   ` Luiz Capitulino
2013-05-22 14:44 ` Andreas Färber

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=519CD261.9060200@suse.de \
    --to=afaerber@suse.de \
    --cc=anderson@redhat.com \
    --cc=d.hatayama@jp.fujitsu.com \
    --cc=kumagai-atsushi@mxc.nes.nec.co.jp \
    --cc=qemu-devel@nongnu.org \
    --cc=qiaonuohan@cn.fujitsu.com \
    --cc=zhangxh@cn.fujitsu.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 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.