From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754017AbbG2UAa (ORCPT ); Wed, 29 Jul 2015 16:00:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753851AbbG2UAT (ORCPT ); Wed, 29 Jul 2015 16:00:19 -0400 Message-ID: <1438200012.13460.74.camel@redhat.com> Subject: Re: [PATCH 0/2] KVM: x86: limit interactions between IOAPIC and LAPIC From: Alex Williamson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, yang.z.zhang@intel.com, srutherford@intel.com Date: Wed, 29 Jul 2015 14:00:12 -0600 In-Reply-To: <1438177055-26764-1-git-send-email-pbonzini@redhat.com> References: <1438177055-26764-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-07-29 at 15:37 +0200, Paolo Bonzini wrote: > Inspired by the split irqchip patches, this series limits the > IOAPIC<->LAPIC to the EOI exit bitmap that is inferred from the > redirection table. > > TMR is entirely handled within the local APIC, and no global copy > of the IOAPIC-handled vectors is necessary anymore. This makes > it simpler to introduce a userspace IOAPIC. > > Tested with ioapic.flat for now, planning to do more complete tests > tomorrow. The most interesting test to do here is an assigned device > that uses INTX, so I am CCing Alex Williamson for a heads up. Tested Windows and Linux guests with assigned devices restricted to INTx mode, no obvious regression. Thanks, Alex > Paolo Bonzini (2): > KVM: x86: set TMR when the interrupt is accepted > KVM: x86: store IOAPIC-handled vectors in each VCPU > > arch/x86/include/asm/kvm_host.h | 3 ++- > arch/x86/kvm/ioapic.c | 27 ++++----------------------- > arch/x86/kvm/ioapic.h | 11 +---------- > arch/x86/kvm/lapic.c | 29 ++++++++++++++++++----------- > arch/x86/kvm/lapic.h | 1 - > arch/x86/kvm/svm.c | 2 +- > arch/x86/kvm/vmx.c | 3 ++- > arch/x86/kvm/x86.c | 11 +++-------- > 8 files changed, 31 insertions(+), 56 deletions(-) >