diff options
author | kaf24@localhost.localdomain <kaf24@localhost.localdomain> | 2006-11-05 20:17:40 +0000 |
---|---|---|
committer | kaf24@localhost.localdomain <kaf24@localhost.localdomain> | 2006-11-05 20:17:40 +0000 |
commit | 6bc01e4efd50e1986a9391f75980d45691f42b74 (patch) | |
tree | f7199b965f56400c4eb493d5944bf8a147ce4d9f /xen/arch/x86/hvm/vioapic.c | |
parent | 5aa732c2041ec9d06b7de4a167ad6925cc1a2a97 (diff) | |
download | xen-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/vioapic.c')
-rw-r--r-- | xen/arch/x86/hvm/vioapic.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/xen/arch/x86/hvm/vioapic.c b/xen/arch/x86/hvm/vioapic.c index d7b2321e62..0ed6463045 100644 --- a/xen/arch/x86/hvm/vioapic.c +++ b/xen/arch/x86/hvm/vioapic.c @@ -530,9 +530,6 @@ void hvm_vioapic_do_irqs(struct domain *d, uint16_t irqs) { hvm_vioapic_t *s = &(d->arch.hvm_domain.vioapic); - if (!hvm_apic_support(d)) - return; - s->irr |= irqs & ~s->imr; service_ioapic(s); } @@ -541,9 +538,6 @@ void hvm_vioapic_do_irqs_clear(struct domain *d, uint16_t irqs) { hvm_vioapic_t *s = &(d->arch.hvm_domain.vioapic); - if (!hvm_apic_support(d)) - return; - s->irr &= ~irqs; service_ioapic(s); } @@ -552,8 +546,7 @@ void hvm_vioapic_set_xen_irq(struct domain *d, int irq, int level) { hvm_vioapic_t *s = &d->arch.hvm_domain.vioapic; - if (!hvm_apic_support(d) || !IOAPICEnabled(s) || - s->redirtbl[irq].RedirForm.mask) + if (!IOAPICEnabled(s) || s->redirtbl[irq].RedirForm.mask) return; if (s->redirtbl[irq].RedirForm.trigmod != IOAPIC_LEVEL_TRIGGER) @@ -569,9 +562,6 @@ void hvm_vioapic_set_irq(struct domain *d, int irq, int level) { hvm_vioapic_t *s = &(d->arch.hvm_domain.vioapic); - if (!hvm_apic_support(d)) - return ; - HVM_DBG_LOG(DBG_LEVEL_IOAPIC, "ioapic_set_irq " "irq %x level %x\n", irq, level); |