]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: VMX: Remove redundant check in handle_rmode_exception
authorMohammed Gamal <m.gamal005@gmail.com>
Sat, 12 Jul 2008 13:02:08 +0000 (16:02 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:13 +0000 (10:15 +0200)
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>
arch/x86/kvm/vmx.c

index e8fed9b8756eb7775d9c5d8fd294c301ed2b1f94..9591ca73191cfa4f43b89bdc15ab7967cf1fd8ef 100644 (file)
@@ -2224,9 +2224,6 @@ static void kvm_guest_debug_pre(struct kvm_vcpu *vcpu)
 static int handle_rmode_exception(struct kvm_vcpu *vcpu,
                                  int vec, u32 err_code)
 {
-       if (!vcpu->arch.rmode.active)
-               return 0;
-
        /*
         * Instruction with address size override prefix opcode 0x67
         * Cause the #SS fault with 0 error code in VM86 mode.