From: Christoph Egger Subject: [PATCH] xen: silence stdvga Date: Tue, 9 Mar 2010 11:56:02 +0100 Message-ID: <201003091156.03337.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_DlilLLhi47oIDlc" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_DlilLLhi47oIDlc Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. Signed-off-by: Christoph Egger -- ---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 --Boundary-00=_DlilLLhi47oIDlc Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_stdvga.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_stdvga.diff" diff -r fa5fd3c5ed42 xen/arch/x86/hvm/stdvga.c --- a/xen/arch/x86/hvm/stdvga.c Tue Mar 09 11:46:08 2010 +0100 +++ b/xen/arch/x86/hvm/stdvga.c Tue Mar 09 11:51:56 2010 +0100 @@ -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 " --Boundary-00=_DlilLLhi47oIDlc Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_DlilLLhi47oIDlc--