From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Plotnikov Subject: [PATCH v2 0/2] maintaining of kvm_clock stability on guest vCPU hotplug Date: Fri, 7 Apr 2017 12:09:51 +0300 Message-ID: <1491556193-56543-1-git-send-email-dplotnikov@virtuozzo.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , To: , , , Return-path: Received: from mail-he1eur01on0129.outbound.protection.outlook.com ([104.47.0.129]:4117 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754925AbdDGJKL (ORCPT ); Fri, 7 Apr 2017 05:10:11 -0400 Sender: kvm-owner@vger.kernel.org List-ID: new in v2: - fix possible wraparound on the synchronization detection - lines exceeding 80 chars are re-formatted - excess parentheses are removed ====================== 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 | 61 ++++++++++++++++++++---------------------------------- 1 file changed, 22 insertions(+), 39 deletions(-) -- 1.8.3.1