Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp828647rdb; Wed, 6 Dec 2023 00:38:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcFH2o2Op1w8ezeJ1AsCTQcyX4+PJNzDe7yVMBO60VSDHaZyQN1RUDI4CbeeOvwugGcpXg X-Received: by 2002:a05:6808:3386:b0:3b8:b58c:9872 with SMTP id ce6-20020a056808338600b003b8b58c9872mr551380oib.24.1701851881620; Wed, 06 Dec 2023 00:38:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701851881; cv=pass; d=google.com; s=arc-20160816; b=TOUeyjVGDBhxxGMtBuBLZRc8WO0R7QqYmP3VED2aFPWOFUcwXvxlEgDL2NsQIjxGRx uW8H6uZc7uAY+R8HvLMH0P3AT/55/ptpTBSHO8wRCEoeOVU2/KoIGtvvIqlWNtLJeLiX etjADM7rsz+Y7d1eM9yK3O+EwkKyBnfzcFGBiei/IjE80aSq3XUQWp5TTJzYIV4PUtQz S/0x5Sv8qtTp1fTuQ+88f/ZLoIPXFQnOX6r1BT9lBJajBr5oeylsTd32X5aKqyVyqpYz J2ftIHVbSoKSRDOqXAUNbwab1S8+VyY11sI9/AKsYWcp+caGKtaqlpFFIooQ8UrU/BAO zv4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=LeKtL401MT+h7lonnZqVcY5dmrvPG7ci+cX3NWotrHI=; fh=ZsTqAF2cmrDVGefAneHtG+3qcXuytHYyeCMlfLnuVUI=; b=IRMbIG288AZONwuIvJ70RaPLuByCncgXtoI28S5R7aNkvgEJTPiiGORQ4IORiVWFK9 uaNm0U3/QKh3so/2WXmIjoARlHizjODrlLkyCNZmxHdDkAWDtiowzzE93Xy9dsKOKuCv r2mpfFZZU5L2klMKSXUr9bZFF8GsaxnqGPMoCPkjc1mVZzA8wE7nO6C/Teyxwa8sqwXZ OYHLx7zEcETkhIkrZ9QtwhCkFqbHq1S4mOMbkvDtW/QF+koPyf06P6JaLgS6zPdCiB4j azcCipO0TuYm1JsYdkyaHzRM/OOZ4pB2O/P3LrnDO482XhN/YwuaXRZK0M3gl5v5dNEt tjLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SrWybxzU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id fm12-20020a056a002f8c00b006ce7afb03absi1651434pfb.131.2023.12.06.00.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SrWybxzU; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9FC91802F96C; Wed, 6 Dec 2023 00:37:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377173AbjLFIhk (ORCPT + 99 others); Wed, 6 Dec 2023 03:37:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377203AbjLFIhi (ORCPT ); Wed, 6 Dec 2023 03:37:38 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDD1BD3; Wed, 6 Dec 2023 00:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701851864; x=1733387864; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=LhkdOkCJj052LvhzCGAo/50vV/3GT8Dk17wptkGStSQ=; b=SrWybxzU/fNNo4+/W8jfAtaxgzLyfD7XWb9g9Oz8iBxtdLv+U5CSt/2f 4179wz4p5PbD3FwIGzzfgVaIFTfJovtExMLOpUwtqbNX7upTK7E3hGJB/ MOOwK89WE3AkOo30HVYd78F10doN0ne1kKG1pa8DF0aZpWKXt4fTXMWYJ tn35VbFNs6zp89s6wQ9D3XzZY7JinHkBjDdM9lqt195kFJMMO18qZ7c9b /jJwXsoXXLlQ9kqexGIEMJFk6UClQRkQzibpIu2y79O3IO7uC4+WoI1ft 5lAzaVez139uX7MYUUyhSb3DfZCF84JMVgv79wuEIFAVLBLkvIDv84yz1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="374207727" X-IronPort-AV: E=Sophos;i="6.04,254,1695711600"; d="scan'208";a="374207727" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 00:37:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="837243941" X-IronPort-AV: E=Sophos;i="6.04,254,1695711600"; d="scan'208";a="837243941" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Dec 2023 00:37:43 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Dec 2023 00:37:43 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Dec 2023 00:37:42 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 6 Dec 2023 00:37:42 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 6 Dec 2023 00:37:42 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VMt1jaE0PSsKjh/lW9mjs7IXbMe3gnEmX83cvaJTxO6dot6rERys6bpfZVL6RE2lH6Elsfax4PEY+fsWfzGxSPmIt2MtId1HEiUJTa01JxhpsSiCxz0+TokL0EU3p0JV0574z2iweMaT4UfuYD/BU3ROsXgGCD4gnsIaPT5STWTLyftrrAHUWX3AL63SOw4Ka9e3rHp5Nf5lXrbjfG6wCZaBqSOdBxoGp9SkMPS7CMKYD07lRQwnBSwkMl4EA+NX+fva9SJAUGTE6J6zTC2DMzMnlqGeCfEQD04I1rnMwAW93fwioUgfe8svivLUn0zRp1Ane60kLJiG9LAQhwHGmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LeKtL401MT+h7lonnZqVcY5dmrvPG7ci+cX3NWotrHI=; b=K6ZtYzsMjhXYSG6d276HgILN3JcTBmZMcOXoQB9vIkjXFrMjZR2QcbyzWeEixDUAcd5XcgTScfvgYJCoorH+df6yuAAcGsOkzgolf8tG0lyOuxPxT2CiI9rgyp2ZGTv9h9QE/xL/sKk3mthCPbTmyxpcyW0ip7UK6fabIAJbJmbNiU6GgMWl8HEYiicDESv6M2aOpUPul9aFrfh94IQseyySD6yuYhsSaI0hbypOiKXz+hHo0ZXVfGz6k4zygxDEo9/w+JiHYljZU74omT9ddQm97QU5/JDtvkNbwQvphK+eVnbPAFrNBoKs2jPq8oW711rcr7IfzR2l66PNazfn+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SA1PR11MB6734.namprd11.prod.outlook.com (2603:10b6:806:25d::22) by DM4PR11MB5325.namprd11.prod.outlook.com (2603:10b6:5:390::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Wed, 6 Dec 2023 08:37:39 +0000 Received: from SA1PR11MB6734.namprd11.prod.outlook.com ([fe80::3d98:6afd:a4b2:49e3]) by SA1PR11MB6734.namprd11.prod.outlook.com ([fe80::3d98:6afd:a4b2:49e3%7]) with mapi id 15.20.7046.034; Wed, 6 Dec 2023 08:37:39 +0000 From: "Li, Xin3" To: "Li, Xin3" , "Gao, Chao" CC: "kvm@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "seanjc@google.com" , "pbonzini@redhat.com" , "corbet@lwn.net" , "kys@microsoft.com" , "haiyangz@microsoft.com" , "wei.liu@kernel.org" , "Cui, Dexuan" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "vkuznets@redhat.com" , "peterz@infradead.org" , "Shankar, Ravi V" Subject: RE: [PATCH v1 13/23] KVM: VMX: Handle VMX nested exception for FRED Thread-Topic: [PATCH v1 13/23] KVM: VMX: Handle VMX nested exception for FRED Thread-Index: AQHaEnYXOQlvFLhpWkG4lt/jksLCm7B5dqYAgAFC3tCAIVOmcA== Date: Wed, 6 Dec 2023 08:37:39 +0000 Message-ID: References: <20231108183003.5981-1-xin3.li@intel.com> <20231108183003.5981-14-xin3.li@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR11MB6734:EE_|DM4PR11MB5325:EE_ x-ms-office365-filtering-correlation-id: 01ec035d-a8da-4362-1848-08dbf6369b2a x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: thCCOwkwq/6Vrm0c3Th0rWb2HzysjVumgf9+KXM4fUoNMPb/Di7vwPg/N2OGkzGIgzU9tMxNN47BcQ+XbZs3r2UD5uV1oZVkr17+tOoRsPDV5bI6ZRPvxkjKAcgrY3tKJsFcvJNike4+cMhyiIZ+HrMPibHa+30zKj6jVeKQ2o5piNq8RtxU5iZiyEkMZvjDuICx73g8y83QIe2v0BowzOlv4rbCvKy6oH8Glp12ToSOHdmXGH7b2IqQuY0IMEmaHoy+9k3aCgi/tW89vniIC+5nrjgS4W+X0zLMxQklsCqSxdFVIC3HXrMa7Qutqvy85tKKsroiHCZK3IOeqwy39G/E8Bo47zvqf3mhDjIFPTrG3LBJBNA8tjtwjfBnAnmwhn1zIiCiq4FIQgMAI1ljKcBianq1nSeLWDVy+Xesb5dCwUifTl8Ess0emi4g/Oz8Fdb349znLzF6CoBGIXjXfeSjR6Sm6SZqT1ihwZS8qHM9GI7R1xzVxPXOsBG2+T7A3bqW/dIdwno1SKlHgGZki7RPcghRCZCD/uiX/l2aKV1afMvqtMJAlC8zP5ZT7EpEN9jHYXpieS3REb72Pw1xRTRuEUynUr9bPAQbvvP429zcsRtgQtOhwhzhJ6pmyI4O x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR11MB6734.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(39860400002)(376002)(396003)(366004)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(7416002)(2906002)(33656002)(316002)(110136005)(54906003)(64756008)(66556008)(6636002)(66446008)(66476007)(38070700009)(66946007)(76116006)(4326008)(8676002)(55016003)(86362001)(52536014)(8936002)(41300700001)(5660300002)(122000001)(38100700002)(82960400001)(83380400001)(478600001)(26005)(71200400001)(7696005)(9686003)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NDhCgrtp88cAbSyKq4s2HQv+kVtp189HnRkmrqhtId7GfUoBM3Osil4kh1gK?= =?us-ascii?Q?4PjbaAyhkoM3GQtNU+hXtVYwKNsXE6wlToKhEx/zQdiZ+ww8yaHWeg+Q0CI3?= =?us-ascii?Q?l4oSciq938zZahxzAAp4ybMATv6fY4u8p5YjjrV4n2IUcBwtIrPWn2E6Ue31?= =?us-ascii?Q?mOBhotE5W/kzMXpJXebtcP1YcIXysHSjSF6Zc7KM0dRUOJ0IuZ5hnLNFOHk5?= =?us-ascii?Q?BgJJjHn3Y+mhEYiX4osipxvC5uIyAKGlIq5dF9ytUVlexjOddL6HtOtmNMgW?= =?us-ascii?Q?wfT3nN8mWTiaCo5I+JcPB0/jeCYkf+Z2uC2u3CfX16b2a4k927S5aSs3unCG?= =?us-ascii?Q?Vkb3Lokt4g46Y4jeqx9u9GEEAeO9wkWag6rBVMTj89sUJBUl8CVWf425bOOG?= =?us-ascii?Q?lpkNpClqxmGD1sAVWZm8T12CU873ZqFXzUySlVyFmMIPB5qkoi6t8UigtKze?= =?us-ascii?Q?bvk41uf451XvpUzvu7w5qKcK57JKaC7RhOqgt1Ow4BAJvFN/uJhCxgEf6KP/?= =?us-ascii?Q?G4c1cerr1suSlOUNiZlinlEuw/3RIY2YSBc9QMJSWvrmGrkNaOOCXVRKjt9S?= =?us-ascii?Q?zywKnjfdV96/4X8QKGJk9dNVL6jFzL1VnbFs1xuQ1pp1K+prTwp0ZTjG2mZk?= =?us-ascii?Q?xlCwZ+GOogt1kzgcUehsZFA4WWT4EWLvouIk8nL3geB9WGkboWgD/ZgOPwM4?= =?us-ascii?Q?Wvh2cTsT7hDUdM+Ar/BxVsnhkmd1EB5cMiGf+mpFcBskjoAMdB5CpLQ5K0qX?= =?us-ascii?Q?lL05h6jrlf7GLe2GJlH2913bsw08II49gUjl53AwFsrhY14VFhNjW21tinzD?= =?us-ascii?Q?FqWW6sCMb7m3DHIvAG+CaOHK3UHEP92Q8ElRnrYOEDNp/UifD65GTzW4pk16?= =?us-ascii?Q?tAlped/A8qVtCd6sAM52OcshDSjm9sQKKVcWpxdPvWmlB9zuesWQxhvy5bsv?= =?us-ascii?Q?Nhf2kzcHqgxQmI77hXZVHsBIYuA6ugSMrZyZhq54cFBEsl9Oz9N9Yev2pbC+?= =?us-ascii?Q?tOltEJVpqUymMgTGIqcdkLqRC+QQCXluwCcQBQgNRgHLqE5najnUSfg/lg+F?= =?us-ascii?Q?a0QFKymMuslnMKBC4371tXvrWGyEXzvsVGuoc+95OmFl1eBnFFT1bPQX+nhY?= =?us-ascii?Q?Tg/5efY3T86qtQR/IhRpxKlETGOXx64g18j7qFmeth9Aloenw44/zzz2idvG?= =?us-ascii?Q?5Edz8O70AaMk+yWry328E8qBD1oCQPucC1qFRBXyDAWDWSMxYgvqpd/6qlEE?= =?us-ascii?Q?sNQuE8xFfkxP312OyPt3tZekfZSSTnm+nTUFhLKtofFTEYnwya+xSIq64X59?= =?us-ascii?Q?iPq8ijuHSXwPgmqlrHozAEvOVZezD6tnoD+qOV6NTuot0eVmeIAZIfgxAW7P?= =?us-ascii?Q?Chg5fxmUrYFGNyVKEbqXu9KeaiEvF3LJlQ2wcY1F5Gyay7ALngnsFZv2Jm4T?= =?us-ascii?Q?PDLJrsAqB72CVPE7npNNBHRP3MQymdcZNI8RFSpeVDGAGmF9ihCCee5s6SeQ?= =?us-ascii?Q?oEgma0wcnKkvUxvN/F3mVki6ZUOmQPmZE0oo4XfxNI4GpTAHSFdu2QfPHoWH?= =?us-ascii?Q?IdD6/anydC6mRdr0KXI=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB6734.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01ec035d-a8da-4362-1848-08dbf6369b2a X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2023 08:37:39.4392 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xlJ2T55eEp+fbdxDc7gLoI2T3LARUmoLKskOqBjFbwA1JVPPCl1DaS98YwbEpEwd9Zo9aqir6ufnmB0HGrd3jQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5325 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:37:56 -0800 (PST) > Subject: RE: [PATCH v1 13/23] KVM: VMX: Handle VMX nested exception for F= RED >=20 > > >+ if (idt_vectoring_info & > VECTORING_INFO_DELIVER_CODE_MASK) > > >+ kvm_requeue_exception_e(vcpu, vector, > > vmcs_read32(error_code_field), > > >+ idt_vectoring_info & > > INTR_INFO_NESTED_EXCEPTION_MASK); > > >+ else > > >+ kvm_requeue_exception(vcpu, vector, > > >+ idt_vectoring_info & > > INTR_INFO_NESTED_EXCEPTION_MASK); > > > > Exiting-event identification can also have bit 13 set, indicating a > > nested exception encountered and caused VM-exit. when reinjecting the > > exception to guests, kvm needs to set the "nested" bit, right? I > > suspect some changes to e.g., handle_exception_nmi() are needed. >=20 > The current patch relies on kvm_multiple_exception() to do that. But TBH= , I'm > not sure it can recognize all nested cases. I probably should revisit it= . So the conclusion is that kvm_multiple_exception() is smart enough, and a VMM doesn't have to check bit 13 of the Exiting-event identification. In FRED spec 5.0, section 9.2 - New VMX Feature: VMX Nested-Exception Support, there is a statement at the end of Exiting-event identification: (The value of this bit is always identical to that of the valid bit of the original-event identification field.) It means that even w/o VMX Nested-Exception support, a VMM already knows if an exception is a nested exception encountered during delivery of another event in an exception caused VM exit (exit reason 0). This is done in KVM through reading IDT_VECTORING_INFO_FIELD and calling vmx_complete_interrupts() immediately after VM exits. vmx_complete_interrupts() simply queues the original exception if there is one, and later the nested exception causing the VM exit could be cancelled if it is a shadow page fault. However if the shadow page fault is caused by a guest page fault, KVM injects it as a nested exception to have guest fix its page table. I will add comments about this background in the next iteration.