aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/keyhandler.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-03 13:17:05 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-03 13:17:05 +0000
commitb47276c18fabaf6f0dbb855d3b1d2063b1c73e01 (patch)
tree32c5b5d0d1cbe76493925d00d0c1b1cb31dc6ef3 /xen/common/keyhandler.c
parent6deab1ae316b5f7da431d8add34c676dfca9c4f9 (diff)
downloadxen-b47276c18fabaf6f0dbb855d3b1d2063b1c73e01.tar.gz
xen-b47276c18fabaf6f0dbb855d3b1d2063b1c73e01.tar.bz2
xen-b47276c18fabaf6f0dbb855d3b1d2063b1c73e01.zip
x86: Fix event-channel access for 32-bit HVM guests.
Based on a patch by Joe Jin <joe.jin@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/keyhandler.c')
-rw-r--r--xen/common/keyhandler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c
index 8118854eca..c481df0f3f 100644
--- a/xen/common/keyhandler.c
+++ b/xen/common/keyhandler.c
@@ -225,7 +225,7 @@ static void dump_domains(unsigned char key)
test_bit(v->virq_to_evtchn[VIRQ_DEBUG],
&shared_info(d, evtchn_mask)),
test_bit(v->virq_to_evtchn[VIRQ_DEBUG] /
- BITS_PER_GUEST_LONG(d),
+ BITS_PER_EVTCHN_WORD(d),
&vcpu_info(v, evtchn_pending_sel)));
send_guest_vcpu_virq(v, VIRQ_DEBUG);
}