作者:5150L_267 | 来源:互联网 | 2023-07-03 17:37
启动命令:
gdb –args /usr/bin/bin/qemu-system-x86_64 linux-0.2.img -m 512 -enable-kvm -smp 1,sockets=1,cores=1,threads=1 -realtime mlock=off -device ivshmem,shm=ivshmem,size=1 -device ivshmem,shm=ivshmem1,size=2
解析后的数据结构如下:
struct QemuOptsList {
const char *name;
const char *implied_opt_name;
bool merge_lists;
QTAILQ_HEAD(, QemuOpts) head;
QemuOptDesc desc[];
};
struct QemuOpts {
char *id;
QemuOptsList *list;
Location loc;
QTAILQ_HEAD(, QemuOpt) head;
QTAILQ_ENTRY(QemuOpts) next;
};
struct QemuOpt {
char *name;
char *str;
const QemuOptDesc *desc;
union {
bool boolean;
uint64_t uint;
} value;
QemuOpts *opts;
QTAILQ_ENTRY(QemuOpt) next;
};
主要api都在util/qemu-option.c 文件
参考: http://terenceli.github.io/%E6%8A%80%E6%9C%AF/2015/09/26/qemu-options
本文地址:https://blog.csdn.net/woai110120130/article/details/107169226