vmmapi.h (240922) | vmmapi.h (241179) |
---|---|
1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32struct vmctx; 33enum x2apic_state; 34 35int vm_create(const char *name); 36struct vmctx *vm_open(const char *name); 37void vm_destroy(struct vmctx *ctx); 38size_t vmm_get_mem_total(void); 39size_t vmm_get_mem_free(void); | 1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32struct vmctx; 33enum x2apic_state; 34 35int vm_create(const char *name); 36struct vmctx *vm_open(const char *name); 37void vm_destroy(struct vmctx *ctx); 38size_t vmm_get_mem_total(void); 39size_t vmm_get_mem_free(void); |
40int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, 41 vm_paddr_t *ret_hpa, size_t *ret_len); | 40int vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len); |
42/* 43 * Create a memory segment of 'len' bytes in the guest physical address space 44 * at offset 'gpa'. 45 * 46 * If 'mapaddr' is not NULL then this region is mmap'ed into the address 47 * space of the calling process. If there is an mmap error then *mapaddr 48 * will be set to MAP_FAILED. 49 */ --- 58 unchanged lines hidden --- | 41/* 42 * Create a memory segment of 'len' bytes in the guest physical address space 43 * at offset 'gpa'. 44 * 45 * If 'mapaddr' is not NULL then this region is mmap'ed into the address 46 * space of the calling process. If there is an mmap error then *mapaddr 47 * will be set to MAP_FAILED. 48 */ --- 58 unchanged lines hidden --- |