2 * Copyright © 2018, 2021 Oracle and/or its affiliates.
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
12 #include "hw/pci/pci.h"
13 #include "io/channel.h"
14 #include "hw/remote/proxy-memory-listener.h"
15 #include "qemu/event_notifier.h"
17 #define TYPE_PCI_PROXY_DEV "x-pci-proxy-dev"
18 OBJECT_DECLARE_SIMPLE_TYPE(PCIProxyDev
, PCI_PROXY_DEV
)
20 typedef struct ProxyMemoryRegion
{
33 * Mutex used to protect the QIOChannel fd from
34 * the concurrent access by the VCPUs since proxy
35 * blocks while awaiting for the replies from the
40 Error
*migration_blocker
;
41 ProxyMemoryListener proxy_listener
;
44 EventNotifier resample
;
45 ProxyMemoryRegion region
[PCI_NUM_REGIONS
];