projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
238adc7
)
KVM: Grab pic lock in kvm_pic_clear_isr_ack
author
Marcelo Tosatti
<mtosatti@redhat.com>
Thu, 4 Jun 2009 18:08:21 +0000
(15:08 -0300)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 05:32:48 +0000
(08:32 +0300)
isr_ack is protected by kvm_pic->lock.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8259.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/i8259.c
b/arch/x86/kvm/i8259.c
index 2520922282d5d0a030f0a36e40bfbeccbcd85035..bf94a45f4f8685961dd5a4380eb9541e826f7cc9 100644
(file)
--- a/
arch/x86/kvm/i8259.c
+++ b/
arch/x86/kvm/i8259.c
@@
-72,8
+72,10
@@
static void pic_clear_isr(struct kvm_kpic_state *s, int irq)
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);
}
/*