Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1779890ybg; Sat, 19 Oct 2019 02:20:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwemGRrJnYEgi5zFQVEmkRbd7wxsL34X7+f7SgXfOzkSOk/ZNEMHksGqMR4yHsJHcYVNoTu X-Received: by 2002:a05:6402:1351:: with SMTP id y17mr14170632edw.294.1571476842358; Sat, 19 Oct 2019 02:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571476842; cv=none; d=google.com; s=arc-20160816; b=q8+AggePVf31AVSzFuyAHy1WAcJom2Gf7lRs+nL1rdMZcc0POu1VWarJpYXXWqKTz+ oRtbklEHug8ANjDTx//tlooLKtBVE6OueR1Mj56cYAWPujpy87eYG2T6mfi1tsSRU2rp LKcryP/TYSjTnHpsWZ0LTH1haPF/dnYQqCFqGr7RJNjLA+NwN4PH12cMZuwAx5Bd4vMK NuZ+oT8VvC/U4ePCzw1pL2yB8uqC9FGquyfBPtFkNOmeUoI9+benQN7mth13RfUi9mwN 8XnzBjsk6iL13dXwWAgCWjBUhKSG8yQhlLjTLgCNQZUbZQpD0euVw07MvHJFds1VX50m A1Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3bTakgz7LEZbnsJ6SfGZfkJdZLXTmdE5E7CAN0l9zGs=; b=vpcNEn0zNKVFIiUkLaE6O/nxvYkjkprZUPa47bOSVOEGAenMtBFC+leGi47Gz/FGMc ydy61apAGXeY3XQgyaSsULioHFWiThnSAWxcgxkZXoHFU/uYegt80+g1hye+6LEg0h39 B3lNdIbrLLGeGOsc+3Tu9ubvaMZkZYbSx3Y3koghqQhyPVf5bkERieHjXIEyMTgFWfLb RSxNnpfQN5+r2C3JloXXG9Ymg9qFC/t5nwotlajPFt40EQ55tqDhy5AJclXaU/qlo/MF xn5E2dZZYQ3SzA9QDTfNMl5yzb2WzdqBM5s+O1Xp5PpALLaqonhdcZ9FjsfpSwCH4xoo 78Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OYrB4dw9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si4792692ejc.405.2019.10.19.02.20.17; Sat, 19 Oct 2019 02:20:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OYrB4dw9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2634596AbfJRVM2 (ORCPT + 99 others); Fri, 18 Oct 2019 17:12:28 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:36542 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394095AbfJRVM2 (ORCPT ); Fri, 18 Oct 2019 17:12:28 -0400 Received: by mail-il1-f194.google.com with SMTP id z2so6799320ilb.3 for ; Fri, 18 Oct 2019 14:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3bTakgz7LEZbnsJ6SfGZfkJdZLXTmdE5E7CAN0l9zGs=; b=OYrB4dw9gOsYCWo4syH/MFfrRmj7gjPcUk56pQPkSYzcnoehqVtqgxGyue5h2rJ/5q UrUGacNmUXkYVIz3VhI47mM5wM07gcYNzepR6WUplr9/++Xxel4iALzGaABMJyBOdA/z Siyyis/hQS0PCFgZjFpboDCeHAytZqXKyaK6qhr/kN72KeoU92BwxX6J1asfNIGfZ9oV vOyGL10KFrWxezdDaSPw7lcTMXKu90Mif3b4fxuiZt84YXbduxPV8cplAzOLJekLBjPQ bweDKonrJrnCjJxRUC9YKAH7VMD7pu77W+N5X93Mdhq2F8J3uXx4x8poH3sCyQ6J/O7v M/XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3bTakgz7LEZbnsJ6SfGZfkJdZLXTmdE5E7CAN0l9zGs=; b=lHFY4sks8xJIe8LJEPUeC90NA+Se2dGupf0LWEP9TOq8TBVarkDwZlVAXDNcw8O36e 7rVi5NP6YwUNNkKoCX2wiFdHCKne03+upUbn8sX+KMceLsU3UQH+3a5wUBjMZDfBGq5a PaBBe6O8ZzFG3VAsmM19oRBaoaa2ez+2euYFw51m5EgsoFebI2P4Fl2aFP41m3VYwncQ bHAUGuAuBS4b5r1ikzE4xBAbX2FymEsUElfNmfmA4jH8vjShdK8/1Gy/Pg54vJrCWKkv kZoO8WEBVCVTkDTlRRcDrzy5Ixd6B1++sObg1LCc+6unyLfwTx262auIPKpmxW3O6JsS GoDw== X-Gm-Message-State: APjAAAX9Nfb4Xq0CTZErwk1zbsRk26HVmFaFwvEl11xW5ecmwzkOTmaI cQPXMFoDIxl1fiui4fYtyyXnX0Ao1L7ovimVrFxuLw== X-Received: by 2002:a92:475a:: with SMTP id u87mr12844914ila.26.1571433147021; Fri, 18 Oct 2019 14:12:27 -0700 (PDT) MIME-Version: 1.0 References: <1501554327-3608-1-git-send-email-wanpeng.li@hotmail.com> <20170803134636.GG32403@flask> In-Reply-To: From: Jim Mattson Date: Fri, 18 Oct 2019 14:12:15 -0700 Message-ID: Subject: Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2 To: Wanpeng Li Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "linux-kernel@vger.kernel.org" , kvm , Paolo Bonzini , Wanpeng Li , Dan Cross , Marc Orr Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 3, 2017 at 6:23 PM Wanpeng Li wrote: > Thanks Radim. :) In addition, I will think more about it and figure > out a finial solution. Have you had any thoughts on a final solution? We're seeing incorrect behavior with an L1 hypervisor running under qemu with "-machine q35,kernel-irqchip=split", and I believe this may be the cause. In particular, VMCS12 has ACK_INTERRUPT_ON_EXIT set, but L1 is seeing an L2 exit for "external interrupt" with the VMCS12 VM-exit interruption information cleared to 0.