aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vmx
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-03-04 10:20:57 +0100
committerJan Beulich <jbeulich@suse.com>2013-03-04 10:20:57 +0100
commitda46114c1beccf3c5745ce4dbebe6d44bfbd8132 (patch)
tree73b9c476fe178a70c15929c16fe81f86c193ab59 /xen/arch/x86/hvm/vmx
parentd463b005bbd6475ed930a302821efe239e1b2cf9 (diff)
downloadxen-da46114c1beccf3c5745ce4dbebe6d44bfbd8132.tar.gz
xen-da46114c1beccf3c5745ce4dbebe6d44bfbd8132.tar.bz2
xen-da46114c1beccf3c5745ce4dbebe6d44bfbd8132.zip
x86: don't rely on __softirq_pending to be the first field in irq_cpustat_t
This is even more so as the field doesn't have a comment to that effect in the structure definition. Once modifying the respective assembly code, also convert the IRQSTAT_shift users to do a 32-bit shift only (as we won't support 48M CPUs any time soon) and use "cmpl" instead of "testl" when checking the field (both reducing code size). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/vmx')
-rw-r--r--xen/arch/x86/hvm/vmx/entry.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/vmx/entry.S b/xen/arch/x86/hvm/vmx/entry.S
index f0024d34fa..496a62c096 100644
--- a/xen/arch/x86/hvm/vmx/entry.S
+++ b/xen/arch/x86/hvm/vmx/entry.S
@@ -97,8 +97,8 @@ vmx_asm_do_vmentry:
cli
mov VCPU_processor(%rbx),%eax
- shl $IRQSTAT_shift,%rax
- lea irq_stat(%rip),%rdx
+ shl $IRQSTAT_shift,%eax
+ lea irq_stat+IRQSTAT_softirq_pending(%rip),%rdx
cmpl $0,(%rdx,%rax,1)
jnz .Lvmx_process_softirqs