Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp853301ybt; Tue, 7 Jul 2020 01:45:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZQjJxj0ElBUmKNexw/vnOvQ2fjuGOUOXKsDwtuYgzkc8lF2YSGl0TmNyOdn/+zTX/KFR3 X-Received: by 2002:a17:906:a1c7:: with SMTP id bx7mr40919729ejb.388.1594111539638; Tue, 07 Jul 2020 01:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594111539; cv=none; d=google.com; s=arc-20160816; b=MyHPTcpS13N1wkr32mTLcrr5cwirF8SdCxvANXmgQUCQKhYWl2zTKGUnuzdKYNiH5L 1i6GS+HhlNfeRlaGeVlw04SNinUxM2dAoyAIZ581ipDTRVIrXq/a9tiHJz3pLj/C1/rk GO+da4NuWbf91OKgrpdLlFXVkkRwADV1cyUgg12i9R12CtowC4qrxDnhFqZ3NyXKJ4KK xnOYsrk5uDD8/iroBcj8zxBgjG8sG0UzOg0sOY9ff2s8gs/88zOcHLkEUowTYAGykkHB QiwM96vlvsQNBErICFYyLutGkHT44X/+fqE/mssZOAhpBarcHdSuwVbgLb16x7YjRJrb bVYA== 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=H1PCsXvFmexVY5XmdmUcQX2bfKuvVmJn//jzSuxaQhU=; b=RpB11a3yN85ydd5KJrj09ZRA5FsRFkmUM9KHeoeRtckQ0VMT10FDa6p3TVWhgzKvLG 0Ei8+aOv1CfMpPJWJI2dmoMn+qOSE9y6BLQ+L+q8w0B+DLyoU6H8zU1NZbsErdEcjuOC 19PVZz790xs24r4LM33VRuS6DAyLEDJsFCW+7yvbLTsV6S04sRCEvXulAsneJnXmqPHk xk3vej0NswqB1uLPdWqNr80MtD8cSxv3qyLNjBqYYzJysCyHR2af/BN+MSMH7hu1MKU/ OKYj91/7RQUGFzsQDNL2rZeE1B7zQecdDzk+M/iP+NiTAjP+Hz2df79orir33o854kPh iuJw== 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 c11si15701927edv.140.2020.07.07.01.45.16; Tue, 07 Jul 2020 01:45:39 -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 S1727938AbgGGIpF (ORCPT + 99 others); Tue, 7 Jul 2020 04:45:05 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:64132 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgGGIpF (ORCPT ); Tue, 7 Jul 2020 04:45:05 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0678Ve6c104150; Tue, 7 Jul 2020 04:45:00 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 324bpmpx67-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Jul 2020 04:44:57 -0400 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0678XoAT110196; Tue, 7 Jul 2020 04:44:50 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 324bpmpx25-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Jul 2020 04:44:49 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0678iVx4002463; Tue, 7 Jul 2020 08:44:42 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma05fra.de.ibm.com with ESMTP id 322hd81mdk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Jul 2020 08:44:42 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0678idwq49741930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Jul 2020 08:44:39 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6511BA404D; Tue, 7 Jul 2020 08:44:39 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 87860A4057; Tue, 7 Jul 2020 08:44:38 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.29.12]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 7 Jul 2020 08:44:38 +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, thomas.lendacky@amd.com, david@gibson.dropbear.id.au, linuxram@us.ibm.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com Subject: [PATCH v4 0/2] s390: virtio: let arch validate VIRTIO features Date: Tue, 7 Jul 2020 10:44:35 +0200 Message-Id: <1594111477-15401-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.235,18.0.687 definitions=2020-07-07_05:2020-07-07,2020-07-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 suspectscore=1 bulkscore=0 clxscore=1015 cotscore=-2147483648 spamscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007070062 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I changed the patch subject to reflect the content, becoming more general. 1) I removed the ack from Christian and Jason even far as I understand they gave it for the functionality more than for the implementation. @Jason, @Christian, please can I get back your acked-by with these changes? 2) previous patch had another name: [PATCH v3 0/1] s390: virtio: let arch choose to accept devices without IOMMU feature id: Message-Id: <1592390637-17441-2-git-send-email-pmorel@linux.ibm.com> 3) The new version generalize the validation of the features by the architecture, making it not IOMMU_PLATFORM specific anymore inside virtio.c The architecture specific code for s390 is now testing the virtio features. 4) Since I reworked the patch I also moved the arch specific code from arch/s390/mm/init.c to arch/s390/kernel/to uv.c 5) Finaly, I splitted the patch into generic virtio and arch specific code. Regards, Pierre Pierre Morel (2): virtio: let arch validate VIRTIO features s390: virtio: PV needs VIRTIO I/O device protection arch/s390/kernel/uv.c | 25 +++++++++++++++++++++++++ drivers/virtio/virtio.c | 19 +++++++++++++++++++ include/linux/virtio_config.h | 1 + 3 files changed, 45 insertions(+) -- 2.25.1 Changelog to v4: - separate virtio and arch code (Pierre) - moved code from arch/s390/mm/init.c to arch/s390/kernel/uv.c (Heiko) - moved validation inside the arch code (Connie) - moved the call to arch validation before VIRTIO_F_1 test (Michael) to v3: - add warning (Connie, Christian) - add comment (Connie) - change hook name (Halil, Connie) to v2: - put the test in virtio_finalize_features() (Connie) - put the test inside VIRTIO core (Jason) - pass a virtio device as parameter (Halil)