From: Jack Lange Date: Wed, 4 Feb 2009 04:44:37 +0000 (-0600) Subject: fixed 64 bit PDE access check X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=5cfe8e0eb0ec54c27ac4c1659cbe099d8f91496a;p=palacios.git fixed 64 bit PDE access check --- diff --git a/palacios/src/palacios/vmm_paging.c b/palacios/src/palacios/vmm_paging.c index 6ad8e10..5089c5c 100644 --- a/palacios/src/palacios/vmm_paging.c +++ b/palacios/src/palacios/vmm_paging.c @@ -663,7 +663,7 @@ pt_access_status_t inline v3_can_access_pdpe64(pdpe64_t * pdpe, addr_t addr, pf_ } pt_access_status_t inline v3_can_access_pde64(pde64_t * pde, addr_t addr, pf_error_t access_type) { - gen_pt_t * entry = (gen_pt_t *)&pde[PDE32_INDEX(addr)]; + gen_pt_t * entry = (gen_pt_t *)&pde[PDE64_INDEX(addr)]; return can_access_pt_entry(entry, access_type); }