Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp684960ybi; Fri, 2 Aug 2019 02:35:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuIl5vhnQXk1oOcia42QmlyXYSNufbpOlsPPGTxK6N1sUKVXVCZl7HVyvrQWArva4D9Nl9 X-Received: by 2002:a62:58c4:: with SMTP id m187mr58216357pfb.147.1564738511091; Fri, 02 Aug 2019 02:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564738511; cv=none; d=google.com; s=arc-20160816; b=FXjEm4lpxODeYjb1l1YNTCb5zr8vgh97f0v3NlFdUKzzNn94DPlZRuVu2mU1SV3fWh kgxBy+fX/1gdze9jJ0G4FpFl8Yut+BfiNHtPsM6tdDdsAyPtY4V4A7SstJqKln0lnLsB kCSv+JDMcKIS2Wc9Ay8+aejoQkCppWDm6wxyroFNP8CSCm7nUpXULOd5CImckfiCJwxf I1+mk5H2arxAUGxuv8FrA/SBJ7OOEi/5OdmCt2hEDRvyHvo2NnBDueTmF7fz6Wd2NQfk 8h/tGb3I5hqXJ/xAwzacjrxYReu4Xb/mEmER3Me+8b6EgfFHBxefqmGp9Lrq5av8xXdg VdUg== 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=APOXhup+sZGXS5d0UC7uGeTiWB/G8v81K64OFOYtTQY=; b=u9GKsMZF5LGklHdhN4zS9WAi9g81vfExn2qVqEB39a4E6DKv2kCpZ77diRWqiljtvZ Kn6OYILELp7WPRyuxe74iwSQKK9BSqKLFgZdtmeleG5Cm08tMn++sQdxZ0r6qAuHehPj QUtzeQ7x2T/waUSQRPvTLrzyGHqjMEbSTbCujgFu5WGaUESo7sZ673femjIGNzOjWLCX oOznZrHJvfLWNzgCS5STlU4KdXchOIYWVS1pX88zcNbqpHf5EkPqeULShJkBrrW3yI4X bmVYHzMzyxY4XwfsFkfOdBWOdVFMZ3iEwpwB8mbJYW+ZzSz5XlBPdmj0v59JitC3rzKV ElbQ== 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 b28si40191266pfp.92.2019.08.02.02.34.55; Fri, 02 Aug 2019 02:35:11 -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 S2404061AbfHBIRr (ORCPT + 99 others); Fri, 2 Aug 2019 04:17:47 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36411 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbfHBIRr (ORCPT ); Fri, 2 Aug 2019 04:17:47 -0400 Received: by mail-wr1-f68.google.com with SMTP id n4so76303584wrs.3 for ; Fri, 02 Aug 2019 01:17:45 -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=APOXhup+sZGXS5d0UC7uGeTiWB/G8v81K64OFOYtTQY=; b=imgQeg8WKX5elrpnBo5+Jyc+J2wa2D6bHcCGZPczcMLi+Si978q+Pm1oJdvXaBN/sG Go4EDCHwDom1dD+oVVrjxltqgt0kK8H538G0OI7Vd9pQTJ6sD0PusF/sXoxcudd9uGCy aoeQXIrToTU0H4VSLwVAzplkSD3IIZtxj2rHA1SLZkSGR3rpi/ywh0Gp2z/kObf9bIzJ J9Kt8q+xI2+PuYhAAPnpOTDbZaT2KYOQPeTxC+YuiKcwTj4FjiP7qnkJWgVQ+F/30pzK AKnYXDf+a2x4cQO8yWCw16eBnmeiFoQOy52NodztMx3OO42O+C/Gb+r1RamZqGUFdM2d okQA== X-Gm-Message-State: APjAAAU9mbrJ8TwNkRMx3SjThoW4j9algHPhR5QWX12e7SIAG7CN/Cei uQvaAnZUSJ5gQW3RAPngCoDSAf1UL7M= X-Received: by 2002:a5d:4101:: with SMTP id l1mr7547509wrp.202.1564733864909; Fri, 02 Aug 2019 01:17:44 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:4013:e920:9388:c3ff? ([2001:b07:6468:f312:4013:e920:9388:c3ff]) by smtp.gmail.com with ESMTPSA id p18sm75207312wrm.16.2019.08.02.01.17.43 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 02 Aug 2019 01:17:44 -0700 (PDT) Subject: Re: [RFC PATCH v2 06/19] RISC-V: KVM: Implement VCPU interrupts and requests handling To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Radim K Cc: Daniel Lezcano , Thomas Gleixner , 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" References: <20190802074620.115029-1-anup.patel@wdc.com> <20190802074620.115029-7-anup.patel@wdc.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <98eaa917-8270-ecdc-2420-491ed1c903d8@redhat.com> Date: Fri, 2 Aug 2019 10:17:44 +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: <20190802074620.115029-7-anup.patel@wdc.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 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). Paolo