Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753106AbcJKMRp (ORCPT ); Tue, 11 Oct 2016 08:17:45 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35450 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751953AbcJKMRn (ORCPT ); Tue, 11 Oct 2016 08:17:43 -0400 From: Wanpeng Li X-Google-Original-From: Wanpeng Li To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Yunhong Jiang , Wanpeng Li Subject: [PATCH RFC 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode Date: Tue, 11 Oct 2016 20:17:18 +0800 Message-Id: <1476188240-3502-1-git-send-email-wanpeng.li@hotmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 24 Most windows guests which I have on hand currently still utilize APIC Timer periodic/oneshot mode instead of APIC Timer tsc-deadline mode: - windows 2008 server r2 - windows 2012 server r2 - windows 7 - windows 10 This patchset adds the support using the VMX preemption timer for APIC Timer periodic/oneshot mode. I add a print in oneshot mode testcase of kvm-unit-tests/apic.flat and observed that w/ patch the latency is ~2% of w/o patch. I think maybe something is still not right in the patchset, in addition, tmcct in apic_get_tmcct() maybe is not calculated correctly. Your comments to improve the patchset is a great appreciated. Wanpeng Li (2): KVM: lapic: Extract start_sw_period() to handle oneshot/periodic mode KVM: x86: Support using the vmx preemption timer for APIC Timer periodic/one mode arch/x86/kvm/lapic.c | 162 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 95 insertions(+), 67 deletions(-) -- 1.9.1