Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2368778pxb; Mon, 12 Apr 2021 23:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ45SPUCiCO3FtfsC/8sapLjZJH6KYKuhi4GJzb/8x/ZksgJykTlSAyVpf2WGRcTjOPpxO X-Received: by 2002:a63:dc43:: with SMTP id f3mr31304064pgj.290.1618295699550; Mon, 12 Apr 2021 23:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618295699; cv=none; d=google.com; s=arc-20160816; b=CQXPYOdLO5b+JthBFwgFXTeyR2AbSfIl5/ewV/dfKU8GLIESv6wNfASYL4dnr8wxh0 MKjD54NzNRupU8fn0R64qaFpu5Dt+r/TFswsJ73x6BgaWqdKqoUOj8l+rWXFrpBEyU3+ rH6z0AkVfsiG7hwAVctntfKNYyVGEZ7G2hKn75/r8BDzpC7/JW3bqfb8qI2XDYFsiv0q PNZKwcHdPPKzvbgBFoaoKAETeLGRx2AAxdBT5iSMnGpp1yaH+U39U6SCZY2qLbwILgfK r/7Mz5jPMp3wdx0U4QvbtbZq+rg3LiNZZa6DmWz7+2wakLbbfVfAUON1+7JHmZaZ+ikQ dYnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=B0snQNysZJ+eshswUbAATX3408PkT3sHTGisEmQRaBI=; b=hR5mTLOIN/tKqPiLi/sXEwzfh9kG78x+ipVpE5c3dbyWRj9WAg56xUHczWFzCsr7td 6DpKKofG69F9AXEoXRORrWUH0wYQkDB/RWcJPByoHIBqpPwoQ3fL+HYVrs9uJ49d0f4L Ah4len/X9hrd9Qhva46F0E4AoVTwM+7964m4Zn/72BpS7l02gdXMnu7NHZyhjulqXyKf ME5gcYa4LQBdUXp76bkWdpfTYDyuHuAWHnABQzoYLrB8wU8RUA1iYM3oOwWeJRTX4FNC dhVXw8DKcuKjzKcR+R4QNbS9TOingbk/auH9vm8QyrilF1CcMv2NE5YpOkfZI4049fSJ 1wag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="IsdBy7Y/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m125si15837876pgm.177.2021.04.12.23.34.46; Mon, 12 Apr 2021 23:34:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="IsdBy7Y/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S245046AbhDLSfF (ORCPT + 99 others); Mon, 12 Apr 2021 14:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237110AbhDLSfE (ORCPT ); Mon, 12 Apr 2021 14:35:04 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580E2C06174A for ; Mon, 12 Apr 2021 11:34:46 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id i3so14397999oik.7 for ; Mon, 12 Apr 2021 11:34:46 -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=B0snQNysZJ+eshswUbAATX3408PkT3sHTGisEmQRaBI=; b=IsdBy7Y/xmB8myrYlMcMiSwKQpCyqozNO016+uuiDGDNmjEQMQMtKQT1O+LeOkXvse J5dsvtTfRBQmpe1/98/Xr8lUlqaVQmFb3UTBov6DVfgEzz/Q+K5SscVQ0eYGManVVXz6 7sa1XVPKwXBqF3rrdjoM68UcJ2BRZhds2SSqmeN1EZqjs9JHC6hCQ8dYalP9U5U0CDAo OdAZAi3C5IdcRVzjPg1oVHfDbUXyvNlPUYb4QbD036RCNftz6pTpjwGtQYag1mkJuniH 5Pc4tjVgYjo6C7XSFUbsv/wm+clXa5+a8uXiKTOvSgRj5uY6jvHvcXD31msbwYm+a1ZU r1TQ== 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=B0snQNysZJ+eshswUbAATX3408PkT3sHTGisEmQRaBI=; b=U3qWg+ju/EAisSUMbS5h5jCzJn0WdXBT2SHrBPtqYgREBZPp5WVxgOFczMazsLXnZb llwcZzOkdEsx5MrZT1clGCuIOenBea2cf2sklHK7t5xWgc6hPTQcsTBrJUL/PoEoAPSR KZlP5kInmbMbWXt0Dgp8wfgubY/tbh+LHrngvzx8ZHjoeCJZ+st/6YxYFrdspH/0174G ReVzqVPsXR9fl9odFUK44zevn1CFAySKOvJclSqwyE3d09/lxn0b9EPEA+Nj9DMwkNcX Iw7aJPPz7RwSlmw5x0MiZ/TjgpZty5GmRwmDEEYhwMpMmUdX5qgXOZRj0hwKaJSH3T0C JOdg== X-Gm-Message-State: AOAM530lA/ymQZaHtRLSPtZfpCppJAc4HFm8nq5atQpuMO4k4nzbB6K9 52eGnw2vCttH73U8+now+W0WM+gta1OC1RZaI20vCQ== X-Received: by 2002:a05:6808:f14:: with SMTP id m20mr397142oiw.13.1618252485403; Mon, 12 Apr 2021 11:34:45 -0700 (PDT) MIME-Version: 1.0 References: <20210412130938.68178-1-david.edmondson@oracle.com> In-Reply-To: <20210412130938.68178-1-david.edmondson@oracle.com> From: Jim Mattson Date: Mon, 12 Apr 2021 11:34:33 -0700 Message-ID: Subject: Re: [PATCH 0/6] KVM: x86: Make the cause of instruction emulation available to user-space To: David Edmondson Cc: LKML , kvm list , Paolo Bonzini , Vitaly Kuznetsov , "H. Peter Anvin" , "the arch/x86 maintainers" , Sean Christopherson , Thomas Gleixner , Joerg Roedel , Wanpeng Li , Borislav Petkov , Ingo Molnar , Aaron Lewis Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 6:09 AM David Edmondson wrote: > > Instruction emulation happens for a variety of reasons, yet on error > we have no idea exactly what triggered it. Add a cause of emulation to > the various originators and pass it upstream when emulation fails. What is userspace going to do with this information? It's hard to say whether or not this is the right ABI without more context.