Lines Matching refs:memsegs
154 memset(vm->memsegs, 0, sizeof(vm->memsegs)); in vm_openf()
323 *lowmem_size = ctx->memsegs[VM_MEMSEG_LOW].size; in vm_get_guestmem_from_ctx()
324 *highmem_size = ctx->memsegs[VM_MEMSEG_HIGH].size; in vm_get_guestmem_from_ctx()
480 ctx->memsegs[VM_MEMSEG_LOW].size = VM_LOWMEM_LIMIT; in vm_setup_memory()
481 ctx->memsegs[VM_MEMSEG_HIGH].size = memsize - VM_LOWMEM_LIMIT; in vm_setup_memory()
482 objsize = VM_HIGHMEM_BASE + ctx->memsegs[VM_MEMSEG_HIGH].size; in vm_setup_memory()
484 ctx->memsegs[VM_MEMSEG_LOW].size = memsize; in vm_setup_memory()
485 ctx->memsegs[VM_MEMSEG_HIGH].size = 0; in vm_setup_memory()
503 if (ctx->memsegs[VM_MEMSEG_HIGH].size > 0) { in vm_setup_memory()
505 len = ctx->memsegs[VM_MEMSEG_HIGH].size; in vm_setup_memory()
511 if (ctx->memsegs[VM_MEMSEG_LOW].size > 0) { in vm_setup_memory()
513 len = ctx->memsegs[VM_MEMSEG_LOW].size; in vm_setup_memory()
536 lowsize = ctx->memsegs[VM_MEMSEG_LOW].size; in vm_map_gpa()
542 highsize = ctx->memsegs[VM_MEMSEG_HIGH].size; in vm_map_gpa()
560 lowsize = ctx->memsegs[VM_MEMSEG_LOW].size; in vm_rev_map_gpa()
565 highsize = ctx->memsegs[VM_MEMSEG_HIGH].size; in vm_rev_map_gpa()
585 return (ctx->memsegs[VM_MEMSEG_LOW].size); in vm_get_lowmem_size()
599 return (ctx->memsegs[VM_MEMSEG_HIGH].size); in vm_get_highmem_size()