Skip to contentSkip to conversation

cpu_register_physical_memory_offset()

Qemu-devel 依峰听海 1 participant 1 message Nov 17, 2010

lore
Share & tools
lore
#0 lore raw

i am confused about the function cpu_register_physical_memory_offset().
in this function, cpu register a segment of GPA to RAM or to a device. Now, i want to write two new function ,one is cpu_register_physical_memory_offset_to_RAM() and the other is cpu_register_physical_memory_offset_to_device(),in the first function, i divide the memory into pages,and creat a description for each page.Hower, i am confuse about the 2nd function.

maybe, we i should think about the subpage init and subpage register.

would you give me some advice?