diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-10-05 14:51:42 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-10-30 23:39:51 -0200 |
commit | c21fb4f8b802108697f9353a8f807079507b586c (patch) | |
tree | 1038ee9508e6390a973af24b3f6cdd847c0faf26 /vl.c | |
parent | 4086bde8c08746913d7ca6dcbc5e18a49a627cdc (diff) | |
download | qemu-c21fb4f8b802108697f9353a8f807079507b586c.zip qemu-c21fb4f8b802108697f9353a8f807079507b586c.tar.gz qemu-c21fb4f8b802108697f9353a8f807079507b586c.tar.bz2 |
Use global properties to emulate -no-kvm-pit-reinjection
Releases of qemu-kvm will be interrupted at qemu 1.3.0.
Users should switch to plain qemu releases.
To avoid breaking scenarios which are setup with command line
options specific to qemu-kvm, port these switches from qemu-kvm
to qemu.git.
Port -no-kvm-pit-reinjection.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -3176,6 +3176,21 @@ int main(int argc, char **argv, char **envp) "separately.\n"); break; } + case QEMU_OPTION_no_kvm_pit_reinjection: { + static GlobalProperty kvm_pit_lost_tick_policy[] = { + { + .driver = "kvm-pit", + .property = "lost_tick_policy", + .value = "discard", + }, + { /* end of list */ } + }; + + fprintf(stderr, "Warning: option deprecated, use " + "lost_tick_policy property of kvm-pit instead.\n"); + qdev_prop_register_global_list(kvm_pit_lost_tick_policy); + break; + } case QEMU_OPTION_usb: machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0); if (machine_opts) { |