Changeset View
Changeset View
Standalone View
Standalone View
lib/libvmmapi/vmmapi.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
* Identifiers for memory segments: | * Identifiers for memory segments: | ||||
* - vm_setup_memory() uses VM_SYSMEM for the system memory segment. | * - vm_setup_memory() uses VM_SYSMEM for the system memory segment. | ||||
* - the remaining identifiers can be used to create devmem segments. | * - the remaining identifiers can be used to create devmem segments. | ||||
*/ | */ | ||||
enum { | enum { | ||||
VM_SYSMEM, | VM_SYSMEM, | ||||
VM_BOOTROM, | VM_BOOTROM, | ||||
VM_FRAMEBUFFER, | VM_FRAMEBUFFER, | ||||
VM_PCIROM, | |||||
}; | }; | ||||
/* | /* | ||||
* Get the length and name of the memory segment identified by 'segid'. | * Get the length and name of the memory segment identified by 'segid'. | ||||
* Note that system memory segments are identified with a nul name. | * Note that system memory segments are identified with a nul name. | ||||
* | * | ||||
* Returns 0 on success and non-zero otherwise. | * Returns 0 on success and non-zero otherwise. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
int vm_set_capability(struct vmctx *ctx, int vcpu, enum vm_cap_type cap, | int vm_set_capability(struct vmctx *ctx, int vcpu, enum vm_cap_type cap, | ||||
int val); | int val); | ||||
int vm_assign_pptdev(struct vmctx *ctx, int bus, int slot, int func); | int vm_assign_pptdev(struct vmctx *ctx, int bus, int slot, int func); | ||||
int vm_unassign_pptdev(struct vmctx *ctx, int bus, int slot, int func); | int vm_unassign_pptdev(struct vmctx *ctx, int bus, int slot, int func); | ||||
int vm_map_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, | int vm_map_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, | ||||
vm_paddr_t gpa, size_t len, vm_paddr_t hpa); | vm_paddr_t gpa, size_t len, vm_paddr_t hpa); | ||||
int vm_unmap_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, | int vm_unmap_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, | ||||
vm_paddr_t gpa, size_t len); | vm_paddr_t gpa, size_t len); | ||||
int vm_get_memory_region_info(struct vmctx *const ctx, vm_paddr_t *const base, | |||||
vm_paddr_t *const size, const enum vm_memory_region_type type); | |||||
int vm_setup_pptdev_msi(struct vmctx *ctx, int vcpu, int bus, int slot, | int vm_setup_pptdev_msi(struct vmctx *ctx, int vcpu, int bus, int slot, | ||||
int func, uint64_t addr, uint64_t msg, int numvec); | int func, uint64_t addr, uint64_t msg, int numvec); | ||||
int vm_setup_pptdev_msix(struct vmctx *ctx, int vcpu, int bus, int slot, | int vm_setup_pptdev_msix(struct vmctx *ctx, int vcpu, int bus, int slot, | ||||
int func, int idx, uint64_t addr, uint64_t msg, | int func, int idx, uint64_t addr, uint64_t msg, | ||||
uint32_t vector_control); | uint32_t vector_control); | ||||
int vm_disable_pptdev_msix(struct vmctx *ctx, int bus, int slot, int func); | int vm_disable_pptdev_msix(struct vmctx *ctx, int bus, int slot, int func); | ||||
int vm_get_intinfo(struct vmctx *ctx, int vcpu, uint64_t *i1, uint64_t *i2); | int vm_get_intinfo(struct vmctx *ctx, int vcpu, uint64_t *i1, uint64_t *i2); | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |