aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/irq.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-09 17:43:13 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-09 17:43:13 +0000
commit9bec2359e659b6a5e0d49df9e5723d837e1ca8df (patch)
treed40081db5913487fe0aaef44c300a040f456e83f /xen/arch/x86/hvm/irq.c
parente3e7d81e413560eaeca19f7ec613e63ea0f02e8c (diff)
downloadxen-9bec2359e659b6a5e0d49df9e5723d837e1ca8df.tar.gz
xen-9bec2359e659b6a5e0d49df9e5723d837e1ca8df.tar.bz2
xen-9bec2359e659b6a5e0d49df9e5723d837e1ca8df.zip
[HVM] Ignore evtchn_upcall_mask and initialise to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/irq.c')
-rw-r--r--xen/arch/x86/hvm/irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/irq.c b/xen/arch/x86/hvm/irq.c
index 1b51f5905c..45d4f97042 100644
--- a/xen/arch/x86/hvm/irq.c
+++ b/xen/arch/x86/hvm/irq.c
@@ -135,7 +135,8 @@ void hvm_set_callback_irq_level(void)
if ( gsi == 0 )
goto out;
- if ( local_events_need_delivery() )
+ /* NB. Do not check the evtchn_upcall_mask. It is not used in HVM mode. */
+ if ( vcpu_info(v, evtchn_upcall_pending) )
{
if ( !__test_and_set_bit(0, &hvm_irq->callback_irq_wire) &&
(hvm_irq->gsi_assert_count[gsi]++ == 0) )