qemu-config: add error propagation to qemu_config_parse
[qemu/ar7.git] / include / hw / remote / machine.h
blob2a2a33c4b2c98143b38f1a4f9fedb85c7c028b49
1 /*
2 * Remote machine configuration
4 * Copyright © 2018, 2021 Oracle and/or its affiliates.
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
9 */
11 #ifndef REMOTE_MACHINE_H
12 #define REMOTE_MACHINE_H
14 #include "qom/object.h"
15 #include "hw/boards.h"
16 #include "hw/pci-host/remote.h"
17 #include "io/channel.h"
18 #include "hw/remote/iohub.h"
20 struct RemoteMachineState {
21 MachineState parent_obj;
23 RemotePCIHost *host;
24 RemoteIOHubState iohub;
27 /* Used to pass to co-routine device and ioc. */
28 typedef struct RemoteCommDev {
29 PCIDevice *dev;
30 QIOChannel *ioc;
31 } RemoteCommDev;
33 #define TYPE_REMOTE_MACHINE "x-remote-machine"
34 OBJECT_DECLARE_SIMPLE_TYPE(RemoteMachineState, REMOTE_MACHINE)
36 void coroutine_fn mpqemu_remote_msg_loop_co(void *data);
38 #endif