mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Refactor RTC command line switches
Deprecate -localtime, -setdate and -rtc-td-hack in favor of a new unified command line switch: -rtc [base=utc|localtime|date][,driftfix=none|slew] Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
21d5d12bb0
commit
1ed2fc1fa3
4 changed files with 119 additions and 57 deletions
|
@ -151,6 +151,23 @@ QemuOptsList qemu_device_opts = {
|
|||
},
|
||||
};
|
||||
|
||||
QemuOptsList qemu_rtc_opts = {
|
||||
.name = "rtc",
|
||||
.head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head),
|
||||
.desc = {
|
||||
{
|
||||
.name = "base",
|
||||
.type = QEMU_OPT_STRING,
|
||||
#ifdef TARGET_I386
|
||||
},{
|
||||
.name = "driftfix",
|
||||
.type = QEMU_OPT_STRING,
|
||||
#endif
|
||||
},
|
||||
{ /* end if list */ }
|
||||
},
|
||||
};
|
||||
|
||||
static QemuOptsList *lists[] = {
|
||||
&qemu_drive_opts,
|
||||
&qemu_chardev_opts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue