Changeset View
Changeset View
Standalone View
Standalone View
lib/libvmmapi/vmmapi.h
Context not available. | |||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <contrib/dev/acpica/include/acpi.h> | |||||
/* | /* | ||||
* API version for out-of-tree consumers like grub-bhyve for making compile | * API version for out-of-tree consumers like grub-bhyve for making compile | ||||
* time decisions. | * time decisions. | ||||
Context not available. | |||||
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 *ctx, vm_paddr_t *base, | |||||
vm_paddr_t *size, enum vm_memory_region_type type); | |||||
int vm_mmap_mmio(struct vmctx *const ctx, const vm_paddr_t gpa, | |||||
const vm_paddr_t len, const vm_paddr_t hpa); | |||||
int vm_munmap_mmio(struct vmctx *const ctx, const vm_paddr_t gpa, | |||||
const vm_paddr_t len); | |||||
int vm_mwire_gpa(struct vmctx *const ctx, const vm_paddr_t gpa, | |||||
const vm_paddr_t len); | |||||
int vm_munwire_gpa(struct vmctx *const ctx, const vm_paddr_t gpa, | |||||
const vm_paddr_t len); | |||||
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, | ||||
Context not available. | |||||
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); | ||||
int vm_set_intinfo(struct vmctx *ctx, int vcpu, uint64_t exit_intinfo); | int vm_set_intinfo(struct vmctx *ctx, int vcpu, uint64_t exit_intinfo); | ||||
/* | |||||
* Return current resources (CRS) used by an ACPI device. | |||||
*/ | |||||
int vm_acpi_device_get_crs(struct vmctx *const ctx, const char *const name, ACPI_BUFFER *const crs); | |||||
const cap_ioctl_t *vm_get_ioctls(size_t *len); | const cap_ioctl_t *vm_get_ioctls(size_t *len); | ||||
/* | /* | ||||
Context not available. |