Skip to contentSkip to conversation

xen: silence stdvga

PATCH New Christoph Egger 1 participant 1 message Mar 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: silence stdvga

Hi!

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

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
xen/arch/x86/hvm/stdvga.c +3 -2
diff -r fa5fd3c5ed42 xen/arch/x86/hvm/stdvga.c
@@ -561,8 +563,9 @@ static int stdvga_intercept_mmio(ioreq_t
         {
         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 "

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel