aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/hpet.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-07 14:21:16 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-07 14:21:16 +0100
commitf12b7b5a0baf51c5aff3126ce269ed6972705afb (patch)
tree9a3e8839b1304cf8331dd38be93ec4f5aff39eae /xen/arch/x86/hvm/hpet.c
parente82525a924fb96e5394d6d81ecdf57d38a706415 (diff)
downloadxen-f12b7b5a0baf51c5aff3126ce269ed6972705afb.tar.gz
xen-f12b7b5a0baf51c5aff3126ce269ed6972705afb.tar.bz2
xen-f12b7b5a0baf51c5aff3126ce269ed6972705afb.zip
x86,hvm: Allow delivery of timer interrupts to VCPUs != 0
This patch is needed for kexec/kdump since VCPU#0 is halted. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/hpet.c')
-rw-r--r--xen/arch/x86/hvm/hpet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c
index 1330a6f634..89af0b61ee 100644
--- a/xen/arch/x86/hvm/hpet.c
+++ b/xen/arch/x86/hvm/hpet.c
@@ -28,7 +28,7 @@
#define vcpu_vhpet(vcpu) (domain_vhpet((vcpu)->domain))
#define vhpet_domain(hpet) (container_of((hpet), struct domain, \
arch.hvm_domain.pl_time.vhpet))
-#define vhpet_vcpu(hpet) (vhpet_domain(hpet)->vcpu[0])
+#define vhpet_vcpu(hpet) (pt_global_vcpu_target(vhpet_domain(hpet)))
#define HPET_BASE_ADDRESS 0xfed00000ULL
#define HPET_MMAP_SIZE 1024