This patch allows CONFIG_DEBUG_KVM to be defined when passing an option to the configure script. Signed-off-by: AlexChen <alex.chen@xxxxxxxxxx> --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index e6754c1e87..2cdef5be4c 100755 --- a/configure +++ b/configure @@ -338,6 +338,7 @@ pvrdma="" gprof="no" debug_tcg="no" debug="no" +debug_kvm="no" sanitizers="no" tsan="no" fortify_source="" @@ -1022,11 +1023,16 @@ for opt do ;; --disable-debug-tcg) debug_tcg="no" ;; + --enable-debug-kvm) debug_kvm="yes" + ;; + --disable-debug-kvm) debug_kvm="no" + ;; --enable-debug) # Enable debugging options that aren't excessively noisy debug_tcg="yes" debug_mutex="yes" debug="yes" + debug_kvm="yes" strip_opt="no" fortify_source="no" ;; @@ -1735,6 +1741,7 @@ disabled with --disable-FEATURE, default is enabled if available: module-upgrades try to load modules from alternate paths for upgrades debug-tcg TCG debugging (default is disabled) debug-info debugging information + debug-kvm KVM debugging support (default is disabled) sparse sparse checker safe-stack SafeStack Stack Smash Protection. Depends on clang/llvm >= 3.7 and requires coroutine backend ucontext. @@ -5929,6 +5936,9 @@ fi if test "$debug_tcg" = "yes" ; then echo "CONFIG_DEBUG_TCG=y" >> $config_host_mak fi +if test "$debug_kvm" = "yes" ; then + echo "CONFIG_DEBUG_KVM=y" >> $config_host_mak +fi if test "$strip_opt" = "yes" ; then echo "STRIP=${strip}" >> $config_host_mak fi -- 2.19.1