]> xenbits.xensource.com Git - xen.git/commitdiff
stdvga: avoid bogus warning message
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 9 Mar 2010 12:34:39 +0000 (12:34 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 9 Mar 2010 12:34:39 +0000 (12:34 +0000)
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>
xen/arch/x86/hvm/stdvga.c

index b2faaa0eca28ddeae8e7ed0f73a39d5095097cdc..ff9b3f68dce9df153362d1a3cfad68d6e461d0ba 100644 (file)
@@ -561,8 +561,9 @@ static int stdvga_intercept_mmio(ioreq_t *p)
         {
         case IOREQ_TYPE_COPY:
             buf = mmio_move(s, p);
-            if ( buf )
-                break;
+            if ( !buf )
+                s->cache = 0;
+            break;
         default:
             gdprintk(XENLOG_WARNING, "unsupported mmio request type:%d "
                      "addr:0x%04x data:0x%04x size:%d count:%d state:%d "