X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_direct_paging_64.h;h=baae5d54d223b792df8f25e42b85bdfeaf574009;hb=2e0992e07d6aebe06bab827f2534c074b9d7bb9e;hp=97324d4afeb8c1e43dd9c6be6901705b00f10cd5;hpb=8684ef59c3ede8fe0c33b2f04dbe30a287e7b353;p=palacios.git diff --git a/palacios/src/palacios/vmm_direct_paging_64.h b/palacios/src/palacios/vmm_direct_paging_64.h index 97324d4..baae5d5 100644 --- a/palacios/src/palacios/vmm_direct_paging_64.h +++ b/palacios/src/palacios/vmm_direct_paging_64.h @@ -54,8 +54,8 @@ static inline int handle_passthrough_pagefault_64(struct guest_info * core, addr * 1. the guest is configured to use large pages and * 2. the memory regions can be referenced by a large page */ - if ((core->use_large_pages == 1) ) { - page_size = v3_get_max_page_size(core, fault_addr, PAGE_SIZE_2MB); + if ((core->use_large_pages == 1) || (core->use_giant_pages == 1)) { + page_size = v3_get_max_page_size(core, fault_addr, LONG); } PrintDebug("Using page size of %dKB\n", page_size / 1024);