From nobody Mon Feb 9 19:08:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=oracle.com ARC-Seal: i=1; a=rsa-sha256; t=1608270529; cv=none; d=zohomail.com; s=zohoarc; b=QGLQvA7Ghum41vi9DW35gA+ZPl9x/5crx9kRImNwbn0Pydh3nx7Y/wdlar849KGwQuuIB7qZYkTXguYa48Zq/lRm7MQpHlTfJA2p+52Qog325c4Vi0O3TTx2heI+39QdaFAPKnLwfbVHnGxH+j0/3BSdfnlGOYWlgVbMHANmYa8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608270529; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=EXjSV+6gYy9MAKGASrCpGN7WtD4i8ls4lidDVmJ5RiU=; b=Sx74Myt6MHoOaoxMO0P8DKTjpt4Qb3gnJEABDjXIkZ9k8/ykJTex3hmnyino++X+tBgHzAKUHsBN7l4LjFyyMciF1IG9FmNHxrfSXYRoT30ktmIP3s3XX3uOAdJtGhl66a+17Kt4msKry/ZVm5SIwCDlQShkZoxokkfU0+xcwwQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608270529263204.6477809196624; Thu, 17 Dec 2020 21:48:49 -0800 (PST) Received: from localhost ([::1]:34168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kq8dE-0006Bi-23 for importer@patchew.org; Fri, 18 Dec 2020 00:48:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq8Vv-0000BF-Fe for qemu-devel@nongnu.org; Fri, 18 Dec 2020 00:41:15 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:39340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq8Vt-0003sy-2g for qemu-devel@nongnu.org; Fri, 18 Dec 2020 00:41:14 -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 0BI5Y0qR147957; Fri, 18 Dec 2020 05:40:58 GMT Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 35ckcbrw3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Dec 2020 05:40:58 +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 0BI5ZJ0W042223; Fri, 18 Dec 2020 05:40:57 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 35g3rfptd2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Dec 2020 05:40:57 +0000 Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BI5etXv009755; Fri, 18 Dec 2020 05:40:55 GMT Received: from flaka.hsd1.ca.comcast.net (/67.180.143.163) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Dec 2020 21:40:54 -0800 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 : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=EXjSV+6gYy9MAKGASrCpGN7WtD4i8ls4lidDVmJ5RiU=; b=pgT4t702vggGTOqIlPwBipX791btUjb5fovb/lNf0VKUNa+4ilNNNJ52QTORgZZU+T+7 +/yMmBlf9gZIliaYjwkgO0E+9YgMYKg1X/xdUWqWzF0YY7MWW0d95VzI5RYTp2ivZJ3K VtBggJ+Yx/uys8Fi1EdYXh0NGkwVkQUCRdaIpCpkpTN0d6GGWcx4hDiahNUgObplgvlp zOpOqw0jrE0/ZpV/ro8aLdo0JhlnIW86dr/G2VZM8LBAq7A0D3t8NFS5ExfnzsdvzmFP kDJuGONcx613XgwrlTrYEHRMghaUFzMm6vcU2TcK8jRQcjpTc761zslVOpJkJ+3veVey 3A== From: elena.ufimtseva@oracle.com To: qemu-devel@nongnu.org Subject: [PATCH v14 RESEND 05/21] multi-process: Add config option for multi-process QEMU Date: Thu, 17 Dec 2020 21:40:35 -0800 Message-Id: <2d3d49762902c17d62d27f0c65cc3eb60611e3c8.1608263018.git.elena.ufimtseva@oracle.com> X-Mailer: git-send-email 2.25.GIT In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9838 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180040 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9838 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180040 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=141.146.126.79; envelope-from=elena.ufimtseva@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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Jagannathan Raman Add configuration options to enable or disable multiprocess QEMU code Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva Reviewed-by: Stefan Hajnoczi --- configure | 10 ++++++++++ meson.build | 2 ++ Kconfig.host | 4 ++++ hw/Kconfig | 1 + hw/remote/Kconfig | 3 +++ 5 files changed, 20 insertions(+) create mode 100644 hw/remote/Kconfig diff --git a/configure b/configure index c228f7c21e..9c14c482ac 100755 --- a/configure +++ b/configure @@ -451,6 +451,7 @@ skip_meson=3Dno gettext=3D"" fuse=3D"auto" fuse_lseek=3D"auto" +multiprocess=3D"no" =20 bogus_os=3D"no" malloc_trim=3D"auto" @@ -799,6 +800,7 @@ Linux) linux=3D"yes" linux_user=3D"yes" vhost_user=3D"yes" + multiprocess=3D"yes" ;; esac =20 @@ -1535,6 +1537,10 @@ for opt do ;; --disable-fuse-lseek) fuse_lseek=3D"disabled" ;; + --enable-multiprocess) multiprocess=3D"yes" + ;; + --disable-multiprocess) multiprocess=3D"no" + ;; *) echo "ERROR: unknown option $opt" echo "Try '$0 --help' for more information" @@ -1862,6 +1868,7 @@ disabled with --disable-FEATURE, default is enabled i= f available: libdaxctl libdaxctl support fuse FUSE block device export fuse-lseek SEEK_HOLE/SEEK_DATA support for FUSE exports + multiprocess Multiprocess QEMU support =20 NOTE: The object files are built at the place where configure is launched EOF @@ -6644,6 +6651,9 @@ fi if test "$have_mlockall" =3D "yes" ; then echo "HAVE_MLOCKALL=3Dy" >> $config_host_mak fi +if test "$multiprocess" =3D "yes" ; then + echo "CONFIG_MULTIPROCESS_ALLOWED=3Dy" >> $config_host_mak +fi if test "$fuzzing" =3D "yes" ; then # If LIB_FUZZING_ENGINE is set, assume we are running on OSS-Fuzz, and t= he # needed CFLAGS have already been provided diff --git a/meson.build b/meson.build index fba6413056..39df2337d3 100644 --- a/meson.build +++ b/meson.build @@ -925,6 +925,7 @@ kconfig_external_symbols =3D [ 'CONFIG_VIRTFS', 'CONFIG_LINUX', 'CONFIG_PVRDMA', + 'CONFIG_MULTIPROCESS_ALLOWED', ] ignored =3D [ 'TARGET_XML_FILES', 'TARGET_ABI_DIR', 'TARGET_ARCH' ] =20 @@ -2239,6 +2240,7 @@ summary_info +=3D {'rng-none': config_host.h= as_key('CONFIG_RNG_NONE')} summary_info +=3D {'Linux keyring': config_host.has_key('CONFIG_SECRET= _KEYRING')} summary_info +=3D {'FUSE exports': fuse.found()} summary_info +=3D {'FUSE lseek': fuse_lseek.found()} +summary_info +=3D {'Multiprocess QEMU': config_host.has_key('CONFIG_MULTIP= ROCESS_ALLOWED')} summary(summary_info, bool_yn: true) =20 if not supported_cpus.contains(cpu) diff --git a/Kconfig.host b/Kconfig.host index a9a55a9c31..24255ef441 100644 --- a/Kconfig.host +++ b/Kconfig.host @@ -37,3 +37,7 @@ config VIRTFS =20 config PVRDMA bool + +config MULTIPROCESS_ALLOWED + bool + imply MULTIPROCESS diff --git a/hw/Kconfig b/hw/Kconfig index 5ad3c6b5a4..525fb52506 100644 --- a/hw/Kconfig +++ b/hw/Kconfig @@ -27,6 +27,7 @@ source pci-host/Kconfig source pcmcia/Kconfig source pci/Kconfig source rdma/Kconfig +source remote/Kconfig source rtc/Kconfig source scsi/Kconfig source sd/Kconfig diff --git a/hw/remote/Kconfig b/hw/remote/Kconfig new file mode 100644 index 0000000000..54844467a0 --- /dev/null +++ b/hw/remote/Kconfig @@ -0,0 +1,3 @@ +config MULTIPROCESS + bool + depends on PCI && KVM --=20 2.25.GIT