From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wincy Van Subject: Re: [PATCH 0/2] KVM: nVMX: Fix nested posted interrupts delivery Date: Tue, 25 Jul 2017 09:25:56 +0800 Message-ID: References: <1493356439-7293-1-git-send-email-fanwenyi0529@gmail.com> <4299a76f-5740-aa04-a893-d4f643c37320@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Jim Mattson , "kvm@vger.kernel.org" To: Paolo Bonzini Return-path: Received: from mail-qt0-f196.google.com ([209.85.216.196]:35414 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754405AbdGYB0S (ORCPT ); Mon, 24 Jul 2017 21:26:18 -0400 Received: by mail-qt0-f196.google.com with SMTP id t37so96337qtg.2 for ; Mon, 24 Jul 2017 18:26:17 -0700 (PDT) In-Reply-To: <4299a76f-5740-aa04-a893-d4f643c37320@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jul 25, 2017 at 1:08 AM, Paolo Bonzini wrote: > On 28/04/2017 07:13, fanwenyi0529@gmail.com wrote: >> From: Wincy Van >> >> The nested/non-nested PI vector is the same currently, this is wrong >> since the non-nested PI may not be recognized if dest vcpu is in L2. >> >> This patch series introduce a new vector for nested PI to solve the >> problem. >> >> Wincy Van (2): >> x86: irq: Define a global vector for nested posted interrupts >> KVM: nVMX: Fix posted intr delivery when vcpu is in guest mode >> >> arch/x86/entry/entry_64.S | 1 + >> arch/x86/include/asm/entry_arch.h | 2 ++ >> arch/x86/include/asm/hardirq.h | 1 + >> arch/x86/include/asm/hw_irq.h | 2 ++ >> arch/x86/include/asm/irq_vectors.h | 1 + >> arch/x86/kernel/irq.c | 13 +++++++++++++ >> arch/x86/kernel/irqinit.c | 2 ++ >> arch/x86/kvm/vmx.c | 22 +++++++++++----------- >> 8 files changed, 33 insertions(+), 11 deletions(-) >> > > Belatedly applying this, with this change: > > diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c > index e3d4718faa95..6b85958ea2ec 100644 > --- a/arch/x86/kernel/irq.c > +++ b/arch/x86/kernel/irq.c > @@ -155,6 +155,12 @@ int arch_show_interrupts(struct seq_file *p, int prec) > seq_printf(p, "%10u ", irq_stats(j)->kvm_posted_intr_ipis); > seq_puts(p, " Posted-interrupt notification event\n"); > > + seq_printf(p, "%*s: ", prec, "NPI"); > + for_each_online_cpu(j) > + seq_printf(p, "%10u ", > + irq_stats(j)->kvm_posted_intr_nested_ipis); > + seq_puts(p, " Nested posted-interrupt wakeup event\n"); > + > seq_printf(p, "%*s: ", prec, "PIW"); > for_each_online_cpu(j) > seq_printf(p, "%10u ", > > on top of patch 1. > It's nice, thank you :) Wincy