From patchwork Fri Jan 29 16:46:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jag Raman X-Patchwork-Id: 12056089 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 E8EC3C433DB for ; Fri, 29 Jan 2021 17:02:39 +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 5D82360234 for ; Fri, 29 Jan 2021 17:02:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D82360234 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]:56440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5XAM-00016d-8t for qemu-devel@archiver.kernel.org; Fri, 29 Jan 2021 12:02:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5WvR-0007EF-HT for qemu-devel@nongnu.org; Fri, 29 Jan 2021 11:47:15 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:56566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5WvE-0005ii-3e for qemu-devel@nongnu.org; Fri, 29 Jan 2021 11:47:09 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10TGPJ1V181282; Fri, 29 Jan 2021 16:46:47 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=b6xReGZmaxY8ncA/p520i8jAE7csSnpeABAwQ0CTshU=; b=PJfsRslZoqIYFN8WpIY8+KpqPeBpcWzI0PzbnQKWJ+4Uhs6+wdgXe0wvhTSXvEBM/akf R6w5c1ioNbX+Eqru9cenEY/fSXbm4jL+0OevselFuK2Ug1x3/lT27PE7qHO98Kz+pQcB S7uyb+pcfWB+d5RRWCnLpp6qnJ3tPAL1/4baL1OHrEgfMx6JrxxAZg9jg8B9x/cTQJ3U SmZASqjO5LF4YaRk0XH+PwKvbsYENrH/hJoNib/wRAHb8LcBR1+Q/SCkIirK+LbDmb6V S4t717ocgdE9O1SbYjdtHN11qwK6n+UUHAOCgBQrQAp9EecoSjnNV0If3kUh0UwevEJk dw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 3689ab2dw0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Jan 2021 16:46:47 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10TGPtrr089727; Fri, 29 Jan 2021 16:46:46 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2102.outbound.protection.outlook.com [104.47.70.102]) by userp3020.oracle.com with ESMTP id 36ceugw35e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Jan 2021 16:46:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eb+6jyu3StKH5i1cofIpuZPfb1ZUpULskKFdj5jw5er8O0xKUdfD0BhvJcfPnPHsrS6TMB8m3lxl2K4xYh8aIFQpXvkWb7ZAa/7B75O+Gh39FGZI01B+sXGbOiPv+LIyR3uxmzi8G0BA/FwnCfiVT5/GkRgwG0hpBtYAFdihs9HofQuXgDcTzyXK026mMy3NnYpfvqjXmKQeQEAlLRl6Rtj1gYBytMUxBaOJZTcndQwJCoUFcGTZFWuW/Am1KlcmwXx5M8yUVheKCZBDnhbGGfviDmgGGHmYFnKidJDTDrLdJjlYRscEr/qlBbQNRqLJpUjmhKMO0tT1aE+ICEVSXw== 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=b6xReGZmaxY8ncA/p520i8jAE7csSnpeABAwQ0CTshU=; b=cuGZyUKjAE97eRYgmtEWYwR0eHyr2pZcE1yLrWwJbs4K/4w24kNCjvNfzvRjAuI+UG9yOYHADwe77tJ48/KkwEqCyMq9eRS8aztX+pMBShRjU8sixdZPSnPEhuTxz3PUKhp7T2fzJ2lgFHiClgc+ZA4OE9HfklZCwEPMjp4M7egrh6vd1lGMGha0jcC43RajiJCvaDnriq2AbBwL61wVUEWjZM99TJYRJBE3QrPbGYy6gdA9NuOb3lQ24b0O65jOn2l6p5A6l11xhht6SLnm3v07aY/BdqnonTi0J3mTgxOxHjgmnb3jrWczIPt7svDYa9C0tY8SMx04ufH/mW5Q1g== 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=b6xReGZmaxY8ncA/p520i8jAE7csSnpeABAwQ0CTshU=; b=Lez3WKjFMq8hEjNjNglGuFW676kIBnf95ULbY5cbQWkHHv+Y6QZcfUteg8r5XY/JO5O4RYZ5Rs5wiqrcd5yQ8xHVz+huRMyz9jXqqoatgsFCAzOcvQ4Yr7bdxXR0QOpPFRkRC7FsrKmfKWzNiNrqmttYXvFlEqCyojc9oYjxGjc= 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 SJ0PR10MB4686.namprd10.prod.outlook.com (2603:10b6:a03:2d7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Fri, 29 Jan 2021 16:46:43 +0000 Received: from BYAPR10MB2744.namprd10.prod.outlook.com ([fe80::74a8:e88d:b89e:bf2d]) by BYAPR10MB2744.namprd10.prod.outlook.com ([fe80::74a8:e88d:b89e:bf2d%4]) with mapi id 15.20.3805.020; Fri, 29 Jan 2021 16:46:43 +0000 From: Jagannathan Raman To: qemu-devel@nongnu.org Subject: [PATCH v21 06/20] multi-process: setup a machine object for remote device process Date: Fri, 29 Jan 2021 11:46:07 -0500 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Originating-IP: [209.17.40.45] X-ClientProxiedBy: BYAPR05CA0053.namprd05.prod.outlook.com (2603:10b6:a03:74::30) 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.45) by BYAPR05CA0053.namprd05.prod.outlook.com (2603:10b6:a03:74::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.8 via Frontend Transport; Fri, 29 Jan 2021 16:46:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c19e4e1-e032-4179-35ab-08d8c4757517 X-MS-TrafficTypeDiagnostic: SJ0PR10MB4686: 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: +xtxefbxArHO0DU1eEViF3qXY1TSfN3Ctp5AME69r3rK2rt5k8W2FLbXzNsbUY0Ko1ov4Ud7eP1uncYpYf9TWhvHBTMSMW8WkNdqrx3H2A4yujGmEH+5WKi9D1r18R0zmsG71VKNeXVBkjprg8z8o4KzGUoOWhNsZJYoOzTSvS8mdCFO3Dtw9m3XloHMicYg3qxHgOGu/iwjnn1ATlnMkjw4n77DK/g8aRfWBIwCC6SOCiHE3o4vn2558RvIBdPvnEL0yH94gng7L9bXfUdf0BB/7OZTsb33K8mbZUHsJuWBLJqQXPK+eRg+Rvf9libsGhIEPDoxmZJ2mBSpnG7Q5WFvwbTQDD0q64WqrMr7iDOYaOxPgkcOwdQo4lfCTW5Z0aP2UlMxvQodotugvvP3f5qerl28N6OIi+OFni0vYrcf5h9eXtD71hsnYtwytPtT+y02RJsbiCfk+mmXUP0tUZis9ddMcbP3JQS9Ybl9jq221UIGm00Daa4UaYfaqDEmlTakHcL9xdM/avFq1ZKC5Q== 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:(136003)(346002)(396003)(366004)(376002)(39860400002)(5660300002)(52116002)(478600001)(6916009)(7696005)(36756003)(4326008)(8676002)(316002)(66946007)(66476007)(66556008)(956004)(2616005)(26005)(2906002)(6486002)(107886003)(86362001)(8936002)(6666004)(7416002)(16526019)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?StOHiBE/LY235OpHGRjCfExdkhSoJV?= =?utf-8?q?nzu3QVyRmi5/fk9aBir4Iz21t1vG2zYQ7ebK5hvwdK30NtOXIN52hbFNRyRFhm3PI?= =?utf-8?q?8J8LDKYYLfA6c8ZTJExm+a0EX3cltVKzOIXMSNsq/+i4+BfEh04FXH+uQEhClSHpF?= =?utf-8?q?EJ3csOuxSKE8sgd4tSQyoXj0MeVoG43WlbooNaZD0jD6Zh9X/UPZnw3C4DtvgmyRb?= =?utf-8?q?NRW/l1vJ2nN+EaZhCkPTgwDuzCwuhkav2LBXzi9WNoR/PmmKhmh5fbkvYM/Fj3dUJ?= =?utf-8?q?KcC0Q+VRNhzSKGycgk9UPGTspreCb7PT/UD2Ms6S3RArN7RGFGHcw2cv4tZzOLk/q?= =?utf-8?q?Ls/d0kEWPaY35Uv6ebHvGHwPpcbbKdk9EplGjXwSu/h1KlMrLKO1pYwT4KkUvSZAb?= =?utf-8?q?4gUtLCySjdKavXtAbm1UPwz/Kq8uBkxMPmJr4h3B6D6eojoN0OyjGQcLatY34WE7W?= =?utf-8?q?mcM0uPZdfZ5JHeXTZvJI8QdOvTKhL8G69VKDoq2iCgg8Nlwci5anVaViAoCYtpSSG?= =?utf-8?q?kRvQWigp7fU2Xt547ybfD8A6vY+wDP73FvDQ5EuCUYKdNS+Xj3VNF87+tc9p64lHL?= =?utf-8?q?NsjFUmCaAJLkjCfx+Vo6xiqr5U7vf0lCcQeGFADLuAO/jeekk4Aj1NCQyLHWEcEGG?= =?utf-8?q?eqW+JBehuGFCPzqJnxX/klzvtKzL8S1EVkze8ubgDlJ33TNFzj6SLnW68/PYOOZRa?= =?utf-8?q?c8bnJY7DklW6jamuLRbDwxkzUt2LsHFfPGd9dIhMXFlYGbqEBoGt3XJPsPkUYGesx?= =?utf-8?q?rFkOFtSJOAd8XpgchRwBKYxMJ+2vegPcR4toiKzqR2Hy5C9TrOizte3qXYfcxJtJM?= =?utf-8?q?TcwxKS2OlxErJZ3B2VNvqnrQtxsRGe6aYhprQ/k9/7fioncteq17Cj7qXKrjBTePM?= =?utf-8?q?kulan+wFc6TCvTPJx0vq5yBLgF9iG1fcL+adfY+g46WaRWymaErMoxP/5vTKMQYpp?= =?utf-8?q?Y5GbOyqwsSfWEJ9BjHymtj6lt+VfP3cmHYF2DZYlFnVHbvmBCKTDc9tS2rYc5kl3Z?= =?utf-8?q?Cs6tfNPLgpgZMnyHz7?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c19e4e1-e032-4179-35ab-08d8c4757517 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2744.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2021 16:46:42.9886 (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: ID3v8CLBlpFNYJMI2abt2H7N86sWyod5F525q7nnzwKiwdFfD77asTmn3TsfNvE8KrbZske+a1jCkmwKpBgUzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4686 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9878 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101290081 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9878 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101290081 Received-SPF: pass client-ip=141.146.126.79; envelope-from=jag.raman@oracle.com; helo=aserp2130.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 49e81d1..5c032d4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3190,6 +3190,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)