1 /* 2 * Remote machine configuration 3 * 4 * Copyright © 2018, 2021 Oracle and/or its affiliates. 5 * 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. 8 * 9 */ 10 11 #ifndef REMOTE_MACHINE_H 12 #define REMOTE_MACHINE_H 13 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" 19 20 struct RemoteMachineState { 21 MachineState parent_obj; 22 23 RemotePCIHost *host; 24 RemoteIOHubState iohub; 25 26 bool vfio_user; 27 28 bool auto_shutdown; 29 }; 30 31 /* Used to pass to co-routine device and ioc. */ 32 typedef struct RemoteCommDev { 33 PCIDevice *dev; 34 QIOChannel *ioc; 35 } RemoteCommDev; 36 37 #define TYPE_REMOTE_MACHINE "x-remote-machine" 38 OBJECT_DECLARE_SIMPLE_TYPE(RemoteMachineState, REMOTE_MACHINE) 39 40 void coroutine_fn mpqemu_remote_msg_loop_co(void *data); 41 42 #endif 43