From a0c1a380cba507a16ced03f01a3d927fd4ac6229 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 9 Mar 2010 12:34:39 +0000 Subject: [PATCH] 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 --- xen/arch/x86/hvm/stdvga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/stdvga.c b/xen/arch/x86/hvm/stdvga.c index b2faaa0eca..ff9b3f68dc 100644 --- a/xen/arch/x86/hvm/stdvga.c +++ b/xen/arch/x86/hvm/stdvga.c @@ -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 " -- 2.39.5