X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvm_guest_mem.c;h=0fc0e40bacc495d7e90c32facfd75187e0b25788;hb=858a36782662b04562c0d83db75e11cb55e8b91b;hp=eb342b45407976bd99d894c689b9b192aa79eafd;hpb=684409c4ad29c0f06167bebf2bb51e21374a6840;p=palacios.releases.git diff --git a/palacios/src/palacios/vm_guest_mem.c b/palacios/src/palacios/vm_guest_mem.c index eb342b4..0fc0e40 100644 --- a/palacios/src/palacios/vm_guest_mem.c +++ b/palacios/src/palacios/vm_guest_mem.c @@ -326,7 +326,8 @@ int read_guest_va_memory(struct guest_info * guest_info, addr_t guest_va, int co /* JRL FIXME: * This should be somewhere else.... */ - addr_t tmp_addr; + /* + addr_t tmp_addr; addr_t shadow_pde = CR3_TO_PDE32(guest_info->shdw_pg_state.shadow_cr3); @@ -346,15 +347,16 @@ int read_guest_va_memory(struct guest_info * guest_info, addr_t guest_va, int co return bytes_read; } } +*/ /* JRL: END GRUESOME HACK */ - /* - if (guest_va_to_host_va(guest_info, cursor, &host_addr) != 0) { + + if (guest_va_to_host_va(guest_info, cursor, &host_addr) != 0) { PrintDebug("Invalid GVA(%x)->HVA lookup\n", cursor); return bytes_read; - } - */ + } + memcpy(dest + bytes_read, (void*)host_addr, bytes_to_copy);