diff mbox series

[v11,02/19] multi-process: Add config option for multi-process QEMU

Message ID acf32d0e54e0aec669723f2f1b64f87788b2c8b4.1602784930.git.jag.raman@oracle.com (mailing list archive)
State New, archived
Headers show
Series Initial support for multi-process Qemu | expand

Commit Message

Jag Raman Oct. 15, 2020, 6:04 p.m. UTC
Add a configuration option to separate multi-process code

Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 configure   | 10 ++++++++++
 meson.build |  1 +
 2 files changed, 11 insertions(+)

Comments

Philippe Mathieu-Daudé Oct. 23, 2020, 4:49 p.m. UTC | #1
On 10/15/20 8:04 PM, Jagannathan Raman wrote:
> Add a configuration option to separate multi-process code
> 
> Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
> Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
> Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
>   configure   | 10 ++++++++++
>   meson.build |  1 +
>   2 files changed, 11 insertions(+)
> 
> diff --git a/configure b/configure
> index f839c2a..2025e89 100755
> --- a/configure
> +++ b/configure
> @@ -447,6 +447,7 @@ meson=""
>   ninja=""
>   skip_meson=no
>   gettext=""
> +mpqemu="no"
>   
>   bogus_os="no"
>   malloc_trim="auto"
> @@ -1520,6 +1521,10 @@ for opt do
>     ;;
>     --disable-libdaxctl) libdaxctl=no
>     ;;
> +  --enable-mpqemu) mpqemu=yes
> +  ;;
> +  --disable-mpqemu) mpqemu=no
> +  ;;
>     *)
>         echo "ERROR: unknown option $opt"
>         echo "Try '$0 --help' for more information"
> @@ -1838,6 +1843,8 @@ disabled with --disable-FEATURE, default is enabled if available:
>     xkbcommon       xkbcommon support
>     rng-none        dummy RNG, avoid using /dev/(u)random and getrandom()
>     libdaxctl       libdaxctl support
> +  mpqemu          multi-process QEMU support

When I first heard about this, I was expecting something
else. It could be better named as "remote-device emulation"
or maybe "manifold (device) emulation" :) Anyway too late
I presume.
diff mbox series

Patch

diff --git a/configure b/configure
index f839c2a..2025e89 100755
--- a/configure
+++ b/configure
@@ -447,6 +447,7 @@  meson=""
 ninja=""
 skip_meson=no
 gettext=""
+mpqemu="no"
 
 bogus_os="no"
 malloc_trim="auto"
@@ -1520,6 +1521,10 @@  for opt do
   ;;
   --disable-libdaxctl) libdaxctl=no
   ;;
+  --enable-mpqemu) mpqemu=yes
+  ;;
+  --disable-mpqemu) mpqemu=no
+  ;;
   *)
       echo "ERROR: unknown option $opt"
       echo "Try '$0 --help' for more information"
@@ -1838,6 +1843,8 @@  disabled with --disable-FEATURE, default is enabled if available:
   xkbcommon       xkbcommon support
   rng-none        dummy RNG, avoid using /dev/(u)random and getrandom()
   libdaxctl       libdaxctl support
+  mpqemu          multi-process QEMU support
+
 
 NOTE: The object files are built at the place where configure is launched
 EOF
@@ -6737,6 +6744,9 @@  fi
 if test "$have_mlockall" = "yes" ; then
   echo "HAVE_MLOCKALL=y" >> $config_host_mak
 fi
+if test "$mpqemu" = "yes" ; then
+  echo "CONFIG_MPQEMU=y" >> $config_host_mak
+fi
 if test "$fuzzing" = "yes" ; then
   # If LIB_FUZZING_ENGINE is set, assume we are running on OSS-Fuzz, and the
   # needed CFLAGS have already been provided
diff --git a/meson.build b/meson.build
index 1a4a482..bbcf524 100644
--- a/meson.build
+++ b/meson.build
@@ -2091,6 +2091,7 @@  endif
 summary_info += {'thread sanitizer':  config_host.has_key('CONFIG_TSAN')}
 summary_info += {'rng-none':          config_host.has_key('CONFIG_RNG_NONE')}
 summary_info += {'Linux keyring':     config_host.has_key('CONFIG_SECRET_KEYRING')}
+summary_info += {'Multi-Process QEMU': config_host.has_key('CONFIG_MPQEMU')}
 summary(summary_info, bool_yn: true)
 
 if not supported_cpus.contains(cpu)