linux-mips
[Top] [All Lists]

[PATCH] arch: mips: kvm: Enable after disabling interrupt

To: gleb@kernel.org, pbonzini@redhat.com, ralf@linux-mips.org, kvm@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: [PATCH] arch: mips: kvm: Enable after disabling interrupt
From: Tapasweni Pathak <tapaswenipathak@gmail.com>
Date: Sun, 22 Feb 2015 21:48:21 +0530
Cc: julia.lawall@lip6.fr, tapaswenipathak@gmail.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=oU099nSdkEaQYHdlrdRGAOUOmIpVOKbbxknE9Kg6PhY=; b=B271cdSVF0NVg/xPI3gvV69DFGt6kTzG6RQJnGP3kWF9eh/ve0lqI60slpEnNWbqXd E9MX+X8rEznyRbDOMTcIuhTM8WCTJqM2Yr9mg44HtqezdGdg5cD/lTNbXWkn/xNIFK9y tXO6K1BtGdP2b7CYWZ0T5sHQuOtFSbPxnDu1xgNNRcH4W0egsfphhZwxE7Er5RWJveGg LO7yQ0kM+Sb4R7t1KE8TYLCn6hBLRgJaPf7mO7EmzSHR0VOACoEs+EhBtrwXaSK/uaAa nL881AWEwE2FwqM/DdQypUF89TLx5020Hj5Q9FCGSQwj/de6rQCFRBoPtGsfHEI0msUT G8Bg==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
Enable disabled interrupt, on unsuccessful operation.

Found by Coccinelle.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
---
 arch/mips/kvm/tlb.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/kvm/tlb.c b/arch/mips/kvm/tlb.c
index bbcd822..b6beb0e 100644
--- a/arch/mips/kvm/tlb.c
+++ b/arch/mips/kvm/tlb.c
@@ -216,6 +216,7 @@ int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned 
long entryhi,
        if (idx > current_cpu_data.tlbsize) {
                kvm_err("%s: Invalid Index: %d\n", __func__, idx);
                kvm_mips_dump_host_tlbs();
+               local_irq_restore(flags);
                return -1;
        }

--
1.7.9.5


<Prev in Thread] Current Thread [Next in Thread>