WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] io passthru: fix a bug when assigning a S

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] io passthru: fix a bug when assigning a SATA CDROM or DISK
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Aug 2008 02:20:39 -0700
Delivery-date: Fri, 01 Aug 2008 02:22:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] io passthru: fix a bug when assigning a SATA CDROM or DISK, Xen patchbot-unstable <=