Changeset View
Changeset View
Standalone View
Standalone View
lib/libvmmapi/vmmapi.h
Show All 31 Lines | |||||
#define _VMMAPI_H_ | #define _VMMAPI_H_ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/cpuset.h> | #include <sys/cpuset.h> | ||||
#include <machine/vmm_dev.h> | #include <machine/vmm_dev.h> | ||||
#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. | ||||
*/ | */ | ||||
#define VMMAPI_VERSION 0103 /* 2 digit major followed by 2 digit minor */ | #define VMMAPI_VERSION 0103 /* 2 digit major followed by 2 digit minor */ | ||||
struct iovec; | struct iovec; | ||||
struct vmctx; | struct vmctx; | ||||
▲ Show 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | 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); | ||||
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); | ||||
/* | /* | ||||
* Return a pointer to the statistics buffer. Note that this is not MT-safe. | * Return a pointer to the statistics buffer. Note that this is not MT-safe. | ||||
*/ | */ | ||||
uint64_t *vm_get_stats(struct vmctx *ctx, int vcpu, struct timeval *ret_tv, | uint64_t *vm_get_stats(struct vmctx *ctx, int vcpu, struct timeval *ret_tv, | ||||
int *ret_entries); | int *ret_entries); | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |