From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 115991] New: tsc_offset is error for hot-plugged vcpu. Date: Thu, 07 Apr 2016 07:01:12 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.29.136]:41095 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbcDGHBW (ORCPT ); Thu, 7 Apr 2016 03:01:22 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7827E201C8 for ; Thu, 7 Apr 2016 07:01:16 +0000 (UTC) Received: from bugzilla1.web.kernel.org (bugzilla1.web.kernel.org [172.20.200.51]) by mail.kernel.org (Postfix) with ESMTP id 9D267201CD for ; Thu, 7 Apr 2016 07:01:12 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: https://bugzilla.kernel.org/show_bug.cgi?id=115991 Bug ID: 115991 Summary: tsc_offset is error for hot-plugged vcpu. Product: Virtualization Version: unspecified Kernel Version: 4.5 Hardware: x86-64 OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: kvm Assignee: virtualization_kvm@kernel-bugs.osdl.org Reporter: changlimin@h3c.com Regression: No 1. when hot plug vcpu, KVM will call kvm_write_tsc set the new vcpu's tsc_offset to current host tsc. The new vcpu's tsc_offsets is greatly different from existed vcpu's tsc_offset. 2. For redhat 6.x, the vm will show warning and turn off TSC clock. kernel: CPU 1 got hotplugged kernel: kvm-clock: cpu 1, msr 0:282367c1, secondary cpu clock kernel: TSC synchronization [CPU#0 -> CPU#1]: kernel: Measured 150076598781 cycles TSC warp between CPUs, turning off TSC clock. kernel: Marking TSC unstable due to check_tsc_sync_source failed 3. I think should set the new vcpu's tsc_offset to kvm->arch.cur_tsc_offset if host tsc is stable and use_master_clock is true. -- You are receiving this mail because: You are watching the assignee of the bug.