* [PATCH] Fix typo in VMSI handling code
@ 2011-05-24 12:48 Wei Liu
0 siblings, 0 replies; only message in thread
From: Wei Liu @ 2011-05-24 12:48 UTC (permalink / raw)
To: xen-devel
commit 793ba6300e4d3a35faed91aad7809ce4fe21d64b
Author: Wei Liu <liuw@liuw.name>
Date: Tue May 24 20:38:47 2011 +0800
x86: fix typo in VMSI code.
Signed-off-by: Wei Liu <liuw@liuw.name>
diff --git a/xen/arch/x86/hvm/vmsi.c b/xen/arch/x86/hvm/vmsi.c
index 8ed26f6..eee802a 100644
--- a/xen/arch/x86/hvm/vmsi.c
+++ b/xen/arch/x86/hvm/vmsi.c
@@ -72,8 +72,8 @@ int vmsi_deliver(struct domain *d, int pirq)
int vector = hvm_irq_dpci->mirq[pirq].gmsi.gvec;
uint8_t dest = (uint8_t)flags;
uint8_t dest_mode = !!(flags & VMSI_DM_MASK);
- uint8_t delivery_mode = (flags & VMSI_DELIV_MASK) >>
GLFAGS_SHIFT_DELIV_MODE;
- uint8_t trig_mode = (flags & VMSI_TRIG_MODE) >> GLFAGS_SHIFT_TRG_MODE;
+ uint8_t delivery_mode = (flags & VMSI_DELIV_MASK) >>
GFLAGS_SHIFT_DELIV_MODE;
+ uint8_t trig_mode = (flags & VMSI_TRIG_MODE) >> GFLAGS_SHIFT_TRG_MODE;
struct vlapic *target;
struct vcpu *v;
diff --git a/xen/include/xen/hvm/irq.h b/xen/include/xen/hvm/irq.h
index f21b02c..ae0531b 100644
--- a/xen/include/xen/hvm/irq.h
+++ b/xen/include/xen/hvm/irq.h
@@ -54,8 +54,8 @@ struct dev_intx_gsi_link {
#define VMSI_TRIG_MODE 0x8000
#define GFLAGS_SHIFT_RH 8
-#define GLFAGS_SHIFT_DELIV_MODE 12
-#define GLFAGS_SHIFT_TRG_MODE 15
+#define GFLAGS_SHIFT_DELIV_MODE 12
+#define GFLAGS_SHIFT_TRG_MODE 15
struct hvm_gmsi_info {
uint32_t gvec;
--
Best regards
Wei Liu
Twitter: @iliuw
Site: http://liuw.name
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-24 12:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 12:48 [PATCH] Fix typo in VMSI handling code Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).