All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [patch 3/7] Use machine options to emulate -no-kvm-pit
Date: Fri, 05 Oct 2012 19:36:39 +0200	[thread overview]
Message-ID: <506F1AA7.8050405@siemens.com> (raw)
In-Reply-To: <20121005172816.GB11796@amt.cnet>

On 2012-10-05 19:28, Marcelo Tosatti wrote:
> On Fri, Oct 05, 2012 at 07:23:26PM +0200, Jan Kiszka wrote:
>> On 2012-10-05 19:13, Marcelo Tosatti wrote:
>>> 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 option.
>>>
>>> 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
>>> @@ -3066,6 +3066,11 @@ int main(int argc, char **argv, char **e
>>>                      machine = machine_parse(optarg);
>>>                  }
>>>                  break;
>>> +            case QEMU_OPTION_no_kvm_pit: {
>>> +                fprintf(stderr, "Warning: KVM PIT can no longer be disabled "
>>> +                                "separately.\n");
>>> +                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,9 @@ STEXI
>>>  Enable FIPS 140-2 compliance mode.
>>>  ETEXI
>>>  
>>> +HXCOMM Deprecated (ignored)
>>> +DEF("no-kvm-pit", HAS_ARG, QEMU_OPTION_no_kvm_pit, "", QEMU_ARCH_I386)
>>> +
>>>  HXCOMM Deprecated by -machine kernel_irqchip=on|off property
>>>  DEF("no-kvm-irqchip", HAS_ARG, QEMU_OPTION_no_kvm_irqchip, "", QEMU_ARCH_I386)
>>>  
>>>
>>>
>>
>> This doesn't emulate anything. It just adds a warning that some long
>> disabled option was used.
>>
>> Jan
> 
> It emulates the command line switch. In my mind, "printing a warning"
> can be considered "emulating a command from qemu-kvm". If you prefer 
> something else, please let me know the best wording.
> 

"Use machine options to emulate..." makes no sense for those
warning-only switches. It makes sense where we translate them and
register the corresponding machine options.

So call this "Issue warning when deprecated -bla is used" or so.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux

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

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05 17:13 [Qemu-devel] [patch 0/7] qemu-kvm compat (v2) Marcelo Tosatti
2012-10-05 17:13 ` [Qemu-devel] [patch 1/7] cirrus_vga: allow configurable vram size Marcelo Tosatti
2012-10-05 17:13 ` [Qemu-devel] [patch 2/7] Use machine options to emulate -no-kvm-irqchip Marcelo Tosatti
2012-10-05 17:13 ` [Qemu-devel] [patch 3/7] Use machine options to emulate -no-kvm-pit Marcelo Tosatti
2012-10-05 17:23   ` Jan Kiszka
2012-10-05 17:28     ` Marcelo Tosatti
2012-10-05 17:36       ` Jan Kiszka [this message]
2012-10-05 17:13 ` [Qemu-devel] [patch 4/7] Use global properties to emulate -no-kvm-pit-reinjection Marcelo Tosatti
2012-10-05 17:13 ` [Qemu-devel] [patch 5/7] Emulate qemu-kvms drive parameter boot=on|off Marcelo Tosatti
2012-10-05 17:24   ` Jan Kiszka
2012-10-05 17:13 ` [Qemu-devel] [patch 6/7] Emulate qemu-kvms -tdf option Marcelo Tosatti
2012-10-05 17:24   ` Jan Kiszka
2012-10-05 17:13 ` [Qemu-devel] [patch 7/7] Emulate qemu-kvms -no-kvm option Marcelo Tosatti
2012-10-05 17:25 ` [Qemu-devel] [patch 0/7] qemu-kvm compat (v2) Jan Kiszka
2012-10-05 17:28   ` 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=506F1AA7.8050405@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=aliguori@us.ibm.com \
    --cc=kraxel@redhat.com \
    --cc=mtosatti@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.