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 X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14563C4743C for ; Wed, 23 Jun 2021 17:44:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EAE9661075 for ; Wed, 23 Jun 2021 17:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbhFWRrP (ORCPT ); Wed, 23 Jun 2021 13:47:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhFWRrO (ORCPT ); Wed, 23 Jun 2021 13:47:14 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E005DC061574 for ; Wed, 23 Jun 2021 10:44:56 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id hc16so5196377ejc.12 for ; Wed, 23 Jun 2021 10:44:56 -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=f9/U/jLXud2GQd2KmYWMdYMdKs/YOulP7g1Ex/feogc=; b=XJae6CI6DxRHPvJ/Z/1pUqc8nOpWrPds3nttmgbGJ1zMQPTnBszxKhOqV2vbJQ2DRz 2gY6cYzTtNaMXcXgqBw3W5wzOmzq2G+f0pqFwhjpkG6yt5jsfFoaJi7JJ2lhE/HzDhTc G4SsLgySUi+X0lkmnzCHg+Q/sNfJ3j9EgxEWma8kjfmd5z+Bo3dzwJRrIq8LIIAsRHmx o1wDjdrWtz9W4KPL7EEHDd14VPmpFBB0nMtvntnIMktCXYHUnj4mMHoTNTBpzIT5q8gx lEghXhsGnc45zZs/mB54ycPs7zfhGKWlzg1TpDy15kViITPvIra5ZM3sz5mt2wRaqzBR 00Hw== 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=f9/U/jLXud2GQd2KmYWMdYMdKs/YOulP7g1Ex/feogc=; b=gBS+GqKnL7qbNsSxCe/P3cMcfPv3DHQQY2GXWL0Nc1EuhIAqYWyad8MF5GlKo6do+t iYke1Wka3i6vpzX3EYFIEKSGyecU3OzS1lAFHrxyufWe5T7uCwze2T3gRrYkNPYHjy00 2O7p0aR/kYWzu2zOSPBAzaLs7nLtKeFftcson7IgLVUjH0CfqzPqS6oB1N1T5scztRJI lmqPZK3Svbtuxi4Q7uyTij0rD6sj3IXQ+4KwciZ2iY0+daE/z9JB7Dc+a9fA3RRcix8I 3EM8jr/aVMk301ZLldoDkOfOt6ApWCXGpK4aM9qzch3sTtBxdKfkmuPml6aTyZViJeMZ DCaA== X-Gm-Message-State: AOAM5335gMo6Mi/21jGfxYBXXZBI2Ncu90eKLfYE/FXN5KjPxjMGaZVE HTsA1dO3vmMyPHFnWTYTq+SQhoFt43gQJCNaLeAlrw== X-Google-Smtp-Source: ABdhPJwhqoBgy2ZgFMmq67Pkgw9SZlPIpvoIsrlwm38yEl8+dz+nfbcgo5l9RSFaJ8G2LoL5ToOHQEkdJumCOIvmWVk= X-Received: by 2002:a17:906:1c84:: with SMTP id g4mr1188496ejh.99.1624470295247; Wed, 23 Jun 2021 10:44:55 -0700 (PDT) MIME-Version: 1.0 References: <20210510144834.658457-1-aaronlewis@google.com> <20210510144834.658457-2-aaronlewis@google.com> In-Reply-To: From: Aaron Lewis Date: Wed, 23 Jun 2021 10:44:44 -0700 Message-ID: Subject: Re: [PATCH v6 1/2] kvm: x86: Allow userspace to handle emulation errors To: Paolo Bonzini Cc: David Edmondson , Sean Christopherson , kvm list , Jim Mattson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Jun 3, 2021 at 1:35 PM Jim Mattson wrote: > > On Mon, May 10, 2021 at 7:48 AM Aaron Lewis wrote: > > > > Add a fallback mechanism to the in-kernel instruction emulator that > > allows userspace the opportunity to process an instruction the emulator > > was unable to. When the in-kernel instruction emulator fails to process > > an instruction it will either inject a #UD into the guest or exit to > > userspace with exit reason KVM_INTERNAL_ERROR. This is because it does > > not know how to proceed in an appropriate manner. This feature lets > > userspace get involved to see if it can figure out a better path > > forward. > > > > Signed-off-by: Aaron Lewis > > Reviewed-by: David Edmondson > Reviewed-by: Jim Mattson Hi Paolo, Does this change look okay to you? Can I get it queued? Thanks, Aaron