diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-05-05 07:47:00 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-05-05 07:47:00 +0000 |
commit | 62a796cea814f24045a029bf59e895d843191294 (patch) | |
tree | 826decb2569b119ccf297d99f689bb73a4508b5e /sys/arch/amd64/include/vmmvar.h | |
parent | ff80b2757c5e50278d057526085d08956a911bda (diff) |
Allow setting guest %xcr0 from vmd(8).
Tested on linux and amd64 OpenBSD guests.
Posted to tech by Pratik Vyas.
Diffstat (limited to 'sys/arch/amd64/include/vmmvar.h')
-rw-r--r-- | sys/arch/amd64/include/vmmvar.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/vmmvar.h b/sys/arch/amd64/include/vmmvar.h index 27ecd66ce2e..6c4f0b45b47 100644 --- a/sys/arch/amd64/include/vmmvar.h +++ b/sys/arch/amd64/include/vmmvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmmvar.h,v 1.36 2017/05/02 02:57:46 mlarkin Exp $ */ +/* $OpenBSD: vmmvar.h,v 1.37 2017/05/05 07:46:59 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -328,7 +328,8 @@ struct vcpu_segment_info { #define VCPU_REGS_CR3 2 #define VCPU_REGS_CR4 3 #define VCPU_REGS_CR8 4 -#define VCPU_REGS_NCRS (VCPU_REGS_CR8 + 1) +#define VCPU_REGS_XCR0 5 +#define VCPU_REGS_NCRS (VCPU_REGS_XCR0 + 1) #define VCPU_REGS_CS 0 #define VCPU_REGS_DS 1 |