From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB0FDCCA479 for ; Mon, 18 Jul 2022 15:41:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234196AbiGRPlD (ORCPT ); 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-Google-Smtp-Source: AGRyM1veve2U62QrxA7Nk2HtioTqWAVXZhSf4GQ9SNLY+wx/A/uu2FyRIVMKkFvnDnsJHnEVLKUy9g== 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> 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.