qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [Qemu-devel] [PATCH] Document --rtc-td-hack, --localtime and --startdate as deprecated
Date: Tue, 20 Feb 2018 16:07:26 +0100	[thread overview]
Message-ID: <ddb5251b-abb5-b66a-b4a7-dcc6965ba28b@redhat.com> (raw)
In-Reply-To: <7b24c0bd-c90c-3835-48b0-c38be4a75983@redhat.com>

On 20/02/2018 16:05, Paolo Bonzini wrote:
> On 20/02/2018 16:01, Thomas Huth wrote:
>> These options have been marked in a comment in qemu-options.hx as
>> deprecated in 2009 already (see commit 1ed2fc1fa35fadc0d6), but we
>> never informed the users about these deprecations. Let's catch up
>> on that omission now.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>>  qemu-doc.texi | 13 +++++++++++++
>>  vl.c          |  5 +++++
>>  2 files changed, 18 insertions(+)
>>
>> diff --git a/qemu-doc.texi b/qemu-doc.texi
>> index 2f19980..7494042 100644
>> --- a/qemu-doc.texi
>> +++ b/qemu-doc.texi
>> @@ -2736,6 +2736,19 @@ filesystem test suite. Also it requires the CAP_DAC_READ_SEARCH capability,
>>  which is not the recommended way to run QEMU. This backend should not be
>>  used and it will be removed with no replacement.
>>  
>> +@subsection -rtc-td-hack (since 2.12.0)
>> +
>> +The @code{--rtc-td-hack} option has been replaced by
>> +@code{--rtc driftfix=slew}.
>> +
>> +@subsection -localtime (since 2.12.0)
>> +
>> +The @code{--localtime} option has been replaced by @code{--rtc localtime}.
>> +
>> +@subsection -startdate (since 2.12.0)
>> +
>> +The @code{--startdate} option has been replaced by @code{--rtc @var{date}}.
>> +
>>  @section qemu-img command line arguments
>>  
>>  @subsection convert -s (since 2.0.0)
>> diff --git a/vl.c b/vl.c
>> index 0feaca7..84121bf 100644
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -3417,6 +3417,8 @@ int main(int argc, char **argv, char **envp)
>>                  break;
>>              case QEMU_OPTION_localtime:
>>                  rtc_utc = 0;
>> +                warn_report("This option is deprecated, "
>> +                            "use '--rtc localtime' instead.");
>>                  break;
>>              case QEMU_OPTION_vga:
>>                  vga_model = optarg;
>> @@ -3672,6 +3674,8 @@ int main(int argc, char **argv, char **envp)
>>                  };
>>  
>>                  qdev_prop_register_global(&slew_lost_ticks);
>> +                warn_report("This option is deprecated, "
>> +                            "use '--rtc driftfix=slew' instead.");
>>                  break;
>>              }
>>              case QEMU_OPTION_acpitable:
>> @@ -3876,6 +3880,7 @@ int main(int argc, char **argv, char **envp)
>>                   */
>>                  break;
>>              case QEMU_OPTION_startdate:
>> +                warn_report("This option is deprecated, use '--rtc' instead.");
>>                  configure_rtc_date_offset(optarg, 1);
>>                  break;
>>              case QEMU_OPTION_rtc:
> 
> Queued, thanks.

... except qemu_rtc_opts has no implied_opt_name, soo it's "-rtc base".
I fixed that up.

Paolo

  reply	other threads:[~2018-02-20 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1519138892-12836-1-git-send-email-thuth@redhat.com>
2018-02-20 15:05 ` [Qemu-devel] [PATCH] Document --rtc-td-hack, --localtime and --startdate as deprecated Paolo Bonzini
2018-02-20 15:07   ` Paolo Bonzini [this message]
2018-02-20 15:06 ` Daniel P. Berrangé

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=ddb5251b-abb5-b66a-b4a7-dcc6965ba28b@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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).