summaryrefslogtreecommitdiff
path: root/hw/xen_pt.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-09-30 22:21:11 +0200
committerAvi Kivity <avi@redhat.com>2012-10-15 11:43:06 +0200
commit12b40e471f33e552fa3d962887b416cf67831446 (patch)
tree00400ebcc4f1df405bc914b014e6b6c794978bd6 /hw/xen_pt.h
parentd22b096ef6e0b20810193b68a1d472f3fb8a4f9e (diff)
downloadqemu-12b40e471f33e552fa3d962887b416cf67831446.tar.gz
xen_pt: use separate MemoryListeners for memory and I/O
Using an unfiltered memory listener will cause regions to be reported fails multiple times if we have more than two address spaces. Use a separate listener for memory and I/O, and utilize MemoryListener's address space filtering to fix this. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/xen_pt.h')
-rw-r--r--hw/xen_pt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xen_pt.h b/hw/xen_pt.h
index 112477a881..f15e69a290 100644
--- a/hw/xen_pt.h
+++ b/hw/xen_pt.h
@@ -209,6 +209,7 @@ struct XenPCIPassthroughState {
MemoryRegion rom;
MemoryListener memory_listener;
+ MemoryListener io_listener;
};
int xen_pt_config_init(XenPCIPassthroughState *s);