Received: by 2002:a19:6b17:0:0:0:0:0 with SMTP id d23csp2894711lfa; Mon, 26 Oct 2020 06:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5/tEbYXGV/OWWXRtL16WbcTP/CZBklKgEQAwqriTxtHNszyHlYO002oF4bRLQPyPIolxf X-Received: by 2002:ad4:4701:: with SMTP id k1mr13844191qvz.47.1603720324942; Mon, 26 Oct 2020 06:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603720324; cv=none; d=google.com; s=arc-20160816; b=v8tsumah890awuDMTmAcDxjNs2aOUlYsR/1AifSDZwu164Chjfu1TSAtDt/4J3018T d/ybcr4lOLzEKXlbDMHuCy+7Su/6XKGtRTbaABpNl+68Emt+N73hCZoY8JqMTnqtsJat kw/W9CIwtAQ9u3qXmPV6hn/rsEl0YyWzmOY2Op1md1xFzJbdjlssdWYb9AQzJuAhdEGO AgQOYZr3KrHyP9ZoD1ksyo7yR1bX+7Ta9y4Q/lTWkGbS1USZ/jXiyny/UTzg0BY8W7sQ TFOJHVTfSvAxku2NwkPFb1N7EapdGECQ9UU9tPQ1J8lc7LGLYS8rUbyjUJ33qVm0/rTN SWSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=auub1rovbp8q0GUEyFyhFiazXj7YK8IRFXOXS11Xue4=; b=Ckr2dkrQSGGb34KhDzkeBFQXKcyIZ14TqUR9rYRWqjF9atJNRiBjcv6TaxfwPrhBjr BotR6LO0B/9sn9CITC99e6kXkpSFluyKCbBUbFZVDbvYO9v5wah0BuELS8hZC9vtkTXC mpU7C3EfBIISagvm8EGVMp/cnBXCXIWo1//455b/xE42n5OlZr030vam+hOfwQIsuUvm TJmkFeQ/vyvNMaHWFEZTHjBMALEOgQqV/CPEwq7iwMBnkAQnZBRIAurK64AApM79kf65 e45KuGuYAAiQi3GOAbU5dFBvZcxPUgFCwz3d+6OBH1hxZdXlgnKGvXs6t7boby+3BgIn ugZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@oracle.com header.s=corp-2020-01-29 header.b=h4yVeNbV; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w22si3758689qvf.208.2020.10.26.06.52.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Oct 2020 06:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@oracle.com header.s=corp-2020-01-29 header.b=h4yVeNbV; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from localhost ([::1]:35276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX2up-0005NL-Te for alex.bennee@linaro.org; Mon, 26 Oct 2020 09:52:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX2u8-0005KY-AC; Mon, 26 Oct 2020 09:51:20 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:38860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX2u5-0001hu-Bz; Mon, 26 Oct 2020 09:51:19 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09QDnIFd068914; Mon, 26 Oct 2020 13:51:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=auub1rovbp8q0GUEyFyhFiazXj7YK8IRFXOXS11Xue4=; b=h4yVeNbVLs6kThH5LQ+nrp7UFQWfguDLUaWY6Ki3WyYImBOCEsRv3typc15osgEzRJcp BEi3WuzuZSXtzE9RZBTOOMf46CNmSiR/VMZM6A96PeNfDjH5wi+XwuoNjrAjEMagJmSF rroDkbC074ByPPF1UqZ6ML5Ye7wBHvVEfxNoQ35zGZkJmKU7/UX8RHeXUVaCRTL7jVre c0FjAI7HCSj82aYd+tEzoYPCvgTtBXvIdypSRgEUPG2vKHa436HLKf2E/arIk/jTrlSa PTvMl7M1TKKlBMlbiUtu3/opIwlp/QPTFehCv2eBqWh3xnkejJ34EsMgbUk6kvUJCSl6 5Q== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 34cc7kmpmk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Oct 2020 13:51:09 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09QDoOXk152672; Mon, 26 Oct 2020 13:51:09 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 34cwuk87h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Oct 2020 13:51:09 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 09QDp7TE004625; Mon, 26 Oct 2020 13:51:08 GMT Received: from [192.168.248.100] (/86.120.250.68) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Oct 2020 06:51:02 -0700 Subject: Re: [PATCH 0/8] Add support for pvpanic mmio device To: Peter Maydell References: <1603352576-21671-1-git-send-email-mihai.carabas@oracle.com> From: Mihai Carabas Message-ID: Date: Mon, 26 Oct 2020 15:50:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9785 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010260100 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9785 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 adultscore=0 malwarescore=0 spamscore=0 clxscore=1015 mlxscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010260100 Received-SPF: pass client-ip=141.146.126.78; envelope-from=mihai.carabas@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/26 09:51:11 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.167, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Shannon Zhao , Igor Mammedov , qemu-arm , QEMU Developers , "Michael S. Tsirkin" Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: +ZQybcIF6v/6 On 10/22/2020 1:17 PM, Peter Maydell wrote: > On Thu, 22 Oct 2020 at 09:25, Mihai Carabas wrote: >> The patchset was assembled from chuncks from some old patches from 2018 [1] >> which were left unmerged and some additions from me. Surprisingly their Linux >> kernel counterpart were merged (so the pvpanic driver from the kernel supports >> mmio). >> >> I have seen the discussions about moving the pvpanic to PCI [1]. Those patches >> were sent but nothing happened. Also they are not trivial and require major >> modifications at the driver level also. Given the fact that we already have >> mmio driver support for pvpanic in the Linux kernel, I have sent these patches >> to ask again the maintainers if this can be merged. > > I'm afraid the answer is still the same. You need to provide > a convincing argument for why this needs to be an MMIO > device rather than a PCI device. I really don't want to > add MMIO devices to the virt board if I can avoid it, > because they're all extra code and potential extra > security boundary attack surface. PCI devices are guest > probeable and user-pluggable so they're almost always > nicer to use than MMIO. > Thank you for your input. The reason why pvpanic should be MMIO is that is a special device which is not used commonly by the user (aka VM), it is not need to be hot-plugable and it does not have a hardware correspondent to be a PCI device. Another reason is that MMIO support was accepted in the kernel driver and it is pretty useless there without a device. I know it seems that I want to get this on the short-path, but at this point having a kernel driver in the upstream and no device to test it against it is pretty weird. Thank you, Mihai