Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.h
Show All 22 Lines | |||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <ucl.h> | |||||
#ifndef _FBSDRUN_H_ | #ifndef _FBSDRUN_H_ | ||||
#define _FBSDRUN_H_ | #define _FBSDRUN_H_ | ||||
#define VMEXIT_CONTINUE (0) | #define VMEXIT_CONTINUE (0) | ||||
#define VMEXIT_ABORT (-1) | #define VMEXIT_ABORT (-1) | ||||
struct vmctx; | struct vmctx; | ||||
extern int guest_ncpus; | extern int guest_ncpus; | ||||
extern char *guest_uuid_str; | extern char *guest_uuid_str; | ||||
extern char *vmname; | extern const char *vmname; | ||||
void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len); | void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len); | ||||
uintptr_t paddr_host2guest(struct vmctx *ctx, void *addr); | |||||
void fbsdrun_set_capabilities(struct vmctx *ctx, int cpu); | void fbsdrun_set_capabilities(struct vmctx *ctx, int cpu); | ||||
void fbsdrun_addcpu(struct vmctx *ctx, int fromcpu, int newcpu, uint64_t rip); | void fbsdrun_addcpu(struct vmctx *ctx, int fromcpu, int newcpu, uint64_t rip); | ||||
int fbsdrun_muxed(void); | int fbsdrun_muxed(void); | ||||
int fbsdrun_vmexit_on_hlt(void); | int fbsdrun_vmexit_on_hlt(void); | ||||
int fbsdrun_vmexit_on_pause(void); | int fbsdrun_vmexit_on_pause(void); | ||||
int fbsdrun_disable_x2apic(void); | int fbsdrun_disable_x2apic(void); | ||||
int fbsdrun_virtio_msix(void); | int fbsdrun_virtio_msix(void); | ||||
#endif | #endif |