From patchwork Tue Jan 19 20:28:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jag Raman X-Patchwork-Id: 12030807 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B48D4C433E0 for ; Tue, 19 Jan 2021 21:03:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2558522D71 for ; Tue, 19 Jan 2021 21:03:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2558522D71 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:38304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1y9z-000475-49 for qemu-devel@archiver.kernel.org; Tue, 19 Jan 2021 16:03:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1xcp-0000zV-05 for qemu-devel@nongnu.org; Tue, 19 Jan 2021 15:29:15 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:57238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1xcm-0000Eq-RU for qemu-devel@nongnu.org; Tue, 19 Jan 2021 15:29:14 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10JKOBJa003091; Tue, 19 Jan 2021 20:29:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=N0GNGvHs9TRNBlocD9sV2QNxgHrdfPGGDai8hIri/+M=; b=ySF3qomnfqrjEgzwO6kr3ykfywBGTw39tUzp8l8bZbsUsADSiWczxGjxhf70LwsW9qtx iSwhOfJqHVae9oLL5Xxo44qSIwzc6wuCIeXJO1LVHWMy4xTPlPURBgN+4TBXU67uNMwi nezbwia/bgRcza6norXNqK6Gu8zjduADmcVIIx/4JpaVc4ppY2d5+2mqRsn3VZ+awEh6 PFo8qFj/bYDWlR+tWYPORBBVR/6u+u6RTOnlBJzWIhakEkP9CX/EGC4xJFrI3EIdhk1W wBY4BPxv5z3Zqz03TmWucMcgenQoQCo5e3eMfQGpckZbIcMb0gzqZP4jjEWyz5XgQ+OJ hA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 363xyhtasf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jan 2021 20:29:04 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10JKQbKw117373; Tue, 19 Jan 2021 20:29:03 GMT Received: from nam02-cy1-obe.outbound.protection.outlook.com (mail-cys01nam02lp2056.outbound.protection.outlook.com [104.47.37.56]) by aserp3030.oracle.com with ESMTP id 3649qpu8ww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jan 2021 20:29:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DCOn5urEWxcZ6GVMyv3Os5K6KT4zmXeabX9BOFBZ9Th6jZkTGZHDMBA/Y9EhtxZiY87muI0EnQ5l/QO+UGQAhJSYN9oQmK+8qX24U2LwlMdVWFSFvc5Y+Ge/k8fQgbUeczrtX5HtU/4pCDVd8tSPurqeMzSL8+0EJSZ25Xy/AO8X12yf4TSK9KKznK4/4z+6E6qPtwQx0k9uim+NvjhXGg8sJjxiWKQyfMpi4JZ+KU+dQjCZCLAfX1jX426QE9uPARqtI/nYzsRyiAzBKK3Q8rMpG3Sspws/I9x8DB1rfAaDQlB5IAimyEkeDCqdr3fLeJCT++vEIcR+YG74HqKLPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N0GNGvHs9TRNBlocD9sV2QNxgHrdfPGGDai8hIri/+M=; b=DWgdrtpnHQAxFWGsI9UjvL0rh7HPEhx7fncmMMZ7Zk1y4TBH2eOrLMiFDKdMNQ5TpdJZzkVhfh8mvEIN9Pmo2VS4Ja9CkxkAf1pApzM7FAdssVzwI/y+lGxECVfwo8N07YIBQGj5LFiiqAVb9Y3XslGJP3HnC28CucJ5vpWcyKviL//B3PX9dV0ahdUYKxhUI0vkXuvmLbfD9p/7PoiepWK/m1eOqm9/Pkgl/6UelW+lDbPEns9ZCR9jp8qG6u5DKQAdqZ8N4e0eT1CQ7cE3W8m/wZcKx/clgKXFztfR+LRPlZjSexww0vqQ1PQViXzMNjV5Zm7iUcq5WKthSy6yTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N0GNGvHs9TRNBlocD9sV2QNxgHrdfPGGDai8hIri/+M=; b=BERnFXd5LzLY/N+gvmlTNDRxfMqfE/sTer0A1AWnwv7GhW9eOyVOCKkoaYPDUF4l4YoLcy7wXo3MDCQc4xhrAJDqPgIJ4fMuIysmtKlv7oSuJ8u4OB9eqwopvM3gOmcZFybtQHM6cvuClXkrdPMvHaG9z/6Oi4N0EWhToSZxjh4= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=oracle.com; Received: from BYAPR10MB2744.namprd10.prod.outlook.com (2603:10b6:a02:ae::18) by BYAPR10MB3349.namprd10.prod.outlook.com (2603:10b6:a03:155::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Tue, 19 Jan 2021 20:29:01 +0000 Received: from BYAPR10MB2744.namprd10.prod.outlook.com ([fe80::5cf0:3e26:c005:341b]) by BYAPR10MB2744.namprd10.prod.outlook.com ([fe80::5cf0:3e26:c005:341b%7]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 20:29:01 +0000 From: Jagannathan Raman To: qemu-devel@nongnu.org Subject: [PATCH v20 06/20] multi-process: setup a machine object for remote device process Date: Tue, 19 Jan 2021 15:28:23 -0500 Message-Id: <696cb01059efb127949c475bf2234f8d74b79bf5.1611081587.git.jag.raman@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Originating-IP: [209.17.40.38] X-ClientProxiedBy: DM6PR01CA0007.prod.exchangelabs.com (2603:10b6:5:296::12) To BYAPR10MB2744.namprd10.prod.outlook.com (2603:10b6:a02:ae::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from jaraman-bur-1.us.oracle.com (209.17.40.38) by DM6PR01CA0007.prod.exchangelabs.com (2603:10b6:5:296::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Tue, 19 Jan 2021 20:28:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2dafabe0-221f-4076-6807-08d8bcb8db2a X-MS-TrafficTypeDiagnostic: BYAPR10MB3349: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1169; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tKUWp/lRhvjcT4L274Z63ppjAo2LLNyr1mdAWZsES0s4JO+q4N9tSYrEumi+JMZV12X3LO/AoGRhCtFyFMEhT4MOQCcFcTk0y273hayljUQHch7apJ80llfiCp5KEe4Sr69K5f3uQ3KtmfWjwVe26sO96hz5J54sGWxUXYP7X3Cmlckc+ykatDZnsWLXkzCEXPMBOOIsABkhV9EQZ91NpdVu0ReUb3S3L/C/0JTtCd6kqQJstiehlOJ2cnLnq9xJsIBkuN9vPsK27HLkYkorh6aDCE1b2+PBLwlWPtrEJq7Q+N9JGtKjIaoLLGSm7tSbQTVJqG1ZNbDj/YCSCNuxCmm0xzw6CknMZV8otoUo5uoU0bYx7+7lFOmheZKzo12YNRonleLQtqVeE9z9+qrh8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR10MB2744.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(396003)(366004)(136003)(346002)(376002)(7696005)(52116002)(2906002)(6486002)(5660300002)(7416002)(36756003)(66476007)(66556008)(478600001)(6916009)(956004)(2616005)(4326008)(66946007)(26005)(186003)(16526019)(8676002)(86362001)(8936002)(107886003)(316002)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?sRy78K/1Tg3FSGULv6+q7xN/xdCWUc?= =?utf-8?q?ewM654zprFJik4UTsa0Qi8HaHPowOB66duLEMTClMnuVjbtOw/b8JwuS/CPOzOP3N?= =?utf-8?q?opLR32itfKkcXHA7NgCzU1HgA2maIKECOWSA8ofPOLWKjP8Uek9k64Ic7awqIJmoN?= =?utf-8?q?5pCH+ZfI1/QGWyuFFxRoBDg5hE21j+5+RPhPbAHXtVIHQztKwDSxeZhaiQWryNgYM?= =?utf-8?q?IF5A2O7Uj55JgnkW2idBKo8TjiLAGOCYGf/ciipVy+Ko+Zfeu89mw9yUp+IY4ghP5?= =?utf-8?q?mFV1xTT31lOSI/jRgXfAFqk6j+h75Ddk0bICOEfLxec1n4BEO6Dxt06Q3Q71fAZNe?= =?utf-8?q?JLlna9vkPiBB7+EgLe72Dncmg8eU9M7W/jf1b+DdwJqX4RpUs2vM4USkjpQHXH55t?= =?utf-8?q?USNFP0ytK/ARDriNHtlFHpyllfydISmnkI+JwOSBROi/CjxsMcL87FmJDltILwvbY?= =?utf-8?q?gYlllfodkiRyN5mEeJl3sUEnLhJpLoCoZY0LjRvCabkQf03cvRENo4eixd3RZi7wo?= =?utf-8?q?2MnCj8mRy/sE2A6IhpWMJM0LX92GHJkdUgtfTkOIc+wnjIZssG9mZ0MEbL0VMNlJL?= =?utf-8?q?ZQlORY5v9QnFH8SgpJPZzNga55+jl8ukx6l4a8a2FVE5VkkwU5WdDRdbtLnnf+8c7?= =?utf-8?q?FdK+PXkC+h3Y4ub18071Fwmu3cOVwi/4+r52wMoFgwYddDoGe+0pWHKd4EHECAsyU?= =?utf-8?q?xwDvJl0s88yW+A9goLIeccTaPyEH+g+M7KGEaWJJ6gvEnbfrl//IA0HYKiWkwrpCd?= =?utf-8?q?HnHQgHyMXaUoVW3xLr1yfSO0YdNouedRnhpifolp9VJ5a1d8ZAIlhaaffDnJzzfJv?= =?utf-8?q?C1xGeJiBlLFJ4MMVwcoNAtOo9Siii8Y6oRFkqM31lNw6hctuoHchuChZLKqqh9I4J?= =?utf-8?q?ritWZcrk8cRic/eIGghBSjGQHsKfQeyV5bmDv83nLm/iZDTYIlzZHQZhWVOX6p4?= =?utf-8?q?=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dafabe0-221f-4076-6807-08d8bcb8db2a X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2744.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 20:29:01.3147 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o4Xkg2Sh/D1FGYoFR0y94djvv7FwzsATylNIS8wCmBwaIOTiTlwvQjXLLSykepikfvNSDG8BzsCw2xFBWUtyKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3349 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9869 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101190113 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9869 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 priorityscore=1501 spamscore=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101190113 Received-SPF: pass client-ip=156.151.31.86; envelope-from=jag.raman@oracle.com; helo=userp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: elena.ufimtseva@oracle.com, fam@euphon.net, swapnil.ingle@nutanix.com, john.g.johnson@oracle.com, kraxel@redhat.com, jag.raman@oracle.com, quintela@redhat.com, mst@redhat.com, armbru@redhat.com, kanth.ghatraju@oracle.com, felipe@nutanix.com, thuth@redhat.com, ehabkost@redhat.com, konrad.wilk@oracle.com, dgilbert@redhat.com, alex.williamson@redhat.com, stefanha@redhat.com, thanos.makatos@nutanix.com, kwolf@redhat.com, berrange@redhat.com, mreitz@redhat.com, ross.lagerwall@citrix.com, marcandre.lureau@gmail.com, pbonzini@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" x-remote-machine object sets up various subsystems of the remote device process. Instantiate PCI host bridge object and initialize RAM, IO & PCI memory regions. Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva Reviewed-by: Stefan Hajnoczi --- include/hw/pci-host/remote.h | 1 + include/hw/remote/machine.h | 27 +++++++++++++++++ hw/remote/machine.c | 70 ++++++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 2 ++ hw/meson.build | 1 + hw/remote/meson.build | 5 ++++ 6 files changed, 106 insertions(+) create mode 100644 include/hw/remote/machine.h create mode 100644 hw/remote/machine.c create mode 100644 hw/remote/meson.build diff --git a/include/hw/pci-host/remote.h b/include/hw/pci-host/remote.h index 06b8a83..3dcf6aa 100644 --- a/include/hw/pci-host/remote.h +++ b/include/hw/pci-host/remote.h @@ -24,6 +24,7 @@ struct RemotePCIHost { MemoryRegion *mr_pci_mem; MemoryRegion *mr_sys_io; + MemoryRegion *mr_sys_mem; }; #endif diff --git a/include/hw/remote/machine.h b/include/hw/remote/machine.h new file mode 100644 index 0000000..bdfbca4 --- /dev/null +++ b/include/hw/remote/machine.h @@ -0,0 +1,27 @@ +/* + * Remote machine configuration + * + * Copyright © 2018, 2021 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_MACHINE_H +#define REMOTE_MACHINE_H + +#include "qom/object.h" +#include "hw/boards.h" +#include "hw/pci-host/remote.h" + +struct RemoteMachineState { + MachineState parent_obj; + + RemotePCIHost *host; +}; + +#define TYPE_REMOTE_MACHINE "x-remote-machine" +OBJECT_DECLARE_SIMPLE_TYPE(RemoteMachineState, REMOTE_MACHINE) + +#endif diff --git a/hw/remote/machine.c b/hw/remote/machine.c new file mode 100644 index 0000000..9519a6c --- /dev/null +++ b/hw/remote/machine.c @@ -0,0 +1,70 @@ +/* + * Machine for remote device + * + * This machine type is used by the remote device process in multi-process + * QEMU. QEMU device models depend on parent busses, interrupt controllers, + * memory regions, etc. The remote machine type offers this environment so + * that QEMU device models can be used as remote devices. + * + * Copyright © 2018, 2021 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. + * + */ + +#include "qemu/osdep.h" +#include "qemu-common.h" + +#include "hw/remote/machine.h" +#include "exec/address-spaces.h" +#include "exec/memory.h" +#include "qapi/error.h" + +static void remote_machine_init(MachineState *machine) +{ + MemoryRegion *system_memory, *system_io, *pci_memory; + RemoteMachineState *s = REMOTE_MACHINE(machine); + RemotePCIHost *rem_host; + + system_memory = get_system_memory(); + system_io = get_system_io(); + + pci_memory = g_new(MemoryRegion, 1); + memory_region_init(pci_memory, NULL, "pci", UINT64_MAX); + + rem_host = REMOTE_PCIHOST(qdev_new(TYPE_REMOTE_PCIHOST)); + + rem_host->mr_pci_mem = pci_memory; + rem_host->mr_sys_mem = system_memory; + rem_host->mr_sys_io = system_io; + + s->host = rem_host; + + object_property_add_child(OBJECT(s), "remote-pcihost", OBJECT(rem_host)); + memory_region_add_subregion_overlap(system_memory, 0x0, pci_memory, -1); + + qdev_realize(DEVICE(rem_host), sysbus_get_default(), &error_fatal); +} + +static void remote_machine_class_init(ObjectClass *oc, void *data) +{ + MachineClass *mc = MACHINE_CLASS(oc); + + mc->init = remote_machine_init; + mc->desc = "Experimental remote machine"; +} + +static const TypeInfo remote_machine = { + .name = TYPE_REMOTE_MACHINE, + .parent = TYPE_MACHINE, + .instance_size = sizeof(RemoteMachineState), + .class_init = remote_machine_class_init, +}; + +static void remote_machine_register_types(void) +{ + type_register_static(&remote_machine); +} + +type_init(remote_machine_register_types); diff --git a/MAINTAINERS b/MAINTAINERS index db50cbf..3f01a02 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3191,6 +3191,8 @@ F: docs/devel/multi-process.rst F: docs/multi-process.rst F: hw/pci-host/remote.c F: include/hw/pci-host/remote.h +F: hw/remote/machine.c +F: include/hw/remote/machine.h Build and test automation ------------------------- diff --git a/hw/meson.build b/hw/meson.build index 010de72..e615d72 100644 --- a/hw/meson.build +++ b/hw/meson.build @@ -56,6 +56,7 @@ subdir('moxie') subdir('nios2') subdir('openrisc') subdir('ppc') +subdir('remote') subdir('riscv') subdir('rx') subdir('s390x') diff --git a/hw/remote/meson.build b/hw/remote/meson.build new file mode 100644 index 0000000..197b038 --- /dev/null +++ b/hw/remote/meson.build @@ -0,0 +1,5 @@ +remote_ss = ss.source_set() + +remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('machine.c')) + +softmmu_ss.add_all(when: 'CONFIG_MULTIPROCESS', if_true: remote_ss)