Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp346435pxb; Wed, 14 Apr 2021 17:23:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDiW/MAIhNZf7aYL5F1TgfEaUM7gwUqGEHP7MaxRdbBUHZn6vGrrzcB5q9nzI3llx2Io6N X-Received: by 2002:a50:ee88:: with SMTP id f8mr947256edr.69.1618446234408; Wed, 14 Apr 2021 17:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446234; cv=none; d=google.com; s=arc-20160816; b=ZINKSRcIuMbm1yXxmx8kzko0EGf90VGPdlwKuF0ZqrY2MA4MdsxRwnQBEtSR1JEG9l FUG9bIA0ONTlWMM2V89g0DttkdDaSNkX4Ym5pSbjAOlI0+1cGa85koM+8GD9lkJwMO0R 1Xzxm/w1LBgqeDRxXyAwofQS5NKlgYA1xQean3V4we2dBb3AUlBQZ7tDpECs1ZzmhgYd 43L443jj7zR5HQj9/w9yamUS+ZbRZ6FHZtm0oPsrWXogOEi1fBXnq76BqSncKGXZsWpW 6sVtr1Mbswg/b/tA6GClnZyMsrVWtCJijGsfFg3J/gMmtUU82ImldYWBXyuOGJ4oflTh jTVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:from:references :in-reply-to:subject:cc:to:dkim-signature; bh=peMn3bGHi1WbIZy2c9kwBJwQYy3D17/eXn3K+wzeHSM=; b=I83V3np2ho3MgZPDPm9XNU5UD2uTM7+U7UPu1THXbHFwxXrV1916gCSAL0Pvs2FEwy Tq8369VAvZHl7L4TnTPbbmmstHgCkCdlaSGQYOQ5pW4POJmx65dbFy84qBvqCzps+h/7 yNCnIWjdOUn6v2qFnSC5jNmOk99a7ilKAiDdOn8W0a0YLJ3fI+3/uz++tvtey9UOfbsS A7J7x68mW6BXa+0+86pK2lVdtlf2KpDqlmpSZEkW9Eo3PD836ahBVccSoCBQWs4lVkmS 4ossJuwYRUthpW4/OFgTECCZ3n7njuxXHwvrUJs5DMPSlswtW+hjKd1wxqFEzcc0r8lI Eb4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=S+C98Ejs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id wr14si670785ejb.11.2021.04.14.17.23.31; Wed, 14 Apr 2021 17:23:54 -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=@messagingengine.com header.s=fm2 header.b=S+C98Ejs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350900AbhDNMZ4 (ORCPT + 99 others); Wed, 14 Apr 2021 08:25:56 -0400 Received: from forward3-smtp.messagingengine.com ([66.111.4.237]:43931 "EHLO forward3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbhDNMZp (ORCPT ); Wed, 14 Apr 2021 08:25:45 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailforward.nyi.internal (Postfix) with ESMTP id 7EFA01940C01; Wed, 14 Apr 2021 08:25:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 14 Apr 2021 08:25:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=peMn3b GHi1WbIZy2c9kwBJwQYy3D17/eXn3K+wzeHSM=; b=S+C98EjsHo22xiwKXPb9tm Xfmwqg1UwG+P2LhIutjoRwGVpRw4tHvZtNrNLBM+w+EUxahbQbchhS4O6ARDxQ2a dC60RqhXxVmcGVRyW/UrFnpxQF8q6iGFNLUvpgJk4XXFND+4oweu84Y+LrXjy1WK bW3TXz9h8PFJ28P8ACGjiXpoCgzN3EixAhLX48iTZ2szKaBiwO0xD7lqbk4USW8d E3i0cbATrqryoAo10hnRsYBTjXnXBa5yeIrhfU9aB8TGLN56UnL70f6dgMSUSost BGuPDdPpWzLBkXh+4om9eo2rKw6hEfPhv4v755/bHWUTPa6addMeO9sqRg+jrWFQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeluddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepvffujghfhfffkfggtgesthdtredttddttdenucfhrhhomhepffgrvhhiugcu gfgumhhonhgushhonhcuoegurghvihgurdgvughmohhnughsohhnsehorhgrtghlvgdrtg homheqnecuggftrfgrthhtvghrnhepheelfeefudeiudegudelgfetgeetkeelveeuieet udelheejkeeileekveeukedtnecukfhppeekuddrudekjedrvdeirddvfeeknecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggrvhhiugdrvggu mhhonhgushhonhesohhrrggtlhgvrdgtohhm X-ME-Proxy: Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net [81.187.26.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 64B6D108005C; Wed, 14 Apr 2021 08:25:17 -0400 (EDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 9b99a0ff; Wed, 14 Apr 2021 12:25:15 +0000 (UTC) To: Aaron Lewis Cc: Sean Christopherson , linux-kernel@vger.kernel.org, kvm list , Paolo Bonzini , Vitaly Kuznetsov , "H. Peter Anvin" , x86@kernel.org, Thomas Gleixner , Joerg Roedel , Wanpeng Li , Borislav Petkov , Jim Mattson , Ingo Molnar , Joao Martins Subject: Re: [PATCH 5/6] KVM: SVM: pass a proper reason in kvm_emulate_instruction() In-Reply-To: References: <20210412130938.68178-1-david.edmondson@oracle.com> <20210412130938.68178-6-david.edmondson@oracle.com> X-HGTTG: zarquon From: David Edmondson X-Now-Playing: Floating Points - Elaenia: Nespole Date: Wed, 14 Apr 2021 13:25:15 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, 2021-04-13 at 11:45:52 -07, Aaron Lewis wrote: >> >> > Depending on what you're trying to do with the info, maybe there's a better >> > option. E.g. Aaron is working on a series that includes passing pass the code >> > stream (instruction bytes) to userspace on emulation failure, though I'm not >> > sure if he's planning on providing the VM-Exit reason. >> >> Having the instruction stream will be good. >> >> Aaron: do you have anything to share now? In what time frame do you >> think you might submit patches? > > I should be able to have something out later this week. There is no > exit reason as Sean indicated, so if that's important it will have to > be reworked afterwards. For struct internal in kvm_run I use data[0] > for flags to indicate what's contained in the rest of it, I use > data[1] as the instruction size, and I use data[2,3] to store the > instruction bytes. Hope that helps. Thanks. I'll hang on to look at the patches before doing anything else. dme. -- Tell me sweet little lies.