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>
This commit is contained in:
Keir Fraser committed 2008-08-01 09:45:36 +01:00
1 parent 0ae64c2ff8
commit fbaecffa06
1 file changed
+1 -1
+1 -1
View File
@@ -284,7 +284,7 @@ void dpci_ioport_write(uint32_t mport, ioreq_t *p)
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 )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.