Skip to contentSkip to conversation

maintaining of kvm_clock stability on guest vCPU hotplug

PATCH Denis Plotnikov 2 participants 2 messages Apr 5, 2017 1 message not in the archive KVM

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

ping

Quoted 14 lines · Denis Plotnikov

It was found, that after adding a new vCPU to a running VM (CPU hotplug) kvm_clock lost the stability property in case of using it. This happened because KVM didn't treated cpu hotplug as a special case of TSC synchronization.
This patch series adds cpu hotplug to the TSC synchronization cases.

Denis Plotnikov (2):
KVM: x86: remaster kvm_write_tsc code
KVM: x86: fix maintaining of kvm_clock stability on guest CPU hotplug

 arch/x86/kvm/x86.c | 59 ++++++++++++++++++------------------------------------
 1 file changed, 20 insertions(+), 39 deletions(-)
Signature · 2 lines
Best,
Denis
#2 lore raw

2017-04-05 11:56+0300, Denis Plotnikov:

Quoted 1 line

ping

Please re-send the series, I don't have it in mailbox and web-archives don't show it either,

thanks.

Quoted 6 lines · Denis Plotnikov
Quoted 5 lines

It was found, that after adding a new vCPU to a running VM (CPU hotplug) kvm_clock lost the stability property in case of using it. This happened because KVM didn't treated cpu hotplug as a special case of TSC synchronization.
This patch series adds cpu hotplug to the TSC synchronization cases.

Right, it looks like an incarnation of the deep problem where the kvm clock with masterclock diverges from host (different frequency), so any case where the masterclock is synchronized results in time shifts in the guest.

Quoted 12 lines
Quoted 8 lines

Denis Plotnikov (2):
KVM: x86: remaster kvm_write_tsc code
KVM: x86: fix maintaining of kvm_clock stability on guest CPU hotplug

 arch/x86/kvm/x86.c | 59 ++++++++++++++++++------------------------------------
 1 file changed, 20 insertions(+), 39 deletions(-)
Signature · 2 lines
Best,
Denis