Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1634535ybt; Mon, 15 Jun 2020 05:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfSAXE2makHXRMn+aAShrEe65fjUCqmaYeu6ZI0l69YynpzT9+Fc2YXXya2BJZgk0n9yjb X-Received: by 2002:a17:906:76c4:: with SMTP id q4mr26868911ejn.371.1592224979887; Mon, 15 Jun 2020 05:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592224979; cv=none; d=google.com; s=arc-20160816; b=cARcfaIM6qnCM2yO/0js/ruuqnn9HdVwhg+fEqevmy+dmAhufmSEVfLVHxxdwcUQZE Ci+ASpi1yTcOQTNmO4+uOILF2cp6UW+6xF7spilsvr6bh+ZMJtP6xjDYEuxb+dMFJK5n DELQbJ0rZXkoD1Kd9743SZkgpQ1XVvMk28n/pGJc+TEL2qvLayMEikQKecwTBid1/dgh T7ZLoRuLGm9D+FGk2hTcrR8I7u0sEc/CQeCPk3sFaDBb9WowGW7PHJPUihwBCvZTfdhO Gq3sXXQOm+nvXnLGDCYbgosrgLP2f64EmilBOX9+dGWAckoccwF7TwJgJXgzklTdbwNS TsdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Z4CfAxobYcXW8uXoi6rCh4RUYDD4sNFwL/hEblvjwkc=; b=GsvGsHnTmiarpKEykiDE5hNEmn1kQpa5yiYl3BuLlwC3wGQB8XBU/ybYeUNb4lta16 JQqiVzUE0NY2X94jevoIYhud9FGZxrKUBvRy+dmxhhKS7SRBZuA4nMLHapd0tQ645h+1 ZLamoAAR6tbq/VUJvBCPfugUEPeNHjhCKRjIIckufw1TEXURUyT6tkVa2UlvvyWKfdFN ySembPrTZFfapWbP2TLBj4G1o5FlhPu2d0LCqBtC2iANbWR917a7SNPgNczxdi6d+zAG j30f2ExvzokxWhguz+YWv1B60qga//G7E2iO44swiZso/GS5LClwn8fmxe0KMgzdtWmX k2qg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si8475769ejs.733.2020.06.15.05.42.36; Mon, 15 Jun 2020 05:42:59 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729845AbgFOMje (ORCPT + 99 others); Mon, 15 Jun 2020 08:39:34 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:19200 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728285AbgFOMje (ORCPT ); Mon, 15 Jun 2020 08:39:34 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05FC2Xqe072927; Mon, 15 Jun 2020 08:39:32 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31p5erfdgt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jun 2020 08:39:32 -0400 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05FCSObI014393; Mon, 15 Jun 2020 08:39:31 -0400 Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 31p5erfdfs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jun 2020 08:39:31 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05FCM10e001370; Mon, 15 Jun 2020 12:39:29 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma02fra.de.ibm.com with ESMTP id 31mpe89esx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jun 2020 12:39:29 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05FCdQAK24182972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jun 2020 12:39:26 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 82107A405C; Mon, 15 Jun 2020 12:39:26 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C53DA405B; Mon, 15 Jun 2020 12:39:26 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.1.141]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 15 Jun 2020 12:39:25 +0000 (GMT) From: Pierre Morel To: linux-kernel@vger.kernel.org Cc: pasic@linux.ibm.com, borntraeger@de.ibm.com, frankja@linux.ibm.com, mst@redhat.com, jasowang@redhat.com, cohuck@redhat.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: [PATCH v2 0/1] s390: virtio: let's arch choose to accept devices without IOMMU feature Date: Mon, 15 Jun 2020 14:39:23 +0200 Message-Id: <1592224764-1258-1-git-send-email-pmorel@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-15_02:2020-06-15,2020-06-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 mlxlogscore=605 adultscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 suspectscore=1 clxscore=1015 priorityscore=1501 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006150098 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org An architecture protecting the guest memory against unauthorized host access may want to enforce VIRTIO I/O device protection through the use of VIRTIO_F_IOMMU_PLATFORM. Let's give a chance to the architecture to accept or not devices without VIRTIO_F_IOMMU_PLATFORM. Pierre Morel (1): s390: virtio: let arch accept devices without IOMMU feature arch/s390/mm/init.c | 6 ++++++ drivers/virtio/virtio.c | 9 +++++++++ include/linux/virtio.h | 2 ++ 3 files changed, 17 insertions(+) -- 2.25.1 Changelog to v2: - put the test in virtio_finalize_features() (Connie) - put the test inside VIRTIO core (Jason) - pass a virtio device as parameter (Halil)