From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934802AbcIFWaG (ORCPT ); Tue, 6 Sep 2016 18:30:06 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34447 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933062AbcIFWaE (ORCPT ); Tue, 6 Sep 2016 18:30:04 -0400 From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: rkrcmar@redhat.com, dmatlack@google.com, luto@kernel.org, peterhornyack@google.com, x86@kernel.org Subject: [PATCH v2 0/2] if running under KVM, use kvmclock to compute TSC deadline value Date: Wed, 7 Sep 2016 00:29:57 +0200 Message-Id: <1473200999-123004-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v1 posted here: https://patchwork.kernel.org/patch/9214993/ The motivation for this patch is in patch 2 (or you can read it from v1). This version is larger but the hooks into apic.c are cleaner than in v1. Instead of arranging for kvmclock to replace only a small part of setup_apic_timer, it registers its own clockevent. The downside is that kvmclock now needs to hook into the LAPIC timer interrupt to invoke the event_handler of the new clockevent, but this is pretty straightforward with a new pvop (assuming the introduction of new pvops is straightforward at all). Thanks, Paolo Paolo Bonzini (2): x86: paravirt: add local_apic_timer_interrupt to pv_ops x86, kvm: use kvmclock to compute TSC deadline value arch/x86/include/asm/apic.h | 2 + arch/x86/include/asm/paravirt.h | 5 ++ arch/x86/include/asm/paravirt_types.h | 1 + arch/x86/kernel/apic/apic.c | 4 +- arch/x86/kernel/kvmclock.c | 156 ++++++++++++++++++++++++++++++++++ arch/x86/kernel/paravirt.c | 1 + 6 files changed, 167 insertions(+), 2 deletions(-) -- 1.8.3.1