From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 E8EADC433FE for ; Fri, 4 Dec 2020 14:33:33 +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 5EF1222B2E for ; Fri, 4 Dec 2020 14:33:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5EF1222B2E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klC9M-00078J-4e for qemu-devel@archiver.kernel.org; Fri, 04 Dec 2020 09:33:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klC8A-0006Ea-M8 for qemu-devel@nongnu.org; Fri, 04 Dec 2020 09:32:18 -0500 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:44322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klC87-0006Px-D4 for qemu-devel@nongnu.org; Fri, 04 Dec 2020 09:32:18 -0500 Received: by mail-ej1-x641.google.com with SMTP id m19so8922877ejj.11 for ; Fri, 04 Dec 2020 06:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iFXEhQp7vCfKnBTdQx/bCFMrWiuckpBVJE3e3RqkaOw=; b=DGPTe+hg5Qz/K4Ilpvjxb0ttvFv84wTdmmai08TYaFF3uRd9ZYPFzTv25SAyXMc/Hx hqgcWYsMjlIxyD0L7wNBbBknAulYyugJLLHA7VjNVcQ69PR/ZP0mv9NDA5vdazdD3wmj ouNjQuuTzk/Va2gVvVZ5xt+6g1tOyECk8FQ5G5JIQAWVSZeak61dJtd9K0oHBL7K92mb Z54S+OD3+r7RzjeazUFrQIF4V39An55pOlL+1VT4Pt1cDMOFTb6b0hFZltGZGcYoAgQ2 rn1sbnRxpxYyf2ZRt1tMeBFfvc48qviwMejFV3rF2UiEyCnY7fqWYuUll5CECe+klZaT 1Fog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iFXEhQp7vCfKnBTdQx/bCFMrWiuckpBVJE3e3RqkaOw=; b=LipeYRfGWWRqrirpgfaMfGuNt63mRh+Pna6ZW7lFWgLCidcB4m/SlcEG/+J1G8cc+X hWaoGfQhGJyCu4eKovCHcXCG32xlqomyj60vC/WXn2eVua/3bWJfNFxwgSizOzhEa9Cz 4uKbP8DqfUxzEjAx5EA3+qE/E7pHUc48jCsb+kJ9frIN30EnJw2ZNtEaLq4YwlRUWWVY wOsWZv9PTIgOWGr16L+B47HWHNRM3EtZpm0atlPmy1vA1ZLW2MA4kIgKu+QjPlGkjX+Z sMIfKOtvTkTHdcoQGRvaoxvQBZut/ynljH8Uksn8CBAQeHF+ZlpSA5zyV7FfNWaLqY8N 9ntA== X-Gm-Message-State: AOAM532sxx+2D1KtMJpC1b35XVBh9T+L/BaAz2Nl7p/hB9KUkuL7qCYE brj0emlQ4zvcWcWsJiN9uFYZ+V6HJJE9sMzLjD8= X-Google-Smtp-Source: ABdhPJybGJgfhjCnZfmkMOzLLgnflMTpxWk/Yy67cRMQJxBiXue+BkkDaJwodxnRk7dSzQTlS7CYWrNrNjP+axdVRJI= X-Received: by 2002:a17:906:385b:: with SMTP id w27mr7385295ejc.109.1607092333691; Fri, 04 Dec 2020 06:32:13 -0800 (PST) MIME-Version: 1.0 References: <52599a1edb0edfab0753688e3bf8544e036da441.1606853298.git.jag.raman@oracle.com> In-Reply-To: <52599a1edb0edfab0753688e3bf8544e036da441.1606853298.git.jag.raman@oracle.com> From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Date: Fri, 4 Dec 2020 18:32:01 +0400 Message-ID: Subject: Re: [PATCH v12 05/19] multi-process: setup PCI host bridge for remote device To: Jagannathan Raman Content-Type: multipart/alternative; boundary="000000000000abc80b05b5a457ba" Received-SPF: pass client-ip=2a00:1450:4864:20::641; envelope-from=marcandre.lureau@gmail.com; helo=mail-ej1-x641.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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 , Fam Zheng , Swapnil Ingle , John G Johnson , QEMU , Gerd Hoffmann , Juan Quintela , "Michael S. Tsirkin" , Markus Armbruster , Kanth Ghatraju , Felipe Franciosi , Thomas Huth , Eduardo Habkost , Konrad Rzeszutek Wilk , "Dr. David Alan Gilbert" , Alex Williamson , Stefan Hajnoczi , Thanos Makatos , Richard Henderson , Kevin Wolf , "Daniel P. Berrange" , Max Reitz , Ross Lagerwall , Paolo Bonzini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000abc80b05b5a457ba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 2, 2020 at 12:23 AM Jagannathan Raman wrote: > PCI host bridge is setup for the remote device process. It is > implemented using remote-pcihost object. It is an extension of the PCI > host bridge setup by QEMU. > Remote-pcihost configures a PCI bus which could be used by the remote > PCI device to latch on to. > > Signed-off-by: Jagannathan Raman > Signed-off-by: John G Johnson > Signed-off-by: Elena Ufimtseva > Reviewed-by: Stefan Hajnoczi > --- > include/hw/pci-host/remote.h | 30 ++++++++++++++++++ > hw/pci-host/remote.c | 75 > ++++++++++++++++++++++++++++++++++++++++++++ > MAINTAINERS | 2 ++ > hw/pci-host/Kconfig | 3 ++ > hw/pci-host/meson.build | 1 + > hw/remote/Kconfig | 1 + > 6 files changed, 112 insertions(+) > create mode 100644 include/hw/pci-host/remote.h > create mode 100644 hw/pci-host/remote.c > > diff --git a/include/hw/pci-host/remote.h b/include/hw/pci-host/remote.h > new file mode 100644 > index 0000000..bab6d3c > --- /dev/null > +++ b/include/hw/pci-host/remote.h > @@ -0,0 +1,30 @@ > +/* > + * PCI Host for remote device > + * > + * Copyright =C2=A9 2018, 2020 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_PCIHOST_H > +#define REMOTE_PCIHOST_H > + > +#include "exec/memory.h" > +#include "hw/pci/pcie_host.h" > + > +#define TYPE_REMOTE_HOST_DEVICE "remote-pcihost" > I got confused by the following patch. Please try to be consistent. TYPE_REMOTE_PCIHOST would help. thanks +#define REMOTE_HOST_DEVICE(obj) \ > + OBJECT_CHECK(RemotePCIHost, (obj), TYPE_REMOTE_HOST_DEVICE) > REMOTE_PCIHOST + > +typedef struct RemotePCIHost { > + /*< private >*/ > + PCIExpressHost parent_obj; > + /*< public >*/ > + > + MemoryRegion *mr_pci_mem; > + MemoryRegion *mr_sys_io; > +} RemotePCIHost; > + > +#endif > diff --git a/hw/pci-host/remote.c b/hw/pci-host/remote.c > new file mode 100644 > index 0000000..11325e2 > --- /dev/null > +++ b/hw/pci-host/remote.c > @@ -0,0 +1,75 @@ > +/* > + * Remote PCI host device > + * > + * Unlike PCI host devices that model physical hardware, the purpose > + * of this PCI host is to host multi-process QEMU devices. > + * > + * Multi-process QEMU extends the PCI host of a QEMU machine into a > + * remote process. Any PCI device attached to the remote process is > + * visible in the QEMU guest. This allows existing QEMU device models > + * to be reused in the remote process. > + * > + * This PCI host is purely a container for PCI devices. It's fake in the > + * sense that the guest never sees this PCI host and has no way of > + * accessing it. Its job is just to provide the environment that QEMU > + * PCI device models need when running in a remote process. > + * > + * Copyright =C2=A9 2018, 2020 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/pci/pci.h" > +#include "hw/pci/pci_host.h" > +#include "hw/pci/pcie_host.h" > +#include "hw/qdev-properties.h" > +#include "hw/pci-host/remote.h" > +#include "exec/memory.h" > + > +static const char *remote_pcihost_root_bus_path(PCIHostState *host_bridg= e, > + PCIBus *rootbus) > +{ > + return "0000:00"; > +} > + > +static void remote_pcihost_realize(DeviceState *dev, Error **errp) > +{ > + PCIHostState *pci =3D PCI_HOST_BRIDGE(dev); > + RemotePCIHost *s =3D REMOTE_HOST_DEVICE(dev); > + > + pci->bus =3D pci_root_bus_new(DEVICE(s), "remote-pci", > + s->mr_pci_mem, s->mr_sys_io, > + 0, TYPE_PCIE_BUS); > +} > + > +static void remote_pcihost_class_init(ObjectClass *klass, void *data) > +{ > + DeviceClass *dc =3D DEVICE_CLASS(klass); > + PCIHostBridgeClass *hc =3D PCI_HOST_BRIDGE_CLASS(klass); > + > + hc->root_bus_path =3D remote_pcihost_root_bus_path; > + dc->realize =3D remote_pcihost_realize; > + > + dc->user_creatable =3D false; > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > + dc->fw_name =3D "pci"; > +} > + > +static const TypeInfo remote_pcihost_info =3D { > + .name =3D TYPE_REMOTE_HOST_DEVICE, > + .parent =3D TYPE_PCIE_HOST_BRIDGE, > + .instance_size =3D sizeof(RemotePCIHost), > + .class_init =3D remote_pcihost_class_init, > +}; > + > +static void remote_pcihost_register(void) > +{ > + type_register_static(&remote_pcihost_info); > +} > + > +type_init(remote_pcihost_register) > diff --git a/MAINTAINERS b/MAINTAINERS > index f615ad1..4515476 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3137,6 +3137,8 @@ M: John G Johnson > S: Maintained > F: docs/devel/multi-process.rst > F: tests/multiprocess/multiprocess-lsi53c895a.py > +F: hw/pci-host/remote.c > +F: include/hw/pci-host/remote.h > > Build and test automation > ------------------------- > diff --git a/hw/pci-host/Kconfig b/hw/pci-host/Kconfig > index 036a618..25cdeb2 100644 > --- a/hw/pci-host/Kconfig > +++ b/hw/pci-host/Kconfig > @@ -60,3 +60,6 @@ config PCI_BONITO > select PCI > select UNIMP > bool > + > +config MULTIPROCESS_HOST > + bool > diff --git a/hw/pci-host/meson.build b/hw/pci-host/meson.build > index e6d1b89..4147100 100644 > --- a/hw/pci-host/meson.build > +++ b/hw/pci-host/meson.build > @@ -9,6 +9,7 @@ pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: > files('xilinx-pcie.c')) > pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c')) > pci_ss.add(when: 'CONFIG_PCI_SABRE', if_true: files('sabre.c')) > pci_ss.add(when: 'CONFIG_XEN_IGD_PASSTHROUGH', if_true: > files('xen_igd_pt.c')) > +pci_ss.add(when: 'CONFIG_MULTIPROCESS_HOST', if_true: files('remote.c')) > > # PPC devices > pci_ss.add(when: 'CONFIG_PREP_PCI', if_true: files('prep.c')) > diff --git a/hw/remote/Kconfig b/hw/remote/Kconfig > index 5484446..fb6ee4a 100644 > --- a/hw/remote/Kconfig > +++ b/hw/remote/Kconfig > @@ -1,3 +1,4 @@ > config MULTIPROCESS > bool > depends on PCI && KVM > + select MULTIPROCESS_HOST > -- > 1.8.3.1 > > --=20 Marc-Andr=C3=A9 Lureau --000000000000abc80b05b5a457ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Dec 2, 2020 at 12:23 AM Jagan= nathan Raman <jag.raman@oracle.c= om> wrote:
jag.raman@oracle.com>
Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
---
=C2=A0include/hw/pci-host/remote.h | 30 ++++++++++++++++++
=C2=A0hw/pci-host/remote.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 75 ++++++++++= ++++++++++++++++++++++++++++++++++
=C2=A0MAINTAINERS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 |=C2=A0 2 ++
=C2=A0hw/pci-host/Kconfig=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 3 ++ =C2=A0hw/pci-host/meson.build=C2=A0 =C2=A0 =C2=A0 |=C2=A0 1 +
=C2=A0hw/remote/Kconfig=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 1 = +
=C2=A06 files changed, 112 insertions(+)
=C2=A0create mode 100644 include/hw/pci-host/remote.h
=C2=A0create mode 100644 hw/pci-host/remote.c

