Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2566105ybh; Mon, 5 Aug 2019 03:10:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5XStyoJAOxyPNxEL+HVkZ3k/zvcnUgRKmlWLXhJCuz9MsandRgZNrVLNBGZAzo7vMyONK X-Received: by 2002:a63:4461:: with SMTP id t33mr343594pgk.124.1564999815476; Mon, 05 Aug 2019 03:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564999815; cv=none; d=google.com; s=arc-20160816; b=k0vfOzI8w0lv8gp4Zkc8cZXgo9Fv3ZL2dvRKF0wlrEqaBxB01WNb0gMDLr6463yn0G iDTsuMiDhQ84CNghG4bE0tcyhcZ2fiSmbuOtwnvtzuk5pOlM5VqM3kyMJjr4y8FTtxGh Ny64H6abzOYmVVUKqR2oCRgupj3BpfGYym8WMXqPkW0hNI+KjJz1hhv5HB2TeUyc/qok I/45dTsoAhuvdGNK1FGh6bVOW5qI+hDc0I1ybAEh5HCPDuKvW4TYwCQ57iZjLZi1N6rg tO7Q3FiP6ECcSAWOcvZZ0moITdzzzh9sXF4Ebs2WuxSxZDic8F31BodpOEdmeJDIOBi5 qD/g== 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=sbNFx4il0vCPP+D1Yz8x0vBctgaZ7/n1Iil30rI0v3c=; b=vQGvZIXyfJSJoJR/LuHGEWWq0bso3u+K6IoabRLQ1wUEg5rdB+aj5S15qtPLGS0xGu pLFDfe21EtYhfa6WW6WNM12riWlV4NOJcP/kSMXMoZ6d6y3+8+m2p1601mibn3TmfvbT 1RY6wQxCgm95ASpItw6xT+GaEQgC6uhr1OB6f/Ztfy/0QeP3EKsRH6TTrj/0AC/RxjDU LmRm66yyPgiOPTa+Ia0xuPx5SvAhlxzTK1zk8DM13jNlsVocQm7g8G0mPFGawhKKXBiY VRqPgUJtMWX+NOPhzKoGrYn6TPKRGEwB2gKxU38aRcd8z3WhW2whLAYv0WUHmnFxN+o2 bX8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=soqdUaOS; 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 q1si44186818pgv.58.2019.08.05.03.10.00; Mon, 05 Aug 2019 03:10:15 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=soqdUaOS; 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 S1728332AbfHEKIz (ORCPT + 99 others); Mon, 5 Aug 2019 06:08:55 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53256 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbfHEKIx (ORCPT ); Mon, 5 Aug 2019 06:08:53 -0400 Received: by mail-wm1-f66.google.com with SMTP id x15so74150132wmj.3 for ; Mon, 05 Aug 2019 03:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sbNFx4il0vCPP+D1Yz8x0vBctgaZ7/n1Iil30rI0v3c=; b=soqdUaOSralN5UpCSAB4aYas5NIxSdLzk1zgv+q/98sdZRE/Uio34RwJkvg1ux7XVs 5poCzxjYX/nORxXWgj3xE0G83Bz7cFBvE1iIpyBVDkt78RiH8zefcLYFlr0F5jMCd1Ys zqaqJQGjdQgEXy5SvmyviyhLNfmFZ5R2Vus7q5cL4v/7rZmpzUkfesNqIBiKd+qA6ASm uS8eIqrPz9w1mhrcpTaemqzJWqMdIJQjzP3GuXWRLxnteiDrRBlZKwwPZAquJJGv20z0 P9m/MxCTFRpkb64kjtVIL9zLa4hPiuJ+vlS9IEovo8tfKl8WuzZtEKHfGmN9d7eBZ9GS hh8Q== 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=sbNFx4il0vCPP+D1Yz8x0vBctgaZ7/n1Iil30rI0v3c=; b=czC3SH5/I7pLu+0sMLf4UuoZ106+RA0So6r7oyIDNUQa0oioT4cFXo+i722IcWoOU6 bWLSi4KamY7NxYSq6tkhAq7+Mjh/h+we72Ip6nOUnerVprvgp1bvRF53Zn0xDnl5g45U p7xWKbQvU6hkzoOGSzZMmuoDNfYYqtMnkfFRxUP4L3TXYd6/CmuBImuraEIf5mn5hJHZ 3d7A2hdJxa8GnpFWVTfIQ3HjKg3c27lw1ZsXgubL6sFJlKewBVhuoHqqcpYjgTG0TSgg 4h4Tb9KyLwaLcCduSMWokeDsMn0EXwpAJay84gaOWniq7jfERM2J5Bqu46zJ0lyUCBWV WhxA== X-Gm-Message-State: APjAAAXZsCtZcku+di5FIXeMvceeaz6RrEPLM2gLj7lKpwE29J9fDZV4 ThjgJ744N3HL/y5AtBn+qzW1wJdhNOtckSx9gY+RNw== X-Received: by 2002:a1c:cfc5:: with SMTP id f188mr16598754wmg.24.1564999730931; Mon, 05 Aug 2019 03:08:50 -0700 (PDT) MIME-Version: 1.0 References: <20190802074620.115029-1-anup.patel@wdc.com> <20190802074620.115029-13-anup.patel@wdc.com> <949b75ef-5ec6-cdfd-5d5d-5695f35bd20c@redhat.com> In-Reply-To: <949b75ef-5ec6-cdfd-5d5d-5695f35bd20c@redhat.com> From: Anup Patel Date: Mon, 5 Aug 2019 15:38:39 +0530 Message-ID: Subject: Re: [RFC PATCH v2 12/19] RISC-V: KVM: Implement stage2 page table programming To: Paolo Bonzini 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" 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, Aug 2, 2019 at 2:44 PM Paolo Bonzini wrote: > > On 02/08/19 09:48, Anup Patel wrote: > > + hgatp |= (k->vmid.vmid << HGATP_VMID_SHIFT) & HGATP_VMID_MASK; > > This should use READ_ONCE. Ahh, missed this one. I will update. Regards, Anup