提交 c5c4f72a 编写于 作者: V Vipin Sharma 提交者: Sean Christopherson

KVM: selftests: Add missing break between -e and -g option in dirty_log_perf_test

Passing -e option (Run VCPUs while dirty logging is being disabled) in
dirty_log_perf_test also unintentionally enables -g (Do not enable
KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2). Add break between two switch case
logic.

Fixes: cfe12e64 ("KVM: selftests: Add an option to run vCPUs while disabling dirty logging")
Signed-off-by: NVipin Sharma <vipinsh@google.com>
Reviewed-by: NSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221103191719.1559407-2-vipinsh@google.comSigned-off-by: NSean Christopherson <seanjc@google.com>
上级 d663b8a2
...@@ -411,6 +411,7 @@ int main(int argc, char *argv[]) ...@@ -411,6 +411,7 @@ int main(int argc, char *argv[])
case 'e': case 'e':
/* 'e' is for evil. */ /* 'e' is for evil. */
run_vcpus_while_disabling_dirty_logging = true; run_vcpus_while_disabling_dirty_logging = true;
break;
case 'g': case 'g':
dirty_log_manual_caps = 0; dirty_log_manual_caps = 0;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册