diff mbox series

[v2,14/15] hmp: Expose manual_dirty_log_protect via "info kvm"

Message ID 20190520030839.6795-15-peterx@redhat.com
State New
Headers show
Series kvm/migration: support KVM_CLEAR_DIRTY_LOG | expand

Commit Message

Peter Xu May 20, 2019, 3:08 a.m. UTC
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 hmp.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Paolo Bonzini May 20, 2019, 10:44 a.m. UTC | #1
On 20/05/19 05:08, Peter Xu wrote:
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
>  hmp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hmp.c b/hmp.c
> index 56a3ed7375..f203a25740 100644
> --- a/hmp.c
> +++ b/hmp.c
> @@ -102,6 +102,8 @@ void hmp_info_kvm(Monitor *mon, const QDict *qdict)
>      } else {
>          monitor_printf(mon, "not compiled\n");
>      }
> +    monitor_printf(mon, "kvm manual dirty logging: %s\n",
> +                   info->manual_dirty_log_protect ? "enabled" : "disabled");
>  
>      qapi_free_KvmInfo(info);
>  }
> 

Same here of course.

Paolo
diff mbox series

Patch

diff --git a/hmp.c b/hmp.c
index 56a3ed7375..f203a25740 100644
--- a/hmp.c
+++ b/hmp.c
@@ -102,6 +102,8 @@  void hmp_info_kvm(Monitor *mon, const QDict *qdict)
     } else {
         monitor_printf(mon, "not compiled\n");
     }
+    monitor_printf(mon, "kvm manual dirty logging: %s\n",
+                   info->manual_dirty_log_protect ? "enabled" : "disabled");
 
     qapi_free_KvmInfo(info);
 }