diff options
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
| -rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index 15f960c06ff..a04fe4eb237 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h @@ -189,7 +189,6 @@ struct x86_emulate_ops {  	void (*set_idt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt);  	ulong (*get_cr)(struct x86_emulate_ctxt *ctxt, int cr);  	int (*set_cr)(struct x86_emulate_ctxt *ctxt, int cr, ulong val); -	void (*set_rflags)(struct x86_emulate_ctxt *ctxt, ulong val);  	int (*cpl)(struct x86_emulate_ctxt *ctxt);  	int (*get_dr)(struct x86_emulate_ctxt *ctxt, int dr, ulong *dest);  	int (*set_dr)(struct x86_emulate_ctxt *ctxt, int dr, ulong value); @@ -274,13 +273,17 @@ struct x86_emulate_ctxt {  	bool guest_mode; /* guest running a nested guest */  	bool perm_ok; /* do not check permissions if true */ -	bool only_vendor_specific_insn; +	bool ud;	/* inject an #UD if host doesn't support insn */  	bool have_exception;  	struct x86_exception exception; -	/* decode cache */ -	u8 twobyte; +	/* +	 * decode cache +	 */ + +	/* current opcode length in bytes */ +	u8 opcode_len;  	u8 b;  	u8 intercept;  	u8 lock_prefix;  | 
