[PATCH 0/2] domain, qemu: add support for clearing TSC on reset
Michal Prívozník
mprivozn at redhat.com
Fri Mar 25 15:35:09 UTC 2022
On 3/24/22 10:48, Paolo Bonzini wrote:
> Some versions of Windows hang on reboot if their TSC value is greater
> than 2^54. The workaround is to reset the TSC to a small value, and
> is implemented by QEMU and ESXi. This series adds a domain attribute
> for this, and implements it in QEMU.
>
> Paolo
>
> Paolo Bonzini (2):
> domain: add tsc.on_reboot element
> qemu: add support for tsc.on_reboot element
>
> docs/formatdomain.rst | 4 +++
> src/conf/domain_conf.c | 22 ++++++++++++
> src/conf/domain_conf.h | 10 ++++++
> src/conf/schemas/domaincommon.rng | 9 +++++
> src/qemu/qemu_capabilities.c | 2 ++
> src/qemu/qemu_capabilities.h | 1 +
> src/qemu/qemu_command.c | 4 +++
> src/qemu/qemu_validate.c | 36 +++++++++++++------
> .../caps_7.0.0.x86_64.replies | 4 +++
> .../caps_7.0.0.x86_64.xml | 1 +
> ...uency.args => cpu-tsc-clear-on-reset.args} | 2 +-
> ... cpu-tsc-clear-on-reset.x86_64-7.0.0.args} | 6 ++--
> ...equency.xml => cpu-tsc-clear-on-reset.xml} | 2 +-
> tests/qemuxml2argvtest.c | 2 ++
> 14 files changed, 89 insertions(+), 16 deletions(-)
> copy tests/qemuxml2argvdata/{cpu-tsc-frequency.args => cpu-tsc-clear-on-reset.args} (97%)
> copy tests/qemuxml2argvdata/{virtio-rng-builtin.x86_64-latest.args => cpu-tsc-clear-on-reset.x86_64-7.0.0.args} (77%)
> copy tests/qemuxml2argvdata/{cpu-tsc-frequency.xml => cpu-tsc-clear-on-reset.xml} (95%)
>
I'm fixing all the small issues I've raised in review and pushing these.
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Thanks!
Michal
More information about the libvir-list
mailing list