Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1251449ybl; Fri, 23 Aug 2019 16:12:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7UY4ZQ6M5euIFpxuzN3vsa6mzQey518u8bzwhSVDlZ2Ckw3MHzFcbfQK34XlZG3WiuSzT X-Received: by 2002:a17:90a:981:: with SMTP id 1mr7723656pjo.37.1566601972695; Fri, 23 Aug 2019 16:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566601972; cv=none; d=google.com; s=arc-20160816; b=y9PQvimUo58UVDa5UWXJs2u381TTQ1Rfndoz8crI9+reqOwJb9Ljm4ozCHe55h1Mu1 Ut+Qi8+A+n7RZHA99qdZQaOBwO6pW1kq5drPBgRDU3s8nvGdTHuV8d2mq/tbjlmbcqx6 t9FVyxTW2BmBh511TAHrEITgcH9vN+psmRudXilHHfPQp1uPE/NqbdfLKwE2QwjsGyWo 8+ZFnAiL1KnuLs1MOny8lHMWDghbLj2CiKi6fevnDRxeirNeIB0dmAcrH5tGaBU+ppp5 /AaKIlcmKrjj7/T9Dxuut3ueNwvP9t2ILagBtukCzX8uxPt02Z0eJ/9R6+8y7aJ9p3GN /rUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=YmpuoFAf1JV9E3g21xDaHXmAHG9KWMG9xyLy+0tzG68=; b=xflOW0NMOOV9F9L6T7PyuAUUxBaM3lbuiguuN2qnABcbk0PQGdDydHzD4bJglA99A9 RW34CtOiks2BSoGmBNi8QXT3Ik95+45LuyHJSaksVQTgYcSH1Ev8P/Z6iw9MpQ93ckb6 PnG621R9Neo0RBhDXH4ODNz6GCE9hmYzkOaV6TVRVWME49fY+HDLE758il7+6G+RxPTD ktIILVPB2KS05nT/OWJ4+Z37AcCATp8tnc17nkH3U+71JWIKrNWzm8ONdMkAlN/AWBWh CATt8LCmKtLs+6I1a7DH61111Lmvd2Pvpe9DRiE250oRujk0PWuvZhZbFM6nntRotrSJ ER/A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si3193529pgc.305.2019.08.23.16.12.37; Fri, 23 Aug 2019 16:12:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405234AbfHWMKz (ORCPT + 99 others); Fri, 23 Aug 2019 08:10:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39786 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403942AbfHWMKx (ORCPT ); Fri, 23 Aug 2019 08:10:53 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7679461D25 for ; Fri, 23 Aug 2019 12:10:53 +0000 (UTC) Received: by mail-wr1-f71.google.com with SMTP id x12so4743437wrw.0 for ; Fri, 23 Aug 2019 05:10:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YmpuoFAf1JV9E3g21xDaHXmAHG9KWMG9xyLy+0tzG68=; b=is3gV9Q9In0FVKsbcFxIqG4PLtusE22UZrQVlxfvlD2pUpRSTdLCaN8rdeOw/q6sQx 8pXBouH+2LN5zBvD1b6HyrSM5oLrTxBrhxIGKhAUjpsSx96ToLmpcccFDDh+au2/iKuK E+dF4Vkv1ptcmQLdhf3OgEQ5izIQqf1ekFbwXYRrfATo8ibMqiMMeMby8uJPFb1FSqNc Gco5+/0FWFYTMt4vUsuFGA0fCXRv3uyWQColntKkHkwRzgGq72uD7UYUpkfS/6YBYzAU t8RCXuZ3QJQFnKf2MaxTrGk6BQZIMOaIQB9tyahYHytKWWJ6lDULG2Mizx2tteLnTSlh g7aw== X-Gm-Message-State: APjAAAVRiwjA5XhQgwqXz89Ostn7Qry31C9+iuhlt1l79CAyhQqNXgBX kLyeomMbwN3hkrymZuHnV82J31K91556slh2XLO3ACaB/G9f+xjZgFGHjiC6vj+ZH5MFYrGdbyS OscmZRAwSyPHvZWpcHUB2f/BD X-Received: by 2002:a05:6000:1c8:: with SMTP id t8mr4657582wrx.296.1566562251954; Fri, 23 Aug 2019 05:10:51 -0700 (PDT) X-Received: by 2002:a05:6000:1c8:: with SMTP id t8mr4657537wrx.296.1566562251686; Fri, 23 Aug 2019 05:10:51 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:4566:f1b0:32e7:463f? ([2001:b07:6468:f312:4566:f1b0:32e7:463f]) by smtp.gmail.com with ESMTPSA id g197sm2205295wme.30.2019.08.23.05.10.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Aug 2019 05:10:51 -0700 (PDT) Subject: Re: [PATCH v5 00/20] KVM RISC-V Support To: "Graf (AWS), Alexander" , Anup Patel Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Radim K , Daniel Lezcano , Thomas Gleixner , Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , "kvm@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <20190822084131.114764-1-anup.patel@wdc.com> <8a2a9ea6-5636-e79a-b041-580159e703b2@amazon.com> <757C929B-D26C-46D9-98E8-1191E3B86F3C@amazon.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Fri, 23 Aug 2019 14:10:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <757C929B-D26C-46D9-98E8-1191E3B86F3C@amazon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/08/19 13:44, Graf (AWS), Alexander wrote: >> Overall, I'm quite happy with the code. It's a very clean implementation >> of a KVM target. Yup, I said the same even for v1 (I prefer recursive implementation of page table walking but that's all I can say). >> I will send v6 next week. I will try my best to implement unpriv >> trap handling in v6 itself. > Are you sure unpriv is the only exception that can hit there? What > about NMIs? Do you have #MCs yet (ECC errors)? Do you have something > like ARM's #SError which can asynchronously hit at any time because > of external bus (PCI) errors? As far as I know, all interrupts on RISC-V are disabled by local_irq_disable()/local_irq_enable(). Paolo