diff --git a/include/hw/pci-host/remote.h b/include/hw/pci-host/remote.h new file mode 100644
index 0000000..bab6d3c
--- /dev/null
+++ b/include/hw/pci-host/remote.h
@@ -0,0 +1,30 @@
+/*
+ * PCI Host for remote device
+ *
+ * Copyright =C2=A9 2018, 2020 Oracle and/or its affiliates.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or late= r.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#ifndef REMOTE_PCIHOST_H
+#define REMOTE_PCIHOST_H
+
+#include "exec/memory.h"
+#include "hw/pci/pcie_host.h"
+
+#define TYPE_REMOTE_HOST_DEVICE "remote-pcihost"

I got confused by the following patch. Please try to b= e consistent.

TYPE_REMOTE_PCIHOST would help.

thanks

+#define REMOTE_HOST_DEVICE(obj) \
+=C2=A0 =C2=A0 OBJECT_CHECK(RemotePCIHost, (obj), TYPE_REMOTE_HOST_DEVICE)<= br>

REMOTE_PCIHOST

+
+typedef struct RemotePCIHost {
+=C2=A0 =C2=A0 /*< private >*/
+=C2=A0 =C2=A0 PCIExpressHost parent_obj;
+=C2=A0 =C2=A0 /*< public >*/
+
+=C2=A0 =C2=A0 MemoryRegion *mr_pci_mem;
+=C2=A0 =C2=A0 MemoryRegion *mr_sys_io;
+} RemotePCIHost;
+
+#endif
diff --git a/hw/pci-host/remote.c b/hw/pci-host/remote.c
new file mode 100644
index 0000000..11325e2
--- /dev/null
+++ b/hw/pci-host/remote.c
@@ -0,0 +1,75 @@
+/*
+ * Remote PCI host device
+ *
+ * Unlike PCI host devices that model physical hardware, the purpose
+ * of this PCI host is to host multi-process QEMU devices.
+ *
+ * Multi-process QEMU extends the PCI host of a QEMU machine into a
+ * remote process. Any PCI device attached to the remote process is
+ * visible in the QEMU guest. This allows existing QEMU device models
+ * to be reused in the remote process.
+ *
+ * This PCI host is purely a container for PCI devices. It's fake in t= he
+ * sense that the guest never sees this PCI host and has no way of
+ * accessing it. Its job is just to provide the environment that QEMU
+ * PCI device models need when running in a remote process.
+ *
+ * Copyright =C2=A9 2018, 2020 Oracle and/or its affiliates.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or late= r.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+#include "qemu/osdep.h"
+#include "qemu-common.h"
+
+#include "hw/pci/pci.h"
+#include "hw/pci/pci_host.h"
+#include "hw/pci/pcie_host.h"
+#include "hw/qdev-properties.h"
+#include "hw/pci-host/remote.h"
+#include "exec/memory.h"
+
+static const char *remote_pcihost_root_bus_path(PCIHostState *host_bridge,=
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 PCIBus *rootbus)
+{
+=C2=A0 =C2=A0 return "0000:00";
+}
+
+static void remote_pcihost_realize(DeviceState *dev, Error **errp)
+{
+=C2=A0 =C2=A0 PCIHostState *pci =3D PCI_HOST_BRIDGE(dev);
+=C2=A0 =C2=A0 RemotePCIHost *s =3D REMOTE_HOST_DEVICE(dev);
+
+=C2=A0 =C2=A0 pci->bus =3D pci_root_bus_new(DEVICE(s), "remote-pci= ",
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 s->mr_pci_mem, s->mr_sys_io, +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0, TYPE_PCIE_BUS);
+}
+
+static void remote_pcihost_class_init(ObjectClass *klass, void *data)
+{
+=C2=A0 =C2=A0 DeviceClass *dc =3D DEVICE_CLASS(klass);
+=C2=A0 =C2=A0 PCIHostBridgeClass *hc =3D PCI_HOST_BRIDGE_CLASS(klass);
+
+=C2=A0 =C2=A0 hc->root_bus_path =3D remote_pcihost_root_bus_path;
+=C2=A0 =C2=A0 dc->realize =3D remote_pcihost_realize;
+
+=C2=A0 =C2=A0 dc->user_creatable =3D false;
+=C2=A0 =C2=A0 set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
+=C2=A0 =C2=A0 dc->fw_name =3D "pci";
+}
+
+static const TypeInfo remote_pcihost_info =3D {
+=C2=A0 =C2=A0 .name =3D TYPE_REMOTE_HOST_DEVICE,
+=C2=A0 =C2=A0 .parent =3D TYPE_PCIE_HOST_BRIDGE,
+=C2=A0 =C2=A0 .instance_size =3D sizeof(RemotePCIHost),
+=C2=A0 =C2=A0 .class_init =3D remote_pcihost_class_init,
+};
+
+static void remote_pcihost_register(void)
+{
+=C2=A0 =C2=A0 type_register_static(&remote_pcihost_info);
+}
+
+type_init(remote_pcihost_register)
diff --git a/MAINTAINERS b/MAINTAINERS
index f615ad1..4515476 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3137,6 +3137,8 @@ M: John G Johnson <john.g.johnson@oracle.com>
=C2=A0S: Maintained
=C2=A0F: docs/devel/multi-process.rst
=C2=A0F: tests/multiprocess/multiprocess-lsi53c895a.py
+F: hw/pci-host/remote.c
+F: include/hw/pci-host/remote.h

=C2=A0Build and test automation
=C2=A0-------------------------
diff --git a/hw/pci-host/Kconfig b/hw/pci-host/Kconfig
index 036a618..25cdeb2 100644
--- a/hw/pci-host/Kconfig
+++ b/hw/pci-host/Kconfig
@@ -60,3 +60,6 @@ config PCI_BONITO
=C2=A0 =C2=A0 =C2=A0select PCI
=C2=A0 =C2=A0 =C2=A0select UNIMP
=C2=A0 =C2=A0 =C2=A0bool
+
+config MULTIPROCESS_HOST
+=C2=A0 =C2=A0 bool
diff --git a/hw/pci-host/meson.build b/hw/pci-host/meson.build
index e6d1b89..4147100 100644
--- a/hw/pci-host/meson.build
+++ b/hw/pci-host/meson.build
@@ -9,6 +9,7 @@ pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_tr= ue: files('xilinx-pcie.c'))
=C2=A0pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i44= 0fx.c'))
=C2=A0pci_ss.add(when: 'CONFIG_PCI_SABRE', if_true: files('sabr= e.c'))
=C2=A0pci_ss.add(when: 'CONFIG_XEN_IGD_PASSTHROUGH', if_true: files= ('xen_igd_pt.c'))
+pci_ss.add(when: 'CONFIG_MULTIPROCESS_HOST', if_true: files('r= emote.c'))

=C2=A0# PPC devices
=C2=A0pci_ss.add(when: 'CONFIG_PREP_PCI', if_true: files('prep.= c'))
diff --git a/hw/remote/Kconfig b/hw/remote/Kconfig
index 5484446..fb6ee4a 100644
--- a/hw/remote/Kconfig
+++ b/hw/remote/Kconfig
@@ -1,3 +1,4 @@
=C2=A0config MULTIPROCESS
=C2=A0 =C2=A0 =C2=A0bool
=C2=A0 =C2=A0 =C2=A0depends on PCI && KVM
+=C2=A0 =C2=A0 select MULTIPROCESS_HOST
--
1.8.3.1



--
Marc-Andr=C3=A9 Lureau
--000000000000abc80b05b5a457ba--