Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2700425ybh; Mon, 5 Aug 2019 05:28:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4EuDooqYZkpdIr83JaOBrtxqLzsE15DUEY4b//O0k4YFEsUaBkbwYVlOf+ET4CBkdh1p7 X-Received: by 2002:a17:90a:2768:: with SMTP id o95mr17891130pje.37.1565008128351; Mon, 05 Aug 2019 05:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565008128; cv=none; d=google.com; s=arc-20160816; b=K4R+CXMGtEHM8yvqSm9rrVY6NSPX/kfPagLYzgqJ8M3kLIA/vwf0/MvWj1SR9rOX0i WC2yhB2AoEMEBvZnLULzY5PXHMCO1UJi5ryxrJwUWF+0cX1pjtGjWLhl4Sdq2aet1hqo xFqAM2NhzVu2EdPFxdLnOb/R4rEuUY1DAB2HIuS92TGqS+bbHgRdYYm78VNB0WeV3WkM ORw97FdGe4Fv0TEj5ROEhDvlzJlOIBWRf+TylTiNqvAIqwXxTR9pEMlM1kwPITVMU+st nuF8aethvUejdGv+J0YeHR6yvWihEVdGovYCfaYk4HQbp0sWVohrXyVKXITsRezsBdxa djhw== 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=9vjnriQzTp+3fhGfRWD4sJQPpUsfPg2DbYoNAsu2SiI=; b=EZWK22iAYsCdpbul7JzZkiBJ4FbGbiaKm0IgVECcI5QwVPQ075BlzWrovweQ9L2/Mx JJn8neJA83pejhb9Fh60+uCS6I3mANYx9RikHVdayD/6J4RW1ZLaY89ImVK1TG+ebrpg UWdx026fWJUcii9hCLzNaDz1o85dkALNSUkA+h9/FXUlCbGLCsCX0mGqcZg6TPRZAcmC zcq0l555AHc+yHo3aDW47+RJIrGHjzX4wLBhF1fv4WRj5nmnMo+3OcbzoVMt/pTQCaRF krt4gMQxLWiPy/4w8RlMQQIfnBmS0W3rVI9EQrvCRQKez+H3DOIGNLpdbdBs9TRYrTyc cfUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=w4+AecEm; 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 v137si45052749pfc.190.2019.08.05.05.28.32; Mon, 05 Aug 2019 05:28:48 -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=w4+AecEm; 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 S1728693AbfHEM1f (ORCPT + 99 others); Mon, 5 Aug 2019 08:27:35 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40013 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728513AbfHEM1f (ORCPT ); Mon, 5 Aug 2019 08:27:35 -0400 Received: by mail-wr1-f67.google.com with SMTP id r1so84178536wrl.7 for ; Mon, 05 Aug 2019 05:27:33 -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=9vjnriQzTp+3fhGfRWD4sJQPpUsfPg2DbYoNAsu2SiI=; b=w4+AecEmFQ/isfLzRPwHz/5MZljTohJlWFNeug8MdHi82X9VKPhe2ZyRzjWlJCvepw kiniiAn5l66EGF3UK+orcy9NcLV/dmSLcCGmna4yi0GF+i5dlXhqrxaPH9KubY6FHjLD 99EpBHJsVCkZSJoOyTaWRD/ilyziUyk+nwPk0RUQNGwqFtyKJh13sW08S3edQKCVQCth hXeCoblZKRkBPCTcvTHLXaFhtdFGztMlOBo56CnAVX+z7v0wWKGwWN9zmif9kthuQeXJ pVWvaRXUT6j8dcd4c9QdaTp337ImgbfM8u4W9iSkzJGgF+BBdaFvp1PMRW7Na8yEVZk+ giDQ== 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=9vjnriQzTp+3fhGfRWD4sJQPpUsfPg2DbYoNAsu2SiI=; b=UO1LDSAvBjZq0XdYPrO/1DkGjSojdfz/fLQtF8KJ2jGc2fjGS4tYTmHc7l5unSfV2e iGvCQt7OP8qiVkp2oNhwXHd583b7f4iq0+DcUCQSHIS5HtdCAamS9i47t0rfGxctPtJ4 Ev9SMc1KgXlYC0KeEYc7dd6keiOjQ9JP+hPaWr2d8f35o9u6/KlvMyKPjXe9HIx6K20/ 6eIzE7Wk+Og9zIqcq9R7B53/HndyBWiIEjl7ZdXaziohvW/KdWA91Cosdu8PsAjPTF97 10SZP1GB2oIHwbdEr1vBs0jUCGfUs5pVKJdjvAO9Na0rGD1Rhp0t+cidhiK2HmMk+jxp qcsQ== X-Gm-Message-State: APjAAAX071gCy0Q6kwd6y0OQ6wmXYnKp47O8LWBZXzLD3a5PF9V6v3+e pdxGzyMtOGPLvfsXRDkIBtePbK9JBOddus35/wA= X-Received: by 2002:adf:b1cb:: with SMTP id r11mr152697746wra.328.1565008052530; Mon, 05 Aug 2019 05:27:32 -0700 (PDT) MIME-Version: 1.0 References: <20190802074620.115029-1-anup.patel@wdc.com> <20190802074620.115029-7-anup.patel@wdc.com> <98eaa917-8270-ecdc-2420-491ed1c903d8@redhat.com> In-Reply-To: <98eaa917-8270-ecdc-2420-491ed1c903d8@redhat.com> From: Anup Patel Date: Mon, 5 Aug 2019 17:57:20 +0530 Message-ID: Subject: Re: [RFC PATCH v2 06/19] RISC-V: KVM: Implement VCPU interrupts and requests handling 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 1:47 PM Paolo Bonzini wrote: > > On 02/08/19 09:47, Anup Patel wrote: > > + /* VCPU interrupts */ > > + unsigned long irqs_pending; > > + unsigned long irqs_pending_mask; > > + > > This deserves a comment on the locking policy (none for producer, > vcpu_lock for consumers). Yes, I will certainly add comments about our approach in asm/kvm_host.h Regards, Anup