Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1105153ybe; Fri, 6 Sep 2019 11:56:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw72d2pnS0ReYPoAJwqsTOc2oP0Q04iQn5tmTIlX7eBYeYCZkVZXqVoMnCxGZNygVhCHz1O X-Received: by 2002:a63:181:: with SMTP id 123mr9500306pgb.63.1567796205446; Fri, 06 Sep 2019 11:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567796205; cv=none; d=google.com; s=arc-20160816; b=yYtdxYXycA8wW6TLOAjxOlG2ERpo5BXMuCXsavN4/rsZpEdHSGUgSWB0Jt+xhXk557 ANls93bgRXSBDx28dT9bn+KfjDRq2TubDTSBF10uRylm8Ty/hUkFNUii5Y7mCnH2jTXs SlxOdyGdmgVkteo7ZuF0AospWYc4VQBSw0fZR4XwRQc8ItYLnUVd9fhxe5T7SgrnrkXM KToLb7ezdzy4HR/LgZJul8VdAEP1Tx7pBkvUG05HDV+oX/yBitK6V+KZIwzYKqFC30l4 pkRJwkODMTj5X7gJJ26FRAwQ/OIEs84q2eTbZZCgz/Nz6zRY/l8tO8S8NLlsGt/ayWxD IdPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=M3zKBTNhIg8D+FIn0RZewf6I27LDWwbXRyiB+RiFIt4=; b=Qz9Ve+oP0To2dmoMjJkraLJsHZWJ+wMxHqNSSy2roKPgz3lp8w6rrdkDruJG3Zrpbx fRdFOZ1uPUt0Nq8Ldr3Ru11EkkexCOVzP9dXODNYrqwIHnj5WozxD71ZlX3zerj4XNCs /fz+GCdF3toXQtpF2Xgq01UOqpZAa/gxlWo144jhyyDxETZqIWBSDQNQhiL5nYhzjk/9 NCG5AFEzXty9IoJJm9Z5QnDmYM9zWVO/+eDX+3u0aGdzH+6LAw/YzCvVZoDZ1XolFAUK cKf/l+NeXsxLs2DzcjoFvHD3NYr6N68nfB1QReS2i/ZnHCpjesFzBvH4LdhDOSgWjgir lsOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QJLxdzCm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si5075635pgs.333.2019.09.06.11.56.30; Fri, 06 Sep 2019 11:56:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QJLxdzCm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393511AbfIFNus (ORCPT + 99 others); Fri, 6 Sep 2019 09:50:48 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:33544 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727143AbfIFNuq (ORCPT ); Fri, 6 Sep 2019 09:50:46 -0400 Received: by mail-oi1-f193.google.com with SMTP id e12so4710317oie.0 for ; Fri, 06 Sep 2019 06:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M3zKBTNhIg8D+FIn0RZewf6I27LDWwbXRyiB+RiFIt4=; b=QJLxdzCmNOBoOEJcJvHLBetbvlrq02aheoBREc7Fpa35nydqJO0APfx6nad3lCVm28 lJ1ZUe0/fJeQUUFgiMPPj6/fbcM9e7OjKrEc1QrYxG5ClkOdWLBjZFFcMIApdjWbuChA GwWqFB90O/OmPDWZFtpAJd0+ch2CJJJrMPGfYnCy8OENP1wN2b8V+IZ2aaVx5mHzHYo+ C0QkvjyNgA22hfWbRziRRoMC+Uw8bf7qwZa9iRMstY4NRjAsqoN/eAs29FaHED5FZO7H 9y7wj4KZNLMXXLh1zyjnoa+6KX/HQ1RXmCmVcjWUoO1zek/YPUj/3Er41Lu+SUg8DZJ2 YJBQ== 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=M3zKBTNhIg8D+FIn0RZewf6I27LDWwbXRyiB+RiFIt4=; b=i2zWHzttYUYjrYD1Iff1Lghif6zPiD2CKtw7yAhppREvqX4Z2B0Rh0KvGCIeUdRV+t 3DqvyIOYC1p8Z5Lz9OBKKZxcXaV1LCW7troQVm9QSp8lhIpPtOnY6I28RGmAFr1b66ET 2SlG1C8MV5wIapIIqcF0VZaxJFA2QVcQSRlnqouLV2dWN2W5CzADIw7Ev9Ow40ghq19z uC36wt3JaInnf61H4r3vMRG6g5x8kuhwDrDU2FTzU584EEiYmctVLVzeGRW4HCpygfmM kGqzn7wBE4tYvXF6AQq9vM/tlbTxvRl9L+Svsqo7amuFUlGU8lvdNLn89xE/EMgPodeL UiRQ== X-Gm-Message-State: APjAAAVsj0U7tAvRXNMbb7369q63sfEiELoEWw6pOvgVveAAGJRgXcVu zeI+PrNVO732f7fTQzRb/BFzSdSa6LJbQo/gNi01WQ== X-Received: by 2002:aca:50d8:: with SMTP id e207mr6690938oib.48.1567777845580; Fri, 06 Sep 2019 06:50:45 -0700 (PDT) MIME-Version: 1.0 References: <20190904180736.29009-1-xypron.glpk@gmx.de> <86r24vrwyh.wl-maz@kernel.org> <86mufjrup7.wl-maz@kernel.org> <20190905092223.GC4320@e113682-lin.lund.arm.com> <4b6662bd-56e4-3c10-3b65-7c90828a22f9@kernel.org> <20190906080033.GF4320@e113682-lin.lund.arm.com> <20190906131252.GG4320@e113682-lin.lund.arm.com> <28c5c021-7cb0-616b-4215-dd75242c16e6@amazon.com> In-Reply-To: <28c5c021-7cb0-616b-4215-dd75242c16e6@amazon.com> From: Peter Maydell Date: Fri, 6 Sep 2019 14:50:34 +0100 Message-ID: Subject: Re: [PATCH 1/1] KVM: inject data abort if instruction cannot be decoded To: Alexander Graf Cc: Christoffer Dall , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Marc Zyngier , lkml - Kernel Mailing List , Stefan Hajnoczi , Heinrich Schuchardt , kvmarm@lists.cs.columbia.edu, arm-mail-list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Sep 2019 at 14:41, Alexander Graf wrote: > On 06.09.19 15:31, Peter Maydell wrote: > > (b) we try to reuse the code we already have that does TCG exception > > injection, which might or might not be a design mistake, and > > That's probably a design mistake, correct :) Well, conceptually it's not necessarily a bad idea, because in both cases what we're doing is "change the system register state (PC, ESR_EL1, ELR_EL1 etc) so that the CPU looks like it's just taken an exception"; but some of what the TCG code needs to do isn't necessary for KVM and all of it was not written with the idea of KVM in mind at all... thanks -- PMM