vl.c: Improve warnings on use of deprecated options
Simplify warnings about deprecated options by rewriting them as
"warning: ignoring deprecated option".
Reword -no-kvm-pit-reinjection deprecation warning.
Suggested-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1446217682-24421-10-git-send-email-ehabkost@redhat.com>
[Squashed in
Message-Id: <1446217682-24421-11-git-send-email-ehabkost@redhat.com>
and updated commit message]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
diff --git a/vl.c b/vl.c
index 2d48e22..e2999c9 100644
--- a/vl.c
+++ b/vl.c
@@ -3657,8 +3657,7 @@
qemu_opts_parse_noisily(olist, "accel=tcg", false);
break;
case QEMU_OPTION_no_kvm_pit: {
- error_report("warning: KVM PIT can no longer be disabled "
- "separately");
+ error_report("warning: ignoring deprecated option");
break;
}
case QEMU_OPTION_no_kvm_pit_reinjection: {
@@ -3671,8 +3670,8 @@
{ /* end of list */ }
};
- error_report("warning: option deprecated, use "
- "lost_tick_policy property of kvm-pit instead");
+ error_report("warning: deprecated, replaced by "
+ "-global kvm-pit.lost_tick_policy=discard");
qdev_prop_register_global_list(kvm_pit_lost_tick_policy);
break;
}
@@ -3795,8 +3794,7 @@
}
break;
case QEMU_OPTION_tdf:
- error_report("warning: user space PIT time drift fix "
- "is no longer supported");
+ error_report("warning: ignoring deprecated option");
break;
case QEMU_OPTION_name:
opts = qemu_opts_parse_noisily(qemu_find_opts("name"),