Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751995AbbHMGgG (ORCPT ); Thu, 13 Aug 2015 02:36:06 -0400 Received: from mga03.intel.com ([134.134.136.65]:31755 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbbHMGgE convert rfc822-to-8bit (ORCPT ); Thu, 13 Aug 2015 02:36:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,667,1432623600"; d="scan'208";a="782700399" From: "Zhang, Yang Z" To: Paolo Bonzini , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" CC: "alex.williamson@redhat.com" , "srutherford@intel.com" , "Gudimetla, Giridhar Kumar" , "Nakajima, Jun" Subject: RE: [PATCH 1/2] KVM: x86: set TMR when the interrupt is accepted Thread-Topic: [PATCH 1/2] KVM: x86: set TMR when the interrupt is accepted Thread-Index: AQHQygPaQ9RT5A1SM0ONvbyHVLL0wp30qLewgAALZQCABN7OgP//2pKAgACM57D//6FOAIABaYBA///nAgAAEPBjkAHDcEIg Date: Thu, 13 Aug 2015 06:35:41 +0000 Message-ID: References: <1438177055-26764-1-git-send-email-pbonzini@redhat.com> <1438177055-26764-2-git-send-email-pbonzini@redhat.com> <55BB2B62.1030605@redhat.com> <55BF21E1.5030100@redhat.com> <55BF48A4.5030409@redhat.com> <55C062EC.20006@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 39 Zhang, Yang Z wrote on 2015-08-04: > Paolo Bonzini wrote on 2015-08-04: >> >> >> On 04/08/2015 02:46, Zhang, Yang Z wrote: >>>> It is a problem for split irqchip, where the EOI exit bitmap can >>>> be inferred from the IOAPIC routes but the TMR cannot. The >>>> hardware behavior on the other hand can be implemented purely within the LAPIC. >>> >>> So updating the TMR within LAPIC is the only solution to handle it? >> >> It's the simplest and the one that makes most sense. Considering >> that TMR is a pretty obscure feature, it's unlikely that it will be >> accelerated in the future. > > You may be right. It is safe if no future hardware plans to use it. > Let me check with our hardware team to see whether it will be used or not in future. After checking with Jun, there is no guarantee that the guest running on another CPU will operate properly if hypervisor modify the vTMR from another CPU. So the hypervisor should not to do it. > >> >> Paolo > > > Best regards, > Yang > Best regards, Yang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/