Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1710765ybz; Thu, 30 Apr 2020 04:15:07 -0700 (PDT) X-Google-Smtp-Source: APiQypK9G9oSl2i1rclo6tEQM0wyjqKYdc9mBc2E9w2Q+Ewx5Jau+OAYYFn6kQ2mlz8psF1nYkd6 X-Received: by 2002:a05:6402:1d23:: with SMTP id dh3mr2084914edb.349.1588245307537; Thu, 30 Apr 2020 04:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588245307; cv=none; d=google.com; s=arc-20160816; b=Xq6xGHRXhfcOnEy4YrRflGCKyn7Q0Eov+RwWr+Y4r31X+OVXnhOw4RV9jtOyFKjuZZ y/Mm0LDXQU6pQ+9ydYDijKTJcLukmBW5XoS8V9B+zgXSTulWnWGAVjvbQEsb/M2/wuKc jA8bx+x74as9RfEZmlseDTfmpaBt2QBVQP8A7d6q8w6Y4jsndRJZ+r9j6nD4s03T5HpK 8ajMv352ctO2X+l6STz0RMCtgYvMVV2m+gZfpRBp/NE1NJptz0/O2vJa3VXn9D++r288 5BmAVho/Dd/GVrg/HBr21IE+5abszrDhh1gApCdZXCIEF6PtEeUB3RuBir4Ii7Lunl2d 9/6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dmarc-filter:dkim-signature; bh=XKOYbc1TPw2rm1iRNmfQra/wU/JM76LfaUCtYzQ89Ow=; b=gEsF3grR2L0nCDJfk7JjttS8ptDiSX+M/vI7qfHDNkyIxqNksbEhMxIjDG1g1ZB1u9 NaC8BQ1Fk3NkxsgDp3KRk21GxzoXyl6nu1Gc9A4VJvymkj15rdG01mmnpn+1JB9YgkHX FzyHdJf6nKno66zwEKswv/5obQznpld/BnqN0/Fk0aj/+O3J7IKSgkOuv7nF++T6mAbu Li7WgdYTLRbok7yxVLL24UHMVN5ZVUieioxeYw/d9oS01w+Ghqx2h5fZbO99mut0Gf2Z 3yJFaBfS8t2tuvNqr06ovhmzKLrpCc6/BHT3SzDhTqHntsJSi6sAL43lSWh3oV0/psH5 S+UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Mg6vKMa5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si5881589ejf.414.2020.04.30.04.14.44; Thu, 30 Apr 2020 04:15:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Mg6vKMa5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbgD3LMR (ORCPT + 99 others); Thu, 30 Apr 2020 07:12:17 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:28589 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726309AbgD3LMQ (ORCPT ); Thu, 30 Apr 2020 07:12:16 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588245136; h=In-Reply-To: Content-Type: MIME-Version: References: Reply-To: Message-ID: Subject: Cc: To: From: Date: Sender; bh=XKOYbc1TPw2rm1iRNmfQra/wU/JM76LfaUCtYzQ89Ow=; b=Mg6vKMa5Bqf1+/+Qe+zu98T+UQ6YoVY+znWuwcf8VOx+mIXkqeibv4F/B4WWasBHJgTPyOhW aLcVV9dW1xfXlDOCMj1G70xukfLQGt4m3uIgB8zey3O5FJs93zBxO7M3DgGPQpOiaDPnB7JM mq+UUxqrAzvs+Rg8XUAVyu725cw= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5eaab285.7f0f93947928-smtp-out-n01; Thu, 30 Apr 2020 11:12:05 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 87748C4478C; Thu, 30 Apr 2020 11:12:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from quicinc.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: svaddagi) by smtp.codeaurora.org (Postfix) with ESMTPSA id C4305C433F2; Thu, 30 Apr 2020 11:11:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C4305C433F2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=vatsa@codeaurora.org Date: Thu, 30 Apr 2020 16:41:56 +0530 From: Srivatsa Vaddagiri To: Will Deacon Cc: konrad.wilk@oracle.com, mst@redhat.com, jasowang@redhat.com, jan.kiszka@siemens.com, stefano.stabellini@xilinx.com, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, virtio-dev@lists.oasis-open.org, tsoni@codeaurora.org, pratikp@codeaurora.org, christoffer.dall@arm.com, alex.bennee@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [RFC/PATCH 1/1] virtio: Introduce MMIO ops Message-ID: <20200430111156.GI5097@quicinc.com> Reply-To: Srivatsa Vaddagiri References: <1588240976-10213-1-git-send-email-vatsa@codeaurora.org> <1588240976-10213-2-git-send-email-vatsa@codeaurora.org> <20200430101431.GD19932@willie-the-truck> <20200430103446.GH5097@quicinc.com> <20200430104149.GG19932@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20200430104149.GG19932@willie-the-truck> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Will Deacon [2020-04-30 11:41:50]: > On Thu, Apr 30, 2020 at 04:04:46PM +0530, Srivatsa Vaddagiri wrote: > > If CONFIG_VIRTIO_MMIO_OPS is defined, then I expect this to be unconditionally > > set to 'magic_qcom_ops' that uses hypervisor-supported interface for IO (for > > example: message_queue_send() and message_queue_recevie() hypercalls). > > Hmm, but then how would such a kernel work as a guest under all the > spec-compliant hypervisors out there? Ok I see your point and yes for better binary compatibility, the ops have to be set based on runtime detection of hypervisor capabilities. > > Ok. I guess the other option is to standardize on a new virtio transport (like > > ivshmem2-virtio)? > > I haven't looked at that, but I suppose it depends on what your hypervisor > folks are willing to accomodate. I believe ivshmem2_virtio requires hypervisor to support PCI device emulation (for life-cycle management of VMs), which our hypervisor may not support. A simple shared memory and doorbell or message-queue based transport will work for us. -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation