[patch 1/4] KVM: x86: grab pic lock in kvm_pic_clear_isr_ack

2009-06-04 Thread Marcelo Tosatti
isr_ack is protected by kvm_pic-lock.

Signed-off-by: Marcelo Tosatti mtosa...@redhat.com

Index: kvm/arch/x86/kvm/i8259.c
===
--- kvm.orig/arch/x86/kvm/i8259.c
+++ kvm/arch/x86/kvm/i8259.c
@@ -72,8 +72,10 @@ static void pic_clear_isr(struct kvm_kpi
 void kvm_pic_clear_isr_ack(struct kvm *kvm)
 {
struct kvm_pic *s = pic_irqchip(kvm);
+   pic_lock(s);
s-pics[0].isr_ack = 0xff;
s-pics[1].isr_ack = 0xff;
+   pic_unlock(s);
 }
 
 /*

-- 

-- 

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[patch 1/4] KVM: x86: grab pic lock in kvm_pic_clear_isr_ack

2009-05-27 Thread Marcelo Tosatti
isr_ack is protected by kvm_pic-lock.

Signed-off-by: Marcelo Tosatti mtosa...@redhat.com

Index: kvm/arch/x86/kvm/i8259.c
===
--- kvm.orig/arch/x86/kvm/i8259.c
+++ kvm/arch/x86/kvm/i8259.c
@@ -72,8 +72,10 @@ static void pic_clear_isr(struct kvm_kpi
 void kvm_pic_clear_isr_ack(struct kvm *kvm)
 {
struct kvm_pic *s = pic_irqchip(kvm);
+   pic_lock(s);
s-pics[0].isr_ack = 0xff;
s-pics[1].isr_ack = 0xff;
+   pic_unlock(s);
 }
 
 /*

-- 

-- 

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[patch 1/4] KVM: x86: grab pic lock in kvm_pic_clear_isr_ack

2009-05-18 Thread Marcelo Tosatti
isr_ack is protected by kvm_pic-lock

Signed-off-by: Marcelo Tosatti mtosa...@redhat.com

Index: kvm/arch/x86/kvm/i8259.c
===
--- kvm.orig/arch/x86/kvm/i8259.c
+++ kvm/arch/x86/kvm/i8259.c
@@ -72,8 +72,10 @@ static void pic_clear_isr(struct kvm_kpi
 void kvm_pic_clear_isr_ack(struct kvm *kvm)
 {
struct kvm_pic *s = pic_irqchip(kvm);
+   pic_lock(s);
s-pics[0].isr_ack = 0xff;
s-pics[1].isr_ack = 0xff;
+   pic_unlock(s);
 }
 
 /*

-- 

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html