Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1568150ybc; Wed, 20 Nov 2019 00:08:57 -0800 (PST) X-Google-Smtp-Source: APXvYqySkW0p3mHAyPzOVffj7lnBgCNBBIJon7FK2CVJfMxGgiq+eDNQxOIWwu+tsQMl7OrlZt5C X-Received: by 2002:a17:906:e297:: with SMTP id gg23mr3630141ejb.41.1574237337354; Wed, 20 Nov 2019 00:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574237337; cv=none; d=google.com; s=arc-20160816; b=Y4LHQOdQGKuKBJGXDjhfEuM9GsIgkH1yyIYmVRnS1fIcVcA9XZPwSWnDnkhDAMEV3B XivKJFGwFIWLyIQIGI/yQr6v0sCkOegglgSrGGEDO9SnSFSqN4PplcxKcAB7sRca6P4l onDJwnNEQCLPczAEiGmwsIg/bEPQbOgTmSoISmYQzTtthJMs0GmWuXrRveuL246skiWs rBCr3SB1nM3LowrlTSFu579Ttc3srJAzemwai03pX6UXGHBMYOcDX3mgY799ESIBlY2n cbFM/hVrb11HUUdzwepXlX3B1Cm19hxNN4L5TpX2U1OXcAHEOUk81ozgVaicuND6AdJP uieA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=BacJ7EBR9ytS2/6OwHcGzjIg710Zu5B5M5aCR72bJWA=; b=KKsnlAaLOGPL0dG7+ZLDd9+72nPIgPrUecP80aqllpfdwyoz5AeqAo5CAAQM1Jmdyi wAA3mRBjjOQgJQbJx/E14l3UOPwLrzNjVLVB4AZbSjFtRebrLqjcwx/Pi6fI6cMHes1B kwQdAhmWxwbAbcUi9pTgB255CSz0dugHra9kLxOq10g+KTzI815YZTaKobFefdaIRYsX pc0B3X/HEmdY58+G+m+hmIrOuH5t4Dy4WDivIrfR11w4/CvDhqRDPnxkwQiTjYQFyiZr Ksdn2mPxT+btHKJ+sG6g/oaHoF+lpNAWV0zlPyktDiM4uHpMXt6UJZCAQlzeGiZpvGiz uncQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=VO8JDuiY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si16183205ejc.72.2019.11.20.00.08.31; Wed, 20 Nov 2019 00:08:57 -0800 (PST) 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=@sifive.com header.s=google header.b=VO8JDuiY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727696AbfKTIEQ (ORCPT + 99 others); Wed, 20 Nov 2019 03:04:16 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:41050 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfKTIEP (ORCPT ); Wed, 20 Nov 2019 03:04:15 -0500 Received: by mail-io1-f68.google.com with SMTP id r144so26566131iod.8 for ; Wed, 20 Nov 2019 00:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=BacJ7EBR9ytS2/6OwHcGzjIg710Zu5B5M5aCR72bJWA=; b=VO8JDuiYDFx9cSL5SqJK3STzGgAjyrHydkFR2rL2wLLXNbBFnDHTepn7fMtUJpbe4E obnzLYzJIX2DCUk7C9YHLXU+G/1wcpLygGrJzo4jNx1u9lQjIztdjytuGSy8eYhTw7xO FJAdNaw27IoeGn1j3JYhZNcTVl1HUxjR62WpPXz9x2KYxe+Wh7ujofcnk4UlKbm9EThJ 4ltquqg9ml2N8qlVXt26KMAokZAyaFR0pjwaQmFfZC5vVWS5bnQ/9I+2WYKOL5KpV6vj L44Q1Om9Kbq0JPnB6E0RsIhuJOl9iQ+syl0zVUoU/MXq4vVI6t+72g1afJuZlmB060iZ a+1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=BacJ7EBR9ytS2/6OwHcGzjIg710Zu5B5M5aCR72bJWA=; b=dDgk202UntEOziawzinWKqADj/8xi19lbEwjKhbwCFBHwdjxL/KKUYFzJelYC+mi/4 tVII0QXOCBcyz+l08Gg5P1gGECGmAF9fb1+NE69Fvdllxi5aWNhl85nUINrNjp72HqCX 4rHIfa6nKjub3oONilA8ctLLYYFlFdGE2cesjuKGOZVpt4QHsRwhG94swvUWfzuqH0gq FJjZHvv2pDp2Sg9U3p0+avljrKO7YG2TebTJbebjf+qoBwFXvSRS949HVN8VcvpaDH2v ild5wBrRClUEmC8nXCE1mZP4pNn3T78uxOdnRPCZnxE0ytOY2OCoCr1obk4TfE0Jg/MY JV5Q== X-Gm-Message-State: APjAAAXYgW5FLHC1IZA5H2C9ydc8ijdF6N8Nz5rX6EvJt7vSiEgNOBJo PBjM3t5SV5M5nDAhQ1O+t7q39A== X-Received: by 2002:a5e:a70e:: with SMTP id b14mr1088130iod.166.1574237054759; Wed, 20 Nov 2019 00:04:14 -0800 (PST) Received: from localhost (67-0-26-4.albq.qwest.net. [67.0.26.4]) by smtp.gmail.com with ESMTPSA id a11sm6274182ilb.72.2019.11.20.00.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 00:04:14 -0800 (PST) Date: Wed, 20 Nov 2019 00:04:13 -0800 (PST) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Anup Patel cc: Palmer Dabbelt , Paolo Bonzini , Radim K , Daniel Lezcano , Thomas Gleixner , Alexander Graf , Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , Anup Patel , "kvm@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v9 03/22] RISC-V: Add initial skeletal KVM support In-Reply-To: <20191016160649.24622-4-anup.patel@wdc.com> Message-ID: References: <20191016160649.24622-1-anup.patel@wdc.com> <20191016160649.24622-4-anup.patel@wdc.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, 16 Oct 2019, Anup Patel wrote: > This patch adds initial skeletal KVM RISC-V support which has: > 1. A simple implementation of arch specific VM functions > except kvm_vm_ioctl_get_dirty_log() which will implemeted > in-future as part of stage2 page loging. > 2. Stubs of required arch specific VCPU functions except > kvm_arch_vcpu_ioctl_run() which is semi-complete and > extended by subsequent patches. > 3. Stubs for required arch specific stage2 MMU functions. > > Signed-off-by: Anup Patel > Acked-by: Paolo Bonzini > Reviewed-by: Paolo Bonzini > Reviewed-by: Alexander Graf Olof's autobuilder found an issue with this patch (below) > diff --git a/arch/riscv/include/asm/kvm_host.h b/arch/riscv/include/asm/kvm_host.h > new file mode 100644 > index 000000000000..9459709656be > --- /dev/null > +++ b/arch/riscv/include/asm/kvm_host.h > @@ -0,0 +1,81 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ This should be /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ to match the license used in the kvm.h files in other architectures. - Paul