]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add support for setting TSC frequency
authorJiri Denemark <jdenemar@redhat.com>
Thu, 23 Mar 2017 14:54:38 +0000 (15:54 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 27 Mar 2017 18:16:32 +0000 (20:16 +0200)
commit7373c4e48f293fb4d361b1bf2d0986166d8480be
tree1b07798a2af047c567b6a169d10fc99eceb7bf35
parent5a506cce3846fdd0af859c7e0660b3b8c4ae194f
qemu: Add support for setting TSC frequency

QEMU allows for TSC frequency to be explicitly set to enable migration
with invtsc (migration fails if the destination QEMU cannot set the
exact same frequency used when starting the domain on the source host).

Libvirt already supports setting the TSC frequency in the XML using

    <clock>
      <timer name='tsc' frequency='1234567890'/>
    </clock>

which will be transformed into

    -cpu Model,tsc-frequency=1234567890

QEMU command line.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-cpu-tsc-frequency.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-cpu-tsc-frequency.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c