Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/amd/svm_msr.h
Show All 30 Lines | |||||
#ifndef _SVM_MSR_H_ | #ifndef _SVM_MSR_H_ | ||||
#define _SVM_MSR_H_ | #define _SVM_MSR_H_ | ||||
struct svm_softc; | struct svm_softc; | ||||
struct svm_vcpu; | struct svm_vcpu; | ||||
void svm_msr_init(void); | void svm_msr_init(void); | ||||
void svm_msr_guest_init(struct svm_softc *sc, struct svm_vcpu *vcpu); | void svm_msr_guest_init(struct svm_softc *sc, struct svm_vcpu *vcpu); | ||||
void svm_msr_guest_enter(struct svm_softc *sc, struct svm_vcpu *vcpu); | void svm_msr_guest_enter(struct svm_vcpu *vcpu); | ||||
void svm_msr_guest_exit(struct svm_softc *sc, struct svm_vcpu *vcpu); | void svm_msr_guest_exit(struct svm_vcpu *vcpu); | ||||
int svm_wrmsr(struct svm_softc *sc, struct svm_vcpu *vcpu, u_int num, | int svm_wrmsr(struct svm_vcpu *vcpu, u_int num, uint64_t val, bool *retu); | ||||
uint64_t val, bool *retu); | int svm_rdmsr(struct svm_vcpu *vcpu, u_int num, uint64_t *result, bool *retu); | ||||
int svm_rdmsr(struct svm_softc *sc, struct svm_vcpu *vcpu, u_int num, | |||||
uint64_t *result, bool *retu); | |||||
#endif /* _SVM_MSR_H_ */ | #endif /* _SVM_MSR_H_ */ |