direct-io.hg

changeset 15112:8745300bec4e

[IA64] Quiet lookup_domain_mpa() when domain is dying.

Message clean up in lookup_domain_mpa(). It is possible that current != d.

This patch addresses xensource bugzilla #944

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu May 10 15:18:27 2007 -0600 (2007-05-10)
parents d431761a032a
children 31be207e005e
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Thu May 10 13:29:33 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Thu May 10 15:18:27 2007 -0600
     1.3 @@ -666,19 +666,22 @@ unsigned long lookup_domain_mpa(struct d
     1.4              return GPFN_INV_MASK;
     1.5      }
     1.6  
     1.7 -    if (mpaddr < d->arch.convmem_end) {
     1.8 +    if (mpaddr < d->arch.convmem_end && !d->is_dying) {
     1.9          gdprintk(XENLOG_WARNING, "vcpu %d iip 0x%016lx: non-allocated mpa "
    1.10 -                 "0x%lx (< 0x%lx)\n", current->vcpu_id, PSCB(current, iip),
    1.11 -                 mpaddr, d->arch.convmem_end);
    1.12 +                 "d %"PRId16" 0x%lx (< 0x%lx)\n",
    1.13 +                 current->vcpu_id, PSCB(current, iip),
    1.14 +                 d->domain_id, mpaddr, d->arch.convmem_end);
    1.15      } else if (mpaddr - IO_PORTS_PADDR < IO_PORTS_SIZE) {
    1.16          /* Log I/O port probing, but complain less loudly about it */
    1.17          gdprintk(XENLOG_INFO, "vcpu %d iip 0x%016lx: bad I/O port access "
    1.18 -                 "0x%lx\n", current->vcpu_id, PSCB(current, iip),
    1.19 +                 "d %"PRId16" 0x%lx\n",
    1.20 +                 current->vcpu_id, PSCB(current, iip), d->domain_id,
    1.21                   IO_SPACE_SPARSE_DECODING(mpaddr - IO_PORTS_PADDR));
    1.22      } else {
    1.23 -        gdprintk(XENLOG_WARNING, "vcpu %d iip 0x%016lx: bad mpa 0x%lx "
    1.24 -                 "(=> 0x%lx)\n", current->vcpu_id, PSCB(current, iip),
    1.25 -                 mpaddr, d->arch.convmem_end);
    1.26 +        gdprintk(XENLOG_WARNING, "vcpu %d iip 0x%016lx: bad mpa "
    1.27 +                 "d %"PRId16" 0x%lx (=> 0x%lx)\n",
    1.28 +                 current->vcpu_id, PSCB(current, iip),
    1.29 +                 d->domain_id, mpaddr, d->arch.convmem_end);
    1.30      }
    1.31  
    1.32      if (entry != NULL)