aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/i8254.c
diff options
context:
space:
mode:
authorkaf24@localhost.localdomain <kaf24@localhost.localdomain>2006-11-05 20:17:40 +0000
committerkaf24@localhost.localdomain <kaf24@localhost.localdomain>2006-11-05 20:17:40 +0000
commit6bc01e4efd50e1986a9391f75980d45691f42b74 (patch)
treef7199b965f56400c4eb493d5944bf8a147ce4d9f /xen/arch/x86/hvm/i8254.c
parent5aa732c2041ec9d06b7de4a167ad6925cc1a2a97 (diff)
downloadxen-6bc01e4efd50e1986a9391f75980d45691f42b74.tar.gz
xen-6bc01e4efd50e1986a9391f75980d45691f42b74.tar.bz2
xen-6bc01e4efd50e1986a9391f75980d45691f42b74.zip
[XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config option -- HVM CPUs will always have an APIC (which should be set up in virtual wire mode for backward compatibility, just as in a real system). Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/i8254.c')
-rw-r--r--xen/arch/x86/hvm/i8254.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/i8254.c b/xen/arch/x86/hvm/i8254.c
index 96a80cf670..516c114907 100644
--- a/xen/arch/x86/hvm/i8254.c
+++ b/xen/arch/x86/hvm/i8254.c
@@ -374,9 +374,9 @@ void pit_init(struct vcpu *v, unsigned long cpu_khz)
s++; s->vcpu = v;
s++; s->vcpu = v;
- register_portio_handler(PIT_BASE, 4, handle_pit_io);
+ register_portio_handler(v->domain, PIT_BASE, 4, handle_pit_io);
/* register the speaker port */
- register_portio_handler(0x61, 1, handle_speaker_io);
+ register_portio_handler(v->domain, 0x61, 1, handle_speaker_io);
ticks_per_sec(v) = cpu_khz * (int64_t)1000;
#ifdef DEBUG_PIT
printk("HVM_PIT: guest frequency =%lld\n", (long long)ticks_per_sec(v));