From patchwork Tue Jan 19 20:28:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jag Raman X-Patchwork-Id: 12030727 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 C2D80C433DB for ; Tue, 19 Jan 2021 20:37:02 +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 23AC623107 for ; Tue, 19 Jan 2021 20:37:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23AC623107 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]:59114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1xkL-0001Qz-7i for qemu-devel@archiver.kernel.org; Tue, 19 Jan 2021 15:37:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1xd5-0001cE-W9 for qemu-devel@nongnu.org; Tue, 19 Jan 2021 15:29:32 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:58070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1xd3-0000IR-FM for qemu-devel@nongnu.org; Tue, 19 Jan 2021 15:29:31 -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 10JKNZBZ002868; Tue, 19 Jan 2021 20:29:22 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=QY5nIxO44go0zceRhgbLvvjkODdNL2qmvBtMCjdho/M=; b=UIoRLPcM5k0wfmK+lb10txFugf9RrNMv1F4ZG9+LPnY9tfuNY7N6y420BLHuRkAgEqJx es9WjCh14ZJ7mmVKq7Sa1HDvKvPEabK7jytKDoK8L8k7mlilRFWqzC9LYvKPGCvqsm78 XGfjHanH/dX63Cd7iuXHb+d7IuzV9xOyJYEo86WRb1qW6M6HupsQoYF89QqjWaBTD+KP zFXBrKRnAV8mLPTiGYHE91ii1w+f4q+IRnKe61g8TmIY7HeQLprFOaqT8ejzekZAzlYT 5orlvMf4u9ZwPD111pQUp9hD47IZDE1gee6IXBuLAolJ1+EEKdPfqEigtwfh9Yj4Som6 gg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 363xyhtate-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jan 2021 20:29:21 +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 10JKQbYD106679; Tue, 19 Jan 2021 20:29:21 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2051.outbound.protection.outlook.com [104.47.36.51]) by userp3020.oracle.com with ESMTP id 3661kht8c9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Jan 2021 20:29:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=egii90h5CGjvjGK6xmIaHWciGQbXK2WdSjnOy3LTzkn5O7UjS01WV80cp9xdDvzz8WIWodYydsYuFOSi3BXhdVe62kvOZhmfkeTTWhAKEzyDGFURsI9/fz+lH7U89O/r6tnUxsHZSdY64oxsFtAdWyPzTmOfJOaaMVEvwDD7Iur6zikoDmaM1ciLmuYlsX5aU6yjF6EVbHOu7LfVDvmhk2eEPIxqVN56jBW7zqBl++xeLOjYL4HErwYrZ3vG6toOrieh1xF8Wu6vWoa6Bik+z8O8urMpRokme9yxFjacjpKHQnvCMDZVA81Eik8ZjxpF5z5/MFVTDfaWP+Kvlsh4GQ== 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=QY5nIxO44go0zceRhgbLvvjkODdNL2qmvBtMCjdho/M=; b=fwq5KYCOW8muKtB0QcSq3MGK6e8/odfSq3IQIXg1zkTt5XNKeUhjVlX0CZ/CqWR/v3brVUzGtlxnqT3ShDRTzcZA5ghXy0hZ+uFPhRg/uTwNwCTGAc9waYCXjZhZ4VMmByFxrhC+2sbjsc1t97T/QdnqCsRG5AazlNN8o4lKrGMQuTn4bGPjUWawz16/baqjliPtjUFWCI9n4vDxdtdKrk0GsT9tbJt/MuHZFrquUHwvG4D814kGyWaJvLzKTelffWzTLCrREq01Js9tv8Sw/oHQBffJTwgXjFn1NKbxEnM7cB3hHsAJHMVYY9f0engPxXLS7nYcoJUbc+Etsw5smw== 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=QY5nIxO44go0zceRhgbLvvjkODdNL2qmvBtMCjdho/M=; b=zyU3T8EjJ2/yU7ujWfyjT2YiBk0UKGmtqs5XgPCBNhNCObKEgVnjmVKcUkWpi7x9CCwX7IWZJQ1BI0/OC1HFzypHc9KBaXYc78S4Dvh3f3ymet3xRfAeF50mqAIwm7JoDBsFSvqP1REWBltKu44lyjdSbAlahiXMCimpnjxVvxk= 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 BYAPR10MB3351.namprd10.prod.outlook.com (2603:10b6:a03:14d::16) 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:19 +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:19 +0000 From: Jagannathan Raman To: qemu-devel@nongnu.org Subject: [PATCH v20 12/20] multi-process: setup memory manager for remote device Date: Tue, 19 Jan 2021 15:28:29 -0500 Message-Id: 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:29:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3a1328a9-c7cd-4bab-0224-08d8bcb8e5ed X-MS-TrafficTypeDiagnostic: BYAPR10MB3351: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M883akLRhpeV/53VXDSvI5oZmdytEKHrf2L12ol1HN8YN+MKVp7VlXPQFce9fqdqSCJIj5tr6MnwtqB/PtB7DPF9UWZoBgdW+IKF9xe7+hTR/lbcGxC9HL5eM6edQz8agnV6s/QGaiNu0NqfZ3do/jffQRUrg8mFiv34anQQYEo0cPJiCIxL7xEl4hY/zDUZQqOP6vfQ7ewih23a/XzXj2HGxP9qz33fZirNM1JsXPeaIsm+sARSb4vnh3+hef1LX/Yb2ZTlN5xyhk8TtaGriiEWvhaC0+/6eK2b9dLcTKV7sgnIwOgqCcM6VubVpU/wAqV6tdvC9gz3jMHX+W1iiqpHoOMMoI8U54CjtcosHV84k9dcynQ+DxQcLJJ5FA7ieIEl1LkhOs2zyIGQ6J3P3kSTlHU07Ki9phoki7XR5LdGrYfI0aJh+3bYYiyoYlNRgDm+A1TNA+iPPeIQU03xGb7vgBIXLhnYiqrwbuXCQx0EHNgfzJMkwckIF4bsX6FjkwCQNpNURPQJHJt+nrzJxg== 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:(396003)(39860400002)(366004)(136003)(376002)(346002)(86362001)(2906002)(6666004)(6916009)(36756003)(4326008)(8676002)(52116002)(66476007)(66556008)(316002)(8936002)(66946007)(6486002)(107886003)(956004)(5660300002)(478600001)(7696005)(16526019)(26005)(186003)(7416002)(2616005)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?ZXWQDM/cqo73Qg8TLkD0nq0xAMDnF4?= =?utf-8?q?BdYUG99nTpxcn++RPt9V1fVXHCYGovEv/sxBJYBhy/QIHv8/fRtRcHYy8YWCuXhfa?= =?utf-8?q?bPbzIkk3G+A1URujIEOhqLRYFUgkqxvvPjX/sN1L70nxdgHC1W3FQNEJV/QjeM9iY?= =?utf-8?q?bZpihFxDlgQSjWDRfP8bViopbP2NiYeCBCQoLlIVAwvjgsr0ubDF7HzCPi5GBxleL?= =?utf-8?q?ZZ0LC8S1rNRnOaTNC1+LTsykWB6wcG6SbLg5vLVCmxUtoEGz5OdsfowAOHbjYOroT?= =?utf-8?q?Ere4Imy9dlT0cTs3siqn0vfsz/OUpgfoFQMzK+RS+0nwC5Hqyrt2CCZQUnxoMoRzQ?= =?utf-8?q?oFd9sdGedXDfPwuqFxe/lSDVboRbz4zxwMDPV6HCMQfBzik9OqTfSyVZR45o0yUC3?= =?utf-8?q?iGr0DFWZAILuiN0LwfpXoccep/U62Ch4sM+98itTEDp0/ob5tkvLmYEjf4XbHht5y?= =?utf-8?q?ZaG7NH7+g7EaLbS4i7ruUmj51b7RaMHYSzA/LW/xHVxZnUMWDJP6S9kL+XpF0ocPM?= =?utf-8?q?OOANlfYuEiyUkPSOuKyFCCalVQh1Toy3v4HNAh7szW8R7Q3bvnLEB90emnV9zeGvV?= =?utf-8?q?5cKukyFmhWw6sjad0FBJ5mqcI7ShYpTOKDSicINoddEBWAJrEO2GVhOVlGuQ11g44?= =?utf-8?q?PxNvAU/poAGnNxUoMKIAaRnFQYwN1YTXEnZ6fzW0mz8Wa0QIMFrpwgakEL4ucJXBh?= =?utf-8?q?f+9EIThrlOy5QWlhF7UjN9i//rIR3uYOqh7oeoYaqYiqUhIP77KucsRAdlKl+vxBu?= =?utf-8?q?u0H1PyXFickc5PsT41MFF92mDie5e/md1SfxzrTiSWISJs84F4xgLuLSbSY4MeqEc?= =?utf-8?q?69IMN/m0jLGYOqTR7aKKM64DqWLhkYvVMjYwaqd6EPX1xeSzNBBamxruPxQEajWBV?= =?utf-8?q?/tGObxdMHwOFysf2CvjyP3L+ZZx3t0iIZ09Pv8tA2hxE2t+vXrVVHkXlKafi+6k?= =?utf-8?q?=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a1328a9-c7cd-4bab-0224-08d8bcb8e5ed 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:19.2363 (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: z0yhGfHcf4FJHswzL2uDd5aIOWM95EjfiHNatp/r10fhqCwxlC8OQ1mb1MCW7e93JvaAv4a8vipm4c/9JcCkPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3351 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9869 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 bulkscore=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" SyncSysMemMsg message format is defined. It is used to send file descriptors of the RAM regions to remote device. RAM on the remote device is configured with a set of file descriptors. Old RAM regions are deleted and new regions, each with an fd, is added to the RAM. Signed-off-by: Jagannathan Raman Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Reviewed-by: Stefan Hajnoczi --- include/hw/remote/memory.h | 19 ++++++++++++ include/hw/remote/mpqemu-link.h | 10 +++++++ hw/remote/memory.c | 65 +++++++++++++++++++++++++++++++++++++++++ hw/remote/mpqemu-link.c | 11 +++++++ MAINTAINERS | 2 ++ hw/remote/meson.build | 2 ++ 6 files changed, 109 insertions(+) create mode 100644 include/hw/remote/memory.h create mode 100644 hw/remote/memory.c diff --git a/include/hw/remote/memory.h b/include/hw/remote/memory.h new file mode 100644 index 0000000..bc2e309 --- /dev/null +++ b/include/hw/remote/memory.h @@ -0,0 +1,19 @@ +/* + * Memory manager for remote device + * + * 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_MEMORY_H +#define REMOTE_MEMORY_H + +#include "exec/hwaddr.h" +#include "hw/remote/mpqemu-link.h" + +void remote_sysmem_reconfig(MPQemuMsg *msg, Error **errp); + +#endif diff --git a/include/hw/remote/mpqemu-link.h b/include/hw/remote/mpqemu-link.h index cac699c..6ee5bc5 100644 --- a/include/hw/remote/mpqemu-link.h +++ b/include/hw/remote/mpqemu-link.h @@ -14,6 +14,7 @@ #include "qom/object.h" #include "qemu/thread.h" #include "io/channel.h" +#include "exec/hwaddr.h" #define REMOTE_MAX_FDS 8 @@ -30,9 +31,16 @@ * */ typedef enum { + MPQEMU_CMD_SYNC_SYSMEM, MPQEMU_CMD_MAX, } MPQemuCmd; +typedef struct { + hwaddr gpas[REMOTE_MAX_FDS]; + uint64_t sizes[REMOTE_MAX_FDS]; + off_t offsets[REMOTE_MAX_FDS]; +} SyncSysmemMsg; + /** * MPQemuMsg: * @cmd: The remote command @@ -43,12 +51,14 @@ typedef enum { * MPQemuMsg Format of the message sent to the remote device from QEMU. * */ + typedef struct { int cmd; size_t size; union { uint64_t u64; + SyncSysmemMsg sync_sysmem; } data; int fds[REMOTE_MAX_FDS]; diff --git a/hw/remote/memory.c b/hw/remote/memory.c new file mode 100644 index 0000000..32085b1 --- /dev/null +++ b/hw/remote/memory.c @@ -0,0 +1,65 @@ +/* + * Memory manager for remote device + * + * 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/memory.h" +#include "exec/address-spaces.h" +#include "exec/ram_addr.h" +#include "qapi/error.h" + +static void remote_sysmem_reset(void) +{ + MemoryRegion *sysmem, *subregion, *next; + + sysmem = get_system_memory(); + + QTAILQ_FOREACH_SAFE(subregion, &sysmem->subregions, subregions_link, next) { + if (subregion->ram) { + memory_region_del_subregion(sysmem, subregion); + object_unparent(OBJECT(subregion)); + } + } +} + +void remote_sysmem_reconfig(MPQemuMsg *msg, Error **errp) +{ + ERRP_GUARD(); + SyncSysmemMsg *sysmem_info = &msg->data.sync_sysmem; + MemoryRegion *sysmem, *subregion; + static unsigned int suffix; + int region; + + sysmem = get_system_memory(); + + remote_sysmem_reset(); + + for (region = 0; region < msg->num_fds; region++) { + g_autofree char *name; + subregion = g_new(MemoryRegion, 1); + name = g_strdup_printf("remote-mem-%u", suffix++); + memory_region_init_ram_from_fd(subregion, NULL, + name, sysmem_info->sizes[region], + true, msg->fds[region], + sysmem_info->offsets[region], + errp); + + if (*errp) { + g_free(subregion); + remote_sysmem_reset(); + return; + } + + memory_region_add_subregion(sysmem, sysmem_info->gpas[region], + subregion); + + } +} diff --git a/hw/remote/mpqemu-link.c b/hw/remote/mpqemu-link.c index b3d380e..4b25649 100644 --- a/hw/remote/mpqemu-link.c +++ b/hw/remote/mpqemu-link.c @@ -201,5 +201,16 @@ bool mpqemu_msg_valid(MPQemuMsg *msg) } } + /* Verify message specific fields. */ + switch (msg->cmd) { + case MPQEMU_CMD_SYNC_SYSMEM: + if (msg->num_fds == 0 || msg->size != sizeof(SyncSysmemMsg)) { + return false; + } + break; + default: + break; + } + return true; } diff --git a/MAINTAINERS b/MAINTAINERS index 6e60215..27216b3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3197,6 +3197,8 @@ F: hw/remote/mpqemu-link.c F: include/hw/remote/mpqemu-link.h F: hw/remote/message.c F: hw/remote/remote-obj.c +F: include/hw/remote/memory.h +F: hw/remote/memory.c Build and test automation ------------------------- diff --git a/hw/remote/meson.build b/hw/remote/meson.build index 71d0a56..64da16c 100644 --- a/hw/remote/meson.build +++ b/hw/remote/meson.build @@ -5,4 +5,6 @@ remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('mpqemu-link.c')) remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('message.c')) remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('remote-obj.c')) +specific_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('memory.c')) + softmmu_ss.add_all(when: 'CONFIG_MULTIPROCESS', if_true: remote_ss)