ia64/xen-unstable

changeset 18231:f37a7ea71766

io passthru: fix a bug when assigning a SATA CDROM or DISK
Signed-off-by: Li Zhang <li.zhang@intel.com>
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Aug 01 09:45:36 2008 +0100 (2008-08-01)
parents 1c39d42dcce8
children ccfb470f106f
files xen/arch/x86/hvm/io.c
line diff
     1.1 --- a/xen/arch/x86/hvm/io.c	Fri Aug 01 09:38:25 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/io.c	Fri Aug 01 09:45:36 2008 +0100
     1.3 @@ -284,7 +284,7 @@ void dpci_ioport_write(uint32_t mport, i
     1.4          data = p->data;
     1.5          if ( p->data_is_ptr )
     1.6              (void)hvm_copy_from_guest_phys(
     1.7 -                &data, p->data + (sign * i & p->size), p->size);
     1.8 +                &data, p->data + (sign * i * p->size), p->size);
     1.9  
    1.10          switch ( p->size )
    1.11          {