Add API to create memory mapping list
PATCH v10 1/11 Add API to create memory mapping list
The memory mapping list stores virtual address and physical address mapping. The virtual address and physical address are contiguous in the mapping. The folloing patch will use this information to create PT_LOAD in the vmcore.
Signed-off-by Wen Congyang <[email protected]>
--- Makefile.target | 1 + memory_mapping.c | 166 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ memory_mapping.h | 47 +++++++++++++++ 3 files changed, 214 insertions(+), 0 deletions(-) create mode 100644 memory_mapping.c create mode 100644 memory_mapping.h
Makefile.target +1 -0
@@ -217,6 +217,7 @@ obj-$(CONFIG_KVM) += kvm.o kvm-all.o obj-$(CONFIG_NO_KVM) += kvm-stub.o obj-$(CONFIG_VGA) += vga.o obj-y += memory.o savevm.o +obj-y += memory_mapping.o LIBS+=-lz obj-i386-$(CONFIG_KVM) += hyperv.o
memory_mapping.c new file +166 -0
166 lines not on this page · raw message
memory_mapping.h new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
1.7.1