Skip to contentSkip to conversation

arch: mips: kvm: Enable after disabling interrupt

PATCH Applied Tapasweni Pathak 3 participants 3 messages Feb 22, 2015 – Mar 2, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: mips: kvm: Enable after disabling interrupt

Enable disabled interrupt, on unsuccessful operation.

Found by Coccinelle.

---
 arch/mips/kvm/tlb.c |    1 +
 1 file changed, 1 insertion(+)
arch/mips/kvm/tlb.c +1 -0
index bbcd822..b6beb0e 100644
@@ -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

Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Tapasweni Pathak

Enable disabled interrupt, on unsuccessful operation.

Found by Coccinelle.

Cheers
James

Quoted 20 lines
---
 arch/mips/kvm/tlb.c |    1 +
 1 file changed, 1 insertion(+)
arch/mips/kvm/tlb.c +1 -1
index bbcd822..b6beb0e 100644
@@ -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

#2 lore raw
In reply to Tapasweni Pathak
Quoted 15 lines · Tapasweni Pathak

Enable disabled interrupt, on unsuccessful operation.

Found by Coccinelle.

---
 arch/mips/kvm/tlb.c |    1 +
 1 file changed, 1 insertion(+)
arch/mips/kvm/tlb.c +0 -0
index bbcd822..b6beb0e 100644

arch/mips/kvm/tlb.c int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi, · line 222

Quoted 7 lines
arch/mips/kvm/tlb.c +1 -0
@@ -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;
 	}
 

Applied, thanks.