Skip to contentSkip to conversation

x86_32/entry.S question

DISCUSSION Daniel Stodden 2 participants 3 messages Dec 5, 2007 – Dec 6, 2007

lore
Share & tools
lore
#0 lore raw

Hi all.

cli # tests must not race interrupts
/*test_softirqs:*/
movl VCPU_processor(%ebx),%eax
shl $IRQSTAT_shift,%eax
test %ecx,irq_stat(%eax,1)
jnz process_softirqs
btr $_VCPUF_nmi_pending,VCPU_flags(%ebx) <<--- we are here
jc process_nmi

Taken from xen-3.0.2. The code may be outdated anyway, but doesn't the btr lack a lock prefix on SMP?

regards,
daniel

Signature · 3 lines
[email protected]

Wire up your home and stay there.
#1 lore raw
Quoted 11 lines

cli # tests must not race interrupts
/*test_softirqs:*/
movl VCPU_processor(%ebx),%eax
shl $IRQSTAT_shift,%eax
test %ecx,irq_stat(%eax,1)
jnz process_softirqs
btr $_VCPUF_nmi_pending,VCPU_flags(%ebx) <<--- we are here
jc process_nmi

Taken from xen-3.0.2. The code may be outdated anyway, but doesn't the btr lack a lock prefix on SMP?

Yes, it was lacking a lock, but no, the code isn't there anymore in a shape close to that.

Jan

#2 lore raw
Quoted 5 lines · Jan Beulich
Quoted 2 lines

Taken from xen-3.0.2. The code may be outdated anyway, but doesn't the btr lack a lock prefix on SMP?

Yes, it was lacking a lock, but no, the code isn't there anymore in a shape close to that.

Thanks, just curious.

Daniel

Signature · 3 lines
[email protected]

Wire up your home and stay there.