|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix passthrough of PCI capability structures.
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1215505618 -3600
# Node ID f14dbf6a4118dbcd8351538ef046f264c2fd394f
# Parent 0d707feab01ed0f6b82f3243363aa248e96d39f8
Fix passthrough of PCI capability structures.
Signed-off-by: Naoki Nishiguchi <nisiguti@xxxxxxxxxxxxxx>
---
tools/ioemu/hw/pass-through.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 0d707feab01e -r f14dbf6a4118 tools/ioemu/hw/pass-through.c
--- a/tools/ioemu/hw/pass-through.c Mon Jul 07 16:13:53 2008 +0100
+++ b/tools/ioemu/hw/pass-through.c Tue Jul 08 09:26:58 2008 +0100
@@ -827,7 +827,7 @@ void pt_iomem_map(PCIDevice *d, int i, u
if ( e_size == 0 )
return;
- if ( !first_map )
+ if ( !first_map && old_ebase != -1 )
{
add_msix_mapping(assigned_device, i);
/* Remove old mapping */
@@ -883,7 +883,7 @@ void pt_ioport_map(PCIDevice *d, int i,
if ( e_size == 0 )
return;
- if ( !first_map )
+ if ( !first_map && old_ebase != -1 )
{
/* Remove old mapping */
ret = xc_domain_ioport_mapping(xc_handle, domid, old_ebase,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |