qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

exec: Create include for target_page_size()

That is the only function that we need from exec.c, and having to
include the whole sysemu.h for this.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

---

/me leans to be less sloppy with copyright notices
thanks Dave

+23 -1
+1
exec.c
··· 24 24 #include "qemu/cutils.h" 25 25 #include "cpu.h" 26 26 #include "exec/exec-all.h" 27 + #include "exec/target_page.h" 27 28 #include "tcg.h" 28 29 #include "hw/qdev-core.h" 29 30 #if !defined(CONFIG_USER_ONLY)
+19
include/exec/target_page.h
··· 1 + /* 2 + * Target page sizes and friends for non target files 3 + * 4 + * Copyright (c) 2017 Red Hat Inc 5 + * 6 + * Authors: 7 + * David Alan Gilbert <dgilbert@redhat.com> 8 + * Juan Quintela <quintela@redhat.com> 9 + * 10 + * This work is licensed under the terms of the GNU GPL, version 2 or later. 11 + * See the COPYING file in the top-level directory. 12 + */ 13 + 14 + #ifndef EXEC_TARGET_PAGE_H 15 + #define EXEC_TARGET_PAGE_H 16 + 17 + size_t qemu_target_page_size(void); 18 + 19 + #endif
-1
include/sysemu/sysemu.h
··· 67 67 void qemu_system_killed(int signal, pid_t pid); 68 68 void qemu_system_reset(bool report); 69 69 void qemu_system_guest_panicked(GuestPanicInformation *info); 70 - size_t qemu_target_page_size(void); 71 70 72 71 void qemu_add_exit_notifier(Notifier *notify); 73 72 void qemu_remove_exit_notifier(Notifier *notify);
+1
migration/migration.c
··· 37 37 #include "qom/cpu.h" 38 38 #include "exec/memory.h" 39 39 #include "exec/address-spaces.h" 40 + #include "exec/target_page.h" 40 41 #include "io/channel-buffer.h" 41 42 #include "io/channel-tls.h" 42 43 #include "migration/colo.h"
+1
migration/postcopy-ram.c
··· 19 19 #include "qemu/osdep.h" 20 20 21 21 #include "qemu-common.h" 22 + #include "exec/target_page.h" 22 23 #include "migration/migration.h" 23 24 #include "migration/qemu-file.h" 24 25 #include "postcopy-ram.h"
+1
migration/savevm.c
··· 43 43 #include "qemu/queue.h" 44 44 #include "sysemu/cpus.h" 45 45 #include "exec/memory.h" 46 + #include "exec/target_page.h" 46 47 #include "qmp-commands.h" 47 48 #include "trace.h" 48 49 #include "qemu/bitops.h"