diff options
author | Mohammed Gamal <m.gamal005@gmail.com> | 2008-07-12 09:02:08 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:13 -0400 |
commit | 60bd83a125030878665684f353c7d36fd54f09fd (patch) | |
tree | 1a8b3c6ad1ae90e7a3275ceec56861ed3a06ab57 /arch | |
parent | f7d9238f5dc9306fd3bf1653c2939eef72f94d06 (diff) |
KVM: VMX: Remove redundant check in handle_rmode_exception
Since checking for vcpu->arch.rmode.active is already done whenever we
call handle_rmode_exception(), checking it inside the function is redundant.
Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/vmx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index e8fed9b8756..9591ca73191 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -2224,9 +2224,6 @@ static void kvm_guest_debug_pre(struct kvm_vcpu *vcpu) | |||
2224 | static int handle_rmode_exception(struct kvm_vcpu *vcpu, | 2224 | static int handle_rmode_exception(struct kvm_vcpu *vcpu, |
2225 | int vec, u32 err_code) | 2225 | int vec, u32 err_code) |
2226 | { | 2226 | { |
2227 | if (!vcpu->arch.rmode.active) | ||
2228 | return 0; | ||
2229 | |||
2230 | /* | 2227 | /* |
2231 | * Instruction with address size override prefix opcode 0x67 | 2228 | * Instruction with address size override prefix opcode 0x67 |
2232 | * Cause the #SS fault with 0 error code in VM86 mode. | 2229 | * Cause the #SS fault with 0 error code in VM86 mode. |