diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-01-19 23:18:56 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-01-19 23:18:56 +0000 |
commit | 2450859e80b06904e1c55520152c75954c522727 (patch) | |
tree | 93d3a7ed9e8300eec3ce56f5468aadc57f7c3f4d /sys/arch/i386/include | |
parent | a946d7032236cadd7387a4bbdf7b0d1df6bd5a0f (diff) |
forgot this in previous commit (SVM_MSR* macro definitions)
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/vmmvar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/i386/include/vmmvar.h b/sys/arch/i386/include/vmmvar.h index 63bcf17e1be..7a971653a9f 100644 --- a/sys/arch/i386/include/vmmvar.h +++ b/sys/arch/i386/include/vmmvar.h @@ -449,6 +449,10 @@ struct vm_rwregs_params { #define VMX_MSRIDX(m) ((m) / 8) #define VMX_MSRBIT(m) (1 << (m) % 8) +#define SVM_MSRIDX(m) ((m) / 4) +#define SVM_MSRBIT_R(m) (1 << (((m) % 4) * 2)) +#define SVM_MSRBIT_W(m) (1 << (((m) % 4) * 2 + 1)) + enum { VMM_MODE_UNKNOWN, VMM_MODE_VMX, |