diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-03-09 12:34:39 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-03-09 12:34:39 +0000 |
commit | a0c1a380cba507a16ced03f01a3d927fd4ac6229 (patch) | |
tree | 8e070809aad9abc9d787abb5976b4d423830b999 | |
parent | 782d302291620bc15d5dd849d59a9351444bea46 (diff) | |
download | xen-a0c1a380cba507a16ced03f01a3d927fd4ac6229.tar.gz xen-a0c1a380cba507a16ced03f01a3d927fd4ac6229.tar.bz2 xen-a0c1a380cba507a16ced03f01a3d927fd4ac6229.zip |
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>
-rw-r--r-- | xen/arch/x86/hvm/stdvga.c | 5 |
1 files 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 " |