Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/io/vlapic.h
Show All 26 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _VLAPIC_H_ | #ifndef _VLAPIC_H_ | ||||
#define _VLAPIC_H_ | #define _VLAPIC_H_ | ||||
struct vm; | struct vm; | ||||
struct vm_snapshot_meta; | |||||
enum x2apic_state; | enum x2apic_state; | ||||
int vlapic_write(struct vlapic *vlapic, int mmio_access, uint64_t offset, | int vlapic_write(struct vlapic *vlapic, int mmio_access, uint64_t offset, | ||||
uint64_t data, bool *retu); | uint64_t data, bool *retu); | ||||
int vlapic_read(struct vlapic *vlapic, int mmio_access, uint64_t offset, | int vlapic_read(struct vlapic *vlapic, int mmio_access, uint64_t offset, | ||||
uint64_t *data, bool *retu); | uint64_t *data, bool *retu); | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
void vlapic_dfr_write_handler(struct vlapic *vlapic); | void vlapic_dfr_write_handler(struct vlapic *vlapic); | ||||
void vlapic_svr_write_handler(struct vlapic *vlapic); | void vlapic_svr_write_handler(struct vlapic *vlapic); | ||||
void vlapic_esr_write_handler(struct vlapic *vlapic); | void vlapic_esr_write_handler(struct vlapic *vlapic); | ||||
int vlapic_icrlo_write_handler(struct vlapic *vlapic, bool *retu); | int vlapic_icrlo_write_handler(struct vlapic *vlapic, bool *retu); | ||||
void vlapic_icrtmr_write_handler(struct vlapic *vlapic); | void vlapic_icrtmr_write_handler(struct vlapic *vlapic); | ||||
void vlapic_dcr_write_handler(struct vlapic *vlapic); | void vlapic_dcr_write_handler(struct vlapic *vlapic); | ||||
void vlapic_lvt_write_handler(struct vlapic *vlapic, uint32_t offset); | void vlapic_lvt_write_handler(struct vlapic *vlapic, uint32_t offset); | ||||
void vlapic_self_ipi_handler(struct vlapic *vlapic, uint64_t val); | void vlapic_self_ipi_handler(struct vlapic *vlapic, uint64_t val); | ||||
#ifdef BHYVE_SNAPSHOT | |||||
int vlapic_snapshot(struct vm *vm, struct vm_snapshot_meta *meta); | |||||
#endif | |||||
#endif /* _VLAPIC_H_ */ | #endif /* _VLAPIC_H_ */ |