qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	Marcelo Tosatti <mtosatti@redhat.com>,
	Jan Kiszka <jan.kiszka@web.de>, Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [patch 4/7] Use global properties to emulate -no-kvm-pit-reinjection
Date: Fri, 05 Oct 2012 14:51:42 -0300	[thread overview]
Message-ID: <20121005175203.634712003@amt.cnet> (raw)
In-Reply-To: 20121005175138.079692291@amt.cnet

[-- Attachment #1: 04_qemukvm-nokvmpit-reinjection --]
[-- Type: text/plain, Size: 1928 bytes --]

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

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>

Index: qemu-compat-kvm/vl.c
===================================================================
--- qemu-compat-kvm.orig/vl.c
+++ qemu-compat-kvm/vl.c
@@ -3071,6 +3071,21 @@ int main(int argc, char **argv, char **e
                                 "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:
                 usb_enabled = 1;
                 break;
Index: qemu-compat-kvm/qemu-options.hx
===================================================================
--- qemu-compat-kvm.orig/qemu-options.hx
+++ qemu-compat-kvm/qemu-options.hx
@@ -2838,6 +2838,10 @@ STEXI
 Enable FIPS 140-2 compliance mode.
 ETEXI
 
+HXCOMM Deprecated by kvm-pit driver properties
+DEF("no-kvm-pit-reinjection", HAS_ARG, QEMU_OPTION_no_kvm_pit_reinjection,
+    "", QEMU_ARCH_I386)
+
 HXCOMM Deprecated (ignored)
 DEF("no-kvm-pit", HAS_ARG, QEMU_OPTION_no_kvm_pit, "", QEMU_ARCH_I386)
 

  parent reply	other threads:[~2012-10-05 17:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05 17:51 [Qemu-devel] [patch 0/7] qemu-kvm compat (v3) Marcelo Tosatti
2012-10-05 17:51 ` [Qemu-devel] [patch 1/7] cirrus_vga: allow configurable vram size Marcelo Tosatti
2012-10-08  7:50   ` Gerd Hoffmann
2012-10-05 17:51 ` [Qemu-devel] [patch 2/7] Use machine options to emulate -no-kvm-irqchip Marcelo Tosatti
2012-10-05 17:51 ` [Qemu-devel] [patch 3/7] Issue warning when deprecated -no-kvm-pit is used Marcelo Tosatti
2012-10-05 17:51 ` Marcelo Tosatti [this message]
2012-10-05 17:51 ` [Qemu-devel] [patch 5/7] Issue warning when deprecated drive parameter boot=on|off " Marcelo Tosatti
2012-10-05 17:51 ` [Qemu-devel] [patch 6/7] Issue warning when deprecated -tdf option " Marcelo Tosatti
2012-10-05 17:51 ` [Qemu-devel] [patch 7/7] Emulate qemu-kvms -no-kvm option Marcelo Tosatti
2012-10-05 18:39 ` [Qemu-devel] [patch 0/7] qemu-kvm compat (v3) Jan Kiszka
  -- strict thread matches above, loose matches on Subject: below --
2012-10-05 17:13 [Qemu-devel] [patch 0/7] qemu-kvm compat (v2) Marcelo Tosatti
2012-10-05 17:13 ` [Qemu-devel] [patch 4/7] Use global properties to emulate -no-kvm-pit-reinjection Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121005175203.634712003@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=jan.kiszka@web.de \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).