1 #ifndef __VM_GUEST_MEM_H
2 #define __VM_GUEST_MEM_H
4 #include <geekos/vm_guest.h>
5 #include <geekos/vmm_mem.h>
8 int guest_va_to_guest_pa(guest_info_t * guest_info, addr_t guest_va, addr_t * guest_pa);
9 int guest_pa_to_guest_va(guest_info_t * guest_info, addr_t guest_pa, addr_t * guest_va);
10 int guest_va_to_host_va(guest_info_t * guest_info, addr_t guest_va, addr_t * host_va);
11 int guest_pa_to_host_pa(guest_info_t * guest_info, addr_t guest_pa, addr_t * host_pa);
12 int guest_pa_to_host_va(guest_info_t * guest_info, addr_t guest_pa, addr_t * host_va);
14 int host_va_to_guest_pa(guest_info_t * guest_info, addr_t host_va, addr_t * guest_pa);
15 int host_pa_to_guest_va(guest_info_t * guest_info, addr_t host_pa, addr_t * guest_va);
17 int host_va_to_host_pa(addr_t host_va, addr_t * host_pa);
18 int host_pa_to_host_va(addr_t host_pa, addr_t * host_va);
22 int read_guest_va_memory(guest_info_t * guest_info, addr_t guest_va, int count, char * dest);
23 int read_guest_pa_memory(guest_info_t * guest_info, addr_t guest_pa, int count, char * dest);