[patch 6/6] Emulate qemu-kvms -tdf option

Marcelo Tosatti
2012-10-03T10:53:01Z

[-- Attachment #1: qemukvm-commandline-opt-tdf --]
[-- Type: text/plain, Size: 1370 bytes --]

Commit d527b774878defc27f317cdde19b5c54fd0d5666 from qemu-kvm.git.

From: Jan Kiszka <jan.kiszka@siemens.com>

Add a warning that there is no effect anymore.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Index: qemu-compat-kvm/vl.c
===================================================================
--- qemu-compat-kvm.orig/vl.c
+++ qemu-compat-kvm/vl.c
@@ -3169,6 +3169,10 @@ int main(int argc, char **argv, char **e
case QEMU_OPTION_semihosting:
semihosting_enabled = 1;
break;
+ case QEMU_OPTION_tdf:
+ fprintf(stderr, "Warning: user space PIT time drift fix "
+ "is no longer supported.\n");
+ break;
case QEMU_OPTION_name:
qemu_name = g_strdup(optarg);
{
Index: qemu-compat-kvm/qemu-options.hx
===================================================================
--- qemu-compat-kvm.orig/qemu-options.hx
+++ qemu-compat-kvm/qemu-options.hx
@@ -2849,6 +2849,10 @@ DEF("no-kvm-pit-reinjection", 0, QEMU_OP
" disable KVM kernel mode PIT interrupt reinjection\n",
QEMU_ARCH_I386)

+DEF("tdf", 0, QEMU_OPTION_tdf,
+ "-tdf time drift fix (deprecated)\n",
+ QEMU_ARCH_ALL)
+
HXCOMM This is the last statement. Insert new options before this line!
STEXI
@end table