Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/amd/svm.h
Show All 26 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _SVM_H_ | #ifndef _SVM_H_ | ||||
#define _SVM_H_ | #define _SVM_H_ | ||||
struct pcpu; | struct pcpu; | ||||
struct svm_softc; | |||||
/* | /* | ||||
* Guest register state that is saved outside the VMCB. | * Guest register state that is saved outside the VMCB. | ||||
*/ | */ | ||||
struct svm_regctx { | struct svm_regctx { | ||||
register_t sctx_rbp; | register_t sctx_rbp; | ||||
register_t sctx_rbx; | register_t sctx_rbx; | ||||
register_t sctx_rcx; | register_t sctx_rcx; | ||||
Show All 18 Lines | struct svm_regctx { | ||||
register_t host_dr2; | register_t host_dr2; | ||||
register_t host_dr3; | register_t host_dr3; | ||||
register_t host_dr6; | register_t host_dr6; | ||||
register_t host_dr7; | register_t host_dr7; | ||||
uint64_t host_debugctl; | uint64_t host_debugctl; | ||||
}; | }; | ||||
void svm_launch(uint64_t pa, struct svm_regctx *gctx, struct pcpu *pcpu); | void svm_launch(uint64_t pa, struct svm_regctx *gctx, struct pcpu *pcpu); | ||||
#ifdef BHYVE_SNAPSHOT | |||||
int svm_set_tsc_offset(struct svm_softc *sc, int vcpu, uint64_t offset); | |||||
#endif | |||||
#endif /* _SVM_H_ */ | #endif /* _SVM_H_ */ |