All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]Fix vlapic.h type
@ 2009-07-07 21:20 Wei Huang
  2009-07-08  7:32 ` Patrick Colp
  0 siblings, 1 reply; 9+ messages in thread
From: Wei Huang @ 2009-07-07 21:20 UTC (permalink / raw)
  To: 'xen-devel@lists.xensource.com'

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

The following patch fixes a typo in vlapic_domain inside vlapic.h. I 
also found an related error in vlapic.c file, which is fixed by this 
patch too.

Signed-off-by: Wei Huang <wei.huang2@amd.com>



[-- Attachment #2: vlapic_typo_patch.txt --]
[-- Type: text/plain, Size: 1172 bytes --]

diff -r d768628c28a4 xen/arch/x86/hvm/vlapic.c
--- a/xen/arch/x86/hvm/vlapic.c	Mon Jul 06 11:58:02 2009 +0100
+++ b/xen/arch/x86/hvm/vlapic.c	Tue Jul 07 16:16:18 2009 -0500
@@ -460,7 +460,7 @@ int vlapic_ipi(
 
     if ( delivery_mode == APIC_DM_LOWEST )
     {
-        target = apic_lowest_prio(vlapic_domain(v), lpr_map);
+        target = apic_lowest_prio(vlapic_domain(vlapic), lpr_map);
         if ( target != NULL )
             rc = vlapic_accept_irq(vlapic_vcpu(target), delivery_mode,
                                    vector, level, trig_mode);
diff -r d768628c28a4 xen/include/asm-x86/hvm/vlapic.h
--- a/xen/include/asm-x86/hvm/vlapic.h	Mon Jul 06 11:58:02 2009 +0100
+++ b/xen/include/asm-x86/hvm/vlapic.h	Tue Jul 07 16:16:18 2009 -0500
@@ -31,7 +31,7 @@
 #define vcpu_vlapic(vcpu)   (&(vcpu)->arch.hvm_vcpu.vlapic)
 #define vlapic_vcpu(vpic)   (container_of((vpic), struct vcpu, \
                                           arch.hvm_vcpu.vlapic))
-#define vlapic_domain(vpic) (vlapic_vcpu(vlapic)->domain)
+#define vlapic_domain(vlapic) (vlapic_vcpu(vlapic)->domain)
 
 #define VLAPIC_ID(vlapic)   \
     (GET_xAPIC_ID(vlapic_get_reg((vlapic), APIC_ID)))

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-08  9:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07 21:20 [PATCH]Fix vlapic.h type Wei Huang
2009-07-08  7:32 ` Patrick Colp
2009-07-08  9:15   ` Neil Turton
2009-07-08  9:31     ` Patrick Colp
2009-07-08  9:33       ` Tim Deegan
2009-07-08  9:35         ` Neil Turton
2009-07-08  9:38           ` Patrick Colp
2009-07-08  9:58             ` Neil Turton
2009-07-08  9:42           ` Keir Fraser

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.