diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-05-02 07:18:20 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-05-02 07:18:20 +0000 |
commit | c68d49cfc2a3a6854e6fdff0cb3ef3c6ea2d90ab (patch) | |
tree | c98151a1c842b6b90fb3d16ea47e636044d9a01b /sys/arch/i386/include | |
parent | 5a4c2daaac5010eb43fa41c2a271841624b9cdd9 (diff) |
Matching i386 commit to previous amd64 commit (initial support for vmctl
send/receive)
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/vmmvar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/include/vmmvar.h b/sys/arch/i386/include/vmmvar.h index a828b9f161c..7e62b319c71 100644 --- a/sys/arch/i386/include/vmmvar.h +++ b/sys/arch/i386/include/vmmvar.h @@ -331,9 +331,13 @@ struct vcpu_segment_info { #define VCPU_REGS_TR 7 #define VCPU_REGS_NSREGS (VCPU_REGS_TR + 1) +#define VCPU_REGS_EFER 0 +#define VCPU_REGS_NMSRS (VCPU_REGS_EFER + 1) + struct vcpu_reg_state { uint32_t vrs_gprs[VCPU_REGS_NGPRS]; uint32_t vrs_crs[VCPU_REGS_NCRS]; + uint32_t vrs_msrs[VCPU_REGS_NMSRS]; struct vcpu_segment_info vrs_sregs[VCPU_REGS_NSREGS]; struct vcpu_segment_info vrs_gdtr; struct vcpu_segment_info vrs_idtr; @@ -418,7 +422,9 @@ struct vm_intr_params { #define VM_RWREGS_GPRS 0x1 /* read/write GPRs */ #define VM_RWREGS_SREGS 0x2 /* read/write segment registers */ #define VM_RWREGS_CRS 0x4 /* read/write CRs */ -#define VM_RWREGS_ALL (VM_RWREGS_GPRS | VM_RWREGS_SREGS | VM_RWREGS_CRS) +#define VM_RWREGS_MSRS 0x8 /* read/write MSRs */ +#define VM_RWREGS_ALL (VM_RWREGS_GPRS | VM_RWREGS_SREGS | VM_RWREGS_CRS | \ + VM_RWREGS_MSRS) struct vm_rwregs_params { uint32_t vrwp_vm_id; |