ia64/xen-unstable

changeset 14876:b9f579e2d6a7

Fix for bug introduced by cset 14859:a9aa7c29eda8 - implement IOREQ_TYPE_SUB
for intercepted mmio access too.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Tue Apr 17 15:41:44 2007 +0100 (2007-04-17)
parents 20dba1b883f2
children ce2b25e1c8f6
files xen/arch/x86/hvm/intercept.c
line diff
     1.1 --- a/xen/arch/x86/hvm/intercept.c	Tue Apr 17 13:22:24 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/intercept.c	Tue Apr 17 15:41:44 2007 +0100
     1.3 @@ -148,6 +148,15 @@ static inline void hvm_mmio_access(struc
     1.4          p->data = tmp1;
     1.5          break;
     1.6  
     1.7 +    case IOREQ_TYPE_SUB:
     1.8 +        tmp1 = read_handler(v, p->addr, p->size);
     1.9 +        if ( p->dir == IOREQ_WRITE ) {
    1.10 +            tmp2 = tmp1 - (unsigned long) p->data;
    1.11 +            write_handler(v, p->addr, p->size, tmp2);
    1.12 +        }
    1.13 +        p->data = tmp1;
    1.14 +        break;
    1.15 +
    1.16      default:
    1.17          printk("hvm_mmio_access: error ioreq type %x\n", p->type);
    1.18          domain_crash_synchronous();