aboutsummaryrefslogtreecommitdiffstats
path: root/stubs/ram-block.c
diff options
context:
space:
mode:
Diffstat (limited to 'stubs/ram-block.c')
-rw-r--r--stubs/ram-block.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/stubs/ram-block.c b/stubs/ram-block.c
new file mode 100644
index 000000000..108197683
--- /dev/null
+++ b/stubs/ram-block.c
@@ -0,0 +1,37 @@
+#include "qemu/osdep.h"
+#include "exec/ramlist.h"
+#include "exec/cpu-common.h"
+#include "exec/memory.h"
+
+void *qemu_ram_get_host_addr(RAMBlock *rb)
+{
+ return 0;
+}
+
+ram_addr_t qemu_ram_get_offset(RAMBlock *rb)
+{
+ return 0;
+}
+
+ram_addr_t qemu_ram_get_used_length(RAMBlock *rb)
+{
+ return 0;
+}
+
+void ram_block_notifier_add(RAMBlockNotifier *n)
+{
+}
+
+void ram_block_notifier_remove(RAMBlockNotifier *n)
+{
+}
+
+int qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque)
+{
+ return 0;
+}
+
+int ram_block_discard_disable(bool state)
+{
+ return 0;
+}