new file mode 100644
@@ -0,0 +1,28 @@
+/*
+ * RemoteObject header.
+ *
+ * Copyright © 2018, 2022 Oracle and/or its affiliates.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+#ifndef REMOTE_H
+#define REMOTE_H
+
+struct RemoteObject {
+ /* private */
+ Object parent;
+
+ Notifier machine_done;
+
+ int32_t fd;
+ char *devid;
+
+ QIOChannel *ioc;
+
+ DeviceState *dev;
+ DeviceListener listener;
+};
+
+#endif
@@ -23,6 +23,7 @@
#include "hw/pci/pci.h"
#include "qemu/sockets.h"
#include "monitor/monitor.h"
+#include "hw/remote/remote.h"
#define TYPE_REMOTE_OBJECT "x-remote-object"
OBJECT_DECLARE_TYPE(RemoteObject, RemoteObjectClass, REMOTE_OBJECT)
@@ -34,21 +35,6 @@ struct RemoteObjectClass {
unsigned int max_devs;
};
-struct RemoteObject {
- /* private */
- Object parent;
-
- Notifier machine_done;
-
- int32_t fd;
- char *devid;
-
- QIOChannel *ioc;
-
- DeviceState *dev;
- DeviceListener listener;
-};
-
static void remote_object_set_fd(Object *obj, const char *str, Error **errp)
{
RemoteObject *o = REMOTE_OBJECT(obj);
@@ -3453,6 +3453,7 @@ F: hw/remote/proxy-memory-listener.c
F: include/hw/remote/proxy-memory-listener.h
F: hw/remote/iohub.c
F: include/hw/remote/iohub.h
+F: include/hw/remote/remote.h
EBPF:
M: Jason Wang <jasowang@redhat.com>
This will be needed later. No functional changes. Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com> --- include/hw/remote/remote.h | 28 ++++++++++++++++++++++++++++ hw/remote/remote-obj.c | 16 +--------------- MAINTAINERS | 1 + 3 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 include/hw/remote/remote.h