ia64/xen-unstable

changeset 9122:658528fe2b9a

It's not necessary to define a function for dumping virtual IOAPIC
table entry, that makes the code hard to comply with condition
compiling of HVM_DBG_LOG.

Signed-off-by: Xin Li <xin.b.li@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Mar 03 10:58:42 2006 +0100 (2006-03-03)
parents e0d8c23acaa7
children a0c07e32000a
files xen/arch/x86/hvm/vioapic.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vioapic.c	Fri Mar 03 10:57:37 2006 +0100
     1.2 +++ b/xen/arch/x86/hvm/vioapic.c	Fri Mar 03 10:58:42 2006 +0100
     1.3 @@ -52,20 +52,6 @@ static void ioapic_enable(hvm_vioapic_t 
     1.4          s->flags &= ~IOAPIC_ENABLE_FLAG;
     1.5  }
     1.6  
     1.7 -static void ioapic_dump_redir(hvm_vioapic_t *s, uint8_t entry)
     1.8 -{
     1.9 -    RedirStatus redir = s->redirtbl[entry];
    1.10 -
    1.11 -    printk("ioapic_dump_redir entry %x vector %x "
    1.12 -      "deliver_mod %x destmode %x delivestatus %x "
    1.13 -      "polarity %x remote_irr %x trigmod %x mask %x dest_id %x\n",
    1.14 -      entry, redir.RedirForm.vector, redir.RedirForm.deliver_mode,
    1.15 -      redir.RedirForm.destmode, redir.RedirForm.delivestatus,
    1.16 -      redir.RedirForm.polarity, redir.RedirForm.remoteirr,
    1.17 -      redir.RedirForm.trigmod, redir.RedirForm.mask,
    1.18 -      redir.RedirForm.dest_id);
    1.19 -}
    1.20 -
    1.21  #ifdef HVM_DOMAIN_SAVE_RESTORE
    1.22  void ioapic_save(QEMUFile* f, void* opaque)
    1.23  {
    1.24 @@ -534,7 +520,19 @@ void hvm_vioapic_set_irq(struct domain *
    1.25      if (!IOAPICEnabled(s) || s->redirtbl[irq].RedirForm.mask)
    1.26          return;
    1.27  
    1.28 -    ioapic_dump_redir(s, irq);
    1.29 +    HVM_DBG_LOG(DBG_LEVEL_IOAPIC, "hvm_vioapic_set_irq entry %x "
    1.30 +      "vector %x deliver_mod %x destmode %x delivestatus %x "
    1.31 +      "polarity %x remote_irr %x trigmod %x mask %x dest_id %x\n",
    1.32 +      irq,
    1.33 +      s->redirtbl[irq].RedirForm.vector,
    1.34 +      s->redirtbl[irq].RedirForm.deliver_mode,
    1.35 +      s->redirtbl[irq].RedirForm.destmode,
    1.36 +      s->redirtbl[irq].RedirForm.delivestatus,
    1.37 +      s->redirtbl[irq].RedirForm.polarity,
    1.38 +      s->redirtbl[irq].RedirForm.remoteirr,
    1.39 +      s->redirtbl[irq].RedirForm.trigmod,
    1.40 +      s->redirtbl[irq].RedirForm.mask,
    1.41 +      s->redirtbl[irq].RedirForm.dest_id);
    1.42  
    1.43      if (irq >= 0 && irq < IOAPIC_NUM_PINS) {
    1.44          uint32_t bit = 1 << irq;