projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a7c231
)
KVM: read apic->irr with ioapic lock held
author
Marcelo Tosatti
<mtosatti@redhat.com>
Wed, 2 Jun 2010 14:26:26 +0000
(11:26 -0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 2 Aug 2010 17:26:44 +0000
(10:26 -0700)
Read ioapic->irr inside ioapic->lock protected section.
KVM-Stable-Tag
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
(cherry picked from comit
07dc7263b99e4ddad2b4c69765a428ccb7d48938
)
virt/kvm/ioapic.c
patch
|
blob
|
history
diff --git
a/virt/kvm/ioapic.c
b/virt/kvm/ioapic.c
index 38a2d20b89de93b4b6deb7f4de2850906de17243..fc4a7e3dd724c546f313575cba64e78624ec2266 100644
(file)
--- a/
virt/kvm/ioapic.c
+++ b/
virt/kvm/ioapic.c
@@
-177,12
+177,13
@@
static int ioapic_deliver(struct kvm_ioapic *ioapic, int irq)
int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level)
{
- u32 old_irr
= ioapic->irr
;
+ u32 old_irr;
u32 mask = 1 << irq;
union kvm_ioapic_redirect_entry entry;
int ret = 1;
mutex_lock(&ioapic->lock);
+ old_irr = ioapic->irr;
if (irq >= 0 && irq < IOAPIC_NUM_PINS) {
entry = ioapic->redirtbl[irq];
level ^= entry.fields.polarity;