From: Avi Kivity <[email protected]> With this assumption, the apic code will be able to run either before or after the vm is set up.
Signed-off-by: Avi Kivity <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]> diff --git a/kvm/user/test/x86/vm.c b/kvm/user/test/x86/vm.c index 03c7354..ec9c145 100644 --- a/kvm/user/test/x86/vm.c +++ b/kvm/user/test/x86/vm.c @@ -189,6 +189,9 @@ static void setup_mmu(unsigned long len) unsigned long *cr3 = alloc_page(); unsigned long phys = 0; + if (len < (1ul << 32)) + len = 1ul << 32; /* map mmio 1:1 */ + memset(cr3, 0, PAGE_SIZE); while (phys + LARGE_PAGE_SIZE <= len) { install_large_page(cr3, phys, (void *)phys); -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
