2012-05-07 08:08:56 +04:00
|
|
|
/*
|
|
|
|
* QEMU dump
|
|
|
|
*
|
|
|
|
* Copyright Fujitsu, Corp. 2011, 2012
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Wen Congyang <wency@cn.fujitsu.com>
|
|
|
|
*
|
2012-06-10 23:34:04 +04:00
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
2012-05-07 08:08:56 +04:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DUMP_H
|
|
|
|
#define DUMP_H
|
|
|
|
|
|
|
|
typedef struct ArchDumpInfo {
|
|
|
|
int d_machine; /* Architecture */
|
|
|
|
int d_endian; /* ELFDATA2LSB or ELFDATA2MSB */
|
|
|
|
int d_class; /* ELFCLASS32 or ELFCLASS64 */
|
|
|
|
} ArchDumpInfo;
|
|
|
|
|
2013-08-06 14:37:11 +04:00
|
|
|
struct GuestPhysBlockList; /* memory_mapping.h */
|
|
|
|
int cpu_get_dump_info(ArchDumpInfo *info,
|
|
|
|
const struct GuestPhysBlockList *guest_phys_blocks);
|
2012-06-07 10:22:56 +04:00
|
|
|
ssize_t cpu_get_note_size(int class, int machine, int nr_cpus);
|
|
|
|
|
2012-05-07 08:08:56 +04:00
|
|
|
#endif
|