Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3513607imw; Mon, 18 Jul 2022 09:23:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8g68gwP0b/6wlIgRep+RjGURUhBE7Vp0hFfk78u48wu/9y1MYtOYm/cfx6DbA8LtEqM+Y X-Received: by 2002:a05:6870:14c1:b0:e6:5ba1:6194 with SMTP id l1-20020a05687014c100b000e65ba16194mr17455567oab.242.1658161433312; Mon, 18 Jul 2022 09:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658161433; cv=none; d=google.com; s=arc-20160816; b=aBDlvJaTeeVXxLii57oEzZ6/HdPd2biFk3BZQSN6JA3LBZHOXyTly/8CyaVEIBaveC 4Hwj1v+0sorBKLWIj8akVrkTomMNLXM3JS0ZwTN1EyvY5lxrMxssKnm7zqTdtM+gOhnA sdgrmwVtStoFi8/3SSMvJUueOcn+6lcTpvlNOKsSgt4/voqKC/i6pHAvmZE2y6qzeMQ6 An2whxq5hg/4Lr8OTgFTXMFvFSefaiJywZ6fWgIDHRCQOV7YzoDUj2d/dnqJm+eIEyTU 8+2t2QJcfWuCod9OtNF6hekNCIvIb+o7O24uht2KEAlj7lOh5XpiISj80XyE0SCmQH+8 tXrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2cMWEzH+ndHC8450rlhcgrDegQ6VEB9Envd54B2eHQM=; b=HJ44NnB8+Y1AcWTcAZJYXNdzioVkV8RuBIWt6zYbhBMrYRyskR07StaqI0Ct5oGAUa fbOWcEAWUrsNU3pKAYfEK7OYHg7rPrFunLSBekp2FXRStkE+wMzXWwqlyx1Q3UAHCa6I 2YL5INTPCjSbTgN1Cv5zqCBH6XOzdT0rSE5r8YNl1iPQ2RjlxqFAhkKPjgvc4gJKHN+b DOo1jDP+OLJKNZOWpguic409qZOTIKpTPbkVVdOp+699geQGJRIbTTRFxbxGBnEbv4kI Q95nR7cGARC/uCnndi8mXyw5HWd4kr0cC0pRCXS5Cv9Kz+AricDd8Tfmbd9lEpK/vfY8 Gp5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=nHIb9ilR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a9d630c000000b0061c53c99faesi7731175otk.35.2022.07.18.09.23.39; Mon, 18 Jul 2022 09:23:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=nHIb9ilR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234152AbiGRPlD (ORCPT + 99 others); Mon, 18 Jul 2022 11:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233951AbiGRPkz (ORCPT ); Mon, 18 Jul 2022 11:40:55 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB4B0BCAB for ; Mon, 18 Jul 2022 08:40:54 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id bf13so10914342pgb.11 for ; Mon, 18 Jul 2022 08:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2cMWEzH+ndHC8450rlhcgrDegQ6VEB9Envd54B2eHQM=; b=nHIb9ilRkN+ScQRf4KAfdybqCJR4JlX3y4DhOKfTXgzb/3cl0+iJtHr4u/fcrizScf rb037cQsqbF8NwgHWnVOHL/0OtoSytKLszg6ieUHwGu/4UWBZIVnV11UZOpi89IsAF2p SREYybKwuibfl7/azpWvY3586mhEc2Cu9QtELy/t1J4NeB38i3+VQCrzhody3rWbkk/l KRAKXoTvTGCWgdgnNhHeFJCQscPWKuVLDWs+dJSc2oCctw+fgZuOU1Vck21foDcPREfH 2P+wXyJMU3pr4tD6yvud7caJCYga/nP6fVtoVdnXACleiXMtaVBv1Zb1kymvyt4QwzXR WxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2cMWEzH+ndHC8450rlhcgrDegQ6VEB9Envd54B2eHQM=; b=hDoFO7SGW9cH5Wh8knYb1xqvuJoUwdkQYP8oh+UlXnvnp4ixBq/VaR34sQ/0Ya+tJP fvpwNO5HvZ2P6e2gi3kPp7WbviXMgLm2o+VGN0Lu3JvT6Hw8qJ2aW4XIwOfDG1BD5m31 h6by8M+2dZdq3W81ApFttz48la85fSD1s7CSM6Vofso7vV3BfkcFLzTseh+NXrljYhb/ I/xVpbv5OvPdhXqV1rDBCofCFibrNgX6Hb54nrPxHLXIHMLzQu14b1VCcxnEykQvYwMW g/IkLE8DwAhBpM7q1YcLHwUodsnIxKySXWr7TqHU2RgJBsgyFbtxjKv7ZRVpH9A1OiTz RqqA== X-Gm-Message-State: AJIora9SFCPIWZL/8l728eC0ik0K0s/kR+dhgeekKfJrwYp5HkC/aRDn tTRFdPOjg8L+vgoFeX9xj7H7SA== X-Received: by 2002:a63:8342:0:b0:415:dde4:f5ec with SMTP id h63-20020a638342000000b00415dde4f5ecmr24201850pge.263.1658158854045; Mon, 18 Jul 2022 08:40:54 -0700 (PDT) Received: from google.com (123.65.230.35.bc.googleusercontent.com. [35.230.65.123]) by smtp.gmail.com with ESMTPSA id gg15-20020a17090b0a0f00b001ec932d7592sm9525989pjb.9.2022.07.18.08.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 08:40:53 -0700 (PDT) Date: Mon, 18 Jul 2022 15:40:49 +0000 From: Sean Christopherson To: Maxim Levitsky Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Upton , Peter Shier Subject: Re: [PATCH v2 12/21] KVM: x86: Make kvm_queued_exception a properly named, visible struct Message-ID: References: <20220614204730.3359543-1-seanjc@google.com> <20220614204730.3359543-13-seanjc@google.com> <4692a0906554cf6f0473ad138da1b4d739388c89.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4692a0906554cf6f0473ad138da1b4d739388c89.camel@redhat.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 18, 2022, Maxim Levitsky wrote: > On Mon, 2022-07-18 at 16:07 +0300, Maxim Levitsky wrote: > > On Tue, 2022-06-14 at 20:47 +0000, Sean Christopherson wrote: > > > Move the definition of "struct kvm_queued_exception" out of kvm_vcpu_arch > > > in anticipation of adding a second instance in kvm_vcpu_arch to handle > > > exceptions that occur when vectoring an injected exception and are > > > morphed to VM-Exit instead of leading to #DF. > > > > > > Opportunistically take advantage of the churn to rename "nr" to "vector". > > > > > > No functional change intended. > > > > > > Signed-off-by: Sean Christopherson > > > --- > > > > > ... > > > > > > Is this change below intentional? My memory on nested_apf_token is quite rusty, but at least > > if possible, I would prefer this to be done in separate patch. Yikes! It's not intention as of this patch. It _is_ intentional for the "morph" patch, as KVM can simply force "has_payload" in kvm_inject_page_fault() when directly queueing the VM-Exit. I suspect I botched this patch when splitting the original changes into separate patches. > Sorry, I replied to the wrong mail, but the newer version also has the same issue. > (It should be v3 btw.) Argh, sorry about the versioning mixup. I distinctly remember thinking this couldn't possibly have been only the second version... Should have double-checked instead of trusting my archive.