[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH qom-cpu v3 2/6] stubs: Add a vmstate_dummy struct fo
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH qom-cpu v3 2/6] stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY |
Date: |
Mon, 25 Feb 2013 19:22:46 +0100 |
Reviewed-by: Juan Quintela <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
include/migration/vmstate.h | 4 ++++
stubs/vmstate.c | 2 ++
2 Dateien geändert, 6 Zeilen hinzugefügt(+)
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 6d50f6e..214a8e9 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -119,6 +119,10 @@ struct VMStateDescription {
const VMStateSubsection *subsections;
};
+#ifdef CONFIG_USER_ONLY
+extern const VMStateDescription vmstate_dummy;
+#endif
+
extern const VMStateInfo vmstate_info_bool;
extern const VMStateInfo vmstate_info_int8;
diff --git a/stubs/vmstate.c b/stubs/vmstate.c
index 3682af5..778bc3f 100644
--- a/stubs/vmstate.c
+++ b/stubs/vmstate.c
@@ -1,6 +1,8 @@
#include "qemu-common.h"
#include "migration/vmstate.h"
+const VMStateDescription vmstate_dummy = {};
+
int vmstate_register_with_alias_id(DeviceState *dev,
int instance_id,
const VMStateDescription *vmsd,
--
1.7.10.4
- [Qemu-devel] [PATCH qom-cpu v3 0/6] QOM CPUState VMStateDescriptions, Andreas Färber, 2013/02/25
- [Qemu-devel] [PATCH qom-cpu v3 3/6] cpu: Register VMStateDescription through CPUState, Andreas Färber, 2013/02/25
- [Qemu-devel] [PATCH qom-cpu v3 6/6] target-lm32: Update VMStateDescription to LM32CPU, Andreas Färber, 2013/02/25
- [Qemu-devel] [PATCH qom-cpu v3 5/6] target-i386: Update VMStateDescription to X86CPU, Andreas Färber, 2013/02/25
- [Qemu-devel] [PATCH qom-cpu v3 2/6] stubs: Add a vmstate_dummy struct for CONFIG_USER_ONLY,
Andreas Färber <=
- [Qemu-devel] [PATCH qom-cpu v3 4/6] cpu: Introduce cpu_class_set_vmsd(), Andreas Färber, 2013/02/25
- [Qemu-devel] [PATCH qom-cpu v3 1/6] vmstate: Make vmstate_register() static inline, Andreas Färber, 2013/02/25