X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm.c;h=dbb1b8d0620579510ad36a0e67f682ab7775512d;hp=b0e973f0c8de0c0323da1f7fd23c6464c20ac381;hb=3e937e5468169b8183a22a90f6d07ff370abde0c;hpb=fc4b7290edb57a3528a26f95c4478fe07d45a581 diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index b0e973f..dbb1b8d 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -750,6 +750,8 @@ int v3_move_vm_mem(struct v3_vm_info * vm, void *gpa, int target_cpu) { } // Note, assumes virtual contiguity in the host OS... + // A null deref here can only happen if the host does not provide the + // physical_to_virtual functions or if they do not work memcpy(V3_VAddr((void*)new_hpa), V3_VAddr((void*)(reg->host_addr)), num_pages*PAGE_SIZE); old_hpa = (void*)(reg->host_addr);