debuggers.hg

changeset 21064:5f08fd0d6249

stdvga: avoid bogus warning message

Prevents stdvga to print the 'unsupported mmio request type'
warning when the actual request type is 'IOREQ_TYPE_COPY'.
This avoids confusion.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 12:34:39 2010 +0000 (2010-03-09)
parents 83a8e561f3ff
children bfaafdddf31a
files xen/arch/x86/hvm/stdvga.c
line diff
     1.1 --- a/xen/arch/x86/hvm/stdvga.c	Tue Mar 09 12:32:04 2010 +0000
     1.2 +++ b/xen/arch/x86/hvm/stdvga.c	Tue Mar 09 12:34:39 2010 +0000
     1.3 @@ -561,8 +561,9 @@ static int stdvga_intercept_mmio(ioreq_t
     1.4          {
     1.5          case IOREQ_TYPE_COPY:
     1.6              buf = mmio_move(s, p);
     1.7 -            if ( buf )
     1.8 -                break;
     1.9 +            if ( !buf )
    1.10 +                s->cache = 0;
    1.11 +            break;
    1.12          default:
    1.13              gdprintk(XENLOG_WARNING, "unsupported mmio request type:%d "
    1.14                       "addr:0x%04x data:0x%04x size:%d count:%d state:%d "