From: Arun Sharma <arun.sharma@intel.com>
To: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>,
Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: [PATCH][5/5] x86-64-irq-cpustat.patch
Date: Tue, 19 Apr 2005 15:52:48 -0700 [thread overview]
Message-ID: <20050419225248.GA26406@intel.com> (raw)
Use fixed size data types in irq_cpustat and check it properly for
softirqs before vmresume.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
diff -Nru a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S
--- a/xen/arch/x86/x86_64/entry.S 2005-04-18 16:49:38 -07:00
+++ b/xen/arch/x86/x86_64/entry.S 2005-04-18 16:49:38 -07:00
@@ -242,10 +242,10 @@
cli # tests must not race interrupts
/*test_softirqs:*/
movq EDOMAIN_processor(%rbx),%rax
-#if 0
shl $6,%rax # sizeof(irq_cpustat) == 64
- test %rcx,SYMBOL_NAME(irq_stat)(%rax,1)
-#endif
+ leaq SYMBOL_NAME(irq_stat)(%rip), %rdx
+ addq %rdx,%rax
+ testl %ecx,(%rax)
jnz vmx_process_softirqs
vmx_restore_all_guest:
diff -Nru a/xen/include/asm-x86/hardirq.h b/xen/include/asm-x86/hardirq.h
--- a/xen/include/asm-x86/hardirq.h 2005-04-18 16:49:38 -07:00
+++ b/xen/include/asm-x86/hardirq.h 2005-04-18 16:49:38 -07:00
@@ -5,10 +5,10 @@
#include <xen/cache.h>
typedef struct {
- unsigned int __softirq_pending;
- unsigned int __local_irq_count;
- unsigned int __nmi_count;
- unsigned long idle_timestamp;
+ u32 __softirq_pending;
+ u32 __local_irq_count;
+ u32 __nmi_count;
+ u64 idle_timestamp;
} __cacheline_aligned irq_cpustat_t;
#include <xen/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
reply other threads:[~2005-04-19 22:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050419225248.GA26406@intel.com \
--to=arun.sharma@intel.com \
--cc=Ian.Pratt@cl.cam.ac.uk \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.