diff options
author | Bandan Das <bsd@redhat.com> | 2014-04-16 12:46:13 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-11 03:14:01 -0400 |
commit | 573e80fe04db1aa44e8303037f65716ba5c3a343 (patch) | |
tree | f15305dc2d8d1fc9b8e20b05c05f5cf1f1ec0f9f /arch/x86/include/asm/kvm_emulate.h | |
parent | c44b4c6ab80eef3a9c52c7b3f0c632942e6489aa (diff) |
KVM: emulate: rework seg_override
x86_decode_insn already sets a default for seg_override,
so remove it from the zeroed area. Also replace set/get functions
with direct access to the field.
Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index d40a10a38a80..6c808408326f 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h | |||
@@ -295,12 +295,10 @@ struct x86_emulate_ctxt { | |||
295 | struct operand dst; | 295 | struct operand dst; |
296 | int (*execute)(struct x86_emulate_ctxt *ctxt); | 296 | int (*execute)(struct x86_emulate_ctxt *ctxt); |
297 | int (*check_perm)(struct x86_emulate_ctxt *ctxt); | 297 | int (*check_perm)(struct x86_emulate_ctxt *ctxt); |
298 | bool has_seg_override; | ||
299 | bool rip_relative; | 298 | bool rip_relative; |
300 | u8 rex_prefix; | 299 | u8 rex_prefix; |
301 | u8 lock_prefix; | 300 | u8 lock_prefix; |
302 | u8 rep_prefix; | 301 | u8 rep_prefix; |
303 | u8 seg_override; | ||
304 | /* bitmaps of registers in _regs[] that can be read */ | 302 | /* bitmaps of registers in _regs[] that can be read */ |
305 | u32 regs_valid; | 303 | u32 regs_valid; |
306 | /* bitmaps of registers in _regs[] that have been written */ | 304 | /* bitmaps of registers in _regs[] that have been written */ |
@@ -311,6 +309,7 @@ struct x86_emulate_ctxt { | |||
311 | u8 modrm_reg; | 309 | u8 modrm_reg; |
312 | u8 modrm_rm; | 310 | u8 modrm_rm; |
313 | u8 modrm_seg; | 311 | u8 modrm_seg; |
312 | u8 seg_override; | ||
314 | u64 d; | 313 | u64 d; |
315 | unsigned long _eip; | 314 | unsigned long _eip; |
316 | struct operand memop; | 315 | struct operand memop; |