[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] io passthru: fix a bug when assigning a SATA CDROM or DISK



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1217580336 -3600
# Node ID f37a7ea71766e2f7359e7a1d3adb3d7407862d65
# Parent  1c39d42dcce86aa921e827a5e88a47aa5527c4bb
io passthru: fix a bug when assigning a SATA CDROM or DISK
Signed-off-by: Li Zhang <li.zhang@xxxxxxxxx>
Signed-off-by: Yu Zhao <yu.zhao@xxxxxxxxx>
---
 xen/arch/x86/hvm/io.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 1c39d42dcce8 -r f37a7ea71766 xen/arch/x86/hvm/io.c
--- a/xen/arch/x86/hvm/io.c     Fri Aug 01 09:38:25 2008 +0100
+++ b/xen/arch/x86/hvm/io.c     Fri Aug 01 09:45:36 2008 +0100
@@ -284,7 +284,7 @@ void dpci_ioport_write(uint32_t mport, i
         data = p->data;
         if ( p->data_is_ptr )
             (void)hvm_copy_from_guest_phys(
-                &data, p->data + (sign * i & p->size), p->size);
+                &data, p->data + (sign * i * p->size), p->size);
 
         switch ( p->size )
         {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.