Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4871040ybi; Tue, 30 Jul 2019 09:33:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8SbV5dp8JsGF63QJog/JZ1Zfi4sEoKuUPZxsbpz3FCn9StxtbBE1kZdju1tV269VWcoTS X-Received: by 2002:a63:5765:: with SMTP id h37mr76365608pgm.183.1564504436470; Tue, 30 Jul 2019 09:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564504436; cv=none; d=google.com; s=arc-20160816; b=o3fATSI+97L58lsfFZc5YDL76K8ACGrGE6OGwomCbOb63l6trZs4WdQUf09Vhi/6eo +qnIwsz6Abz30yXgQOdeFzA3VebAGAOYSk4FuuMemODOGcKim7aRqOFqr7ve5CIDzZ33 FKRANN7oZHvErFMgyv9PunmT0Wk8WcJOvSvnQFxnKZOl3t78Gmg+ImK9t3H/q16+eqk8 iUwG7y3IFC+8DDlayQc5D0NVwcKOTnf+Fb+Cy7EAeDZk1yJQsh8l58pbHWVaZ05Gjego Wn5LfhYrbv+fRQYeZSWeGDfMloRv3kSSJ7f+ldvAvG3i/GI58znw6l7bbtSnRrxsnlNX V3Uw== 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=9EuouZv6KkAfnXeYgN1dDIcC6u4TgIuceUgUlR6uEAU=; b=iPegrn+dmbteqvcbUMYuqEJmz1iD42UfntP7s0bVOlZPuBPM2y+iESMb91JiVrNpyX cKOE20njxquXsSiCMLf+ZVDMZHE16uGEatXBd9F2ByJAUZZnJDJDUWnNL2CXyN+K1rLV 1MmBJnXxa/ZzGUF3w9+B3uAudY6vbsNz/+9tL4T/A6FtV3dQSZlKG1uYOF0pFpYDE7c/ hCn1N4YbQliGlP/p7Matxai+Fg3pHKXG29CfyMjqJ2prinDn9J52Q4YhKa3IAfbAjSDa /lzrDuYNRFe/H8bYt92ps9oU6LSpoAkDG6g9sfTF/Z6dz5+xvEYpeuNT8aZOa+2tTuGU GByA== 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 y14si13997445pfr.82.2019.07.30.09.33.41; Tue, 30 Jul 2019 09:33:56 -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 S1729601AbfG3OCN (ORCPT + 99 others); Tue, 30 Jul 2019 10:02:13 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34276 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727787AbfG3OCN (ORCPT ); Tue, 30 Jul 2019 10:02:13 -0400 Received: by mail-wr1-f67.google.com with SMTP id 31so65951870wrm.1 for ; Tue, 30 Jul 2019 07:02:11 -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=9EuouZv6KkAfnXeYgN1dDIcC6u4TgIuceUgUlR6uEAU=; b=o24DdnahCk5rNUu6hAPBD6N/AzUSPSGgKfw9ekav/9534QWChmyfcxWRLi89WvNL6h dUjvYyOsiIV4sDQHCBLvuqNwPEEjMPwy9RzIec5ui7J2QuPEU1wepJ5GeEW/9SqUduVJ Nktj9IcvuXG89oKfpzbXQkpuN0og3vxYpBSkPgHymlNKAMqq+T5KaS4i0NrZ2OfSMftG RngeoRvV3q5yvJYcoWJlU6QOp14xOd06EAVXegDw3S/ErJOj6ax/wAY3D6KHdYKxsWlb Kk9naqbJT8HFeo+QOuOjMNrZ644o1pP+P4Rwv85iyJtUFC0Pcp2A5XJeut8PA9xneH8V h4gQ== X-Gm-Message-State: APjAAAXalIYfseV5zu6NRFzGovyX+sYGoYVpTT5m/bZBsvR9OlR970+j sv254bnsgOwDLJx5PS6dn865/8EelGk= X-Received: by 2002:a5d:518d:: with SMTP id k13mr32991874wrv.40.1564495330668; Tue, 30 Jul 2019 07:02:10 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:29d3:6123:6d5f:2c04? ([2001:b07:6468:f312:29d3:6123:6d5f:2c04]) by smtp.gmail.com with ESMTPSA id j17sm107585902wrb.35.2019.07.30.07.02.09 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jul 2019 07:02:09 -0700 (PDT) Subject: Re: [RFC PATCH 00/16] KVM RISC-V Support To: 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: <20190729115544.17895-1-anup.patel@wdc.com> <72e9f668-f496-3fca-a1a8-a3c3122a3fd9@redhat.com> <965cffdb-86e2-b422-9c23-345c7100fd88@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Tue, 30 Jul 2019 16:02:08 +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: 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 30/07/19 15:50, Anup Patel wrote: >> BTW, since IPIs are handled in the SBI I wouldn't bother with in-kernel >> PLIC emulation unless you can demonstrate performance improvements (for >> example due to irqfd). In fact, it may be more interesting to add > > I thought VHOST requires irqfd and we would certainly endup providing > in-kernel PLIC emulation to support VHOST. vhost only needs an eventfd, userspace can poll the eventfd and inject the irq as usual with KVM_INTERRUPT. Of course that can be slower, but you can benchmark it and see if it's indeed a good reason for in-kernel PLIC. >> plumbing for userspace handling of selected SBI calls (in addition to >> get/putchar, sbi_system_reset and sbi_hart_down look like good >> candidates in SBI v0.2). > > The get/putchar SBI v0.1 calls won't be encouraged going forward because > we already have earlycon implmentation in-place and Guest kernel can directly > write to UART registers for earlyprints. > If we still wanted to implement get/putchar calls then we would need a RISC-V > specific exit reason in KVM. We have tried to avoid RISC-V specific IOCTLs > or exit reason in this series. Sounds good. Paolo >> >>> We were thinking to keep KVM RISC-V disabled by default (i.e. keep it >>> experimental) until we have validated it on some FPGA or real HW. For now, >>> users can explicitly enable it and play-around on QEMU emulation. I hope >>> this is fine with most people ? >> >> That's certainly okay with me. >> > > Thanks, > Anup >