Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1682568ybh; Tue, 14 Jul 2020 04:41:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHuBk9rmwUtay0mFbYsa6JzsM2xoaAAOnBpf1vaDp9/NvMmGNvBs1a+Ob3SSwlu/pZp5T7 X-Received: by 2002:a17:906:178b:: with SMTP id t11mr3883719eje.489.1594726873041; Tue, 14 Jul 2020 04:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594726873; cv=none; d=google.com; s=arc-20160816; b=q3dKQcf+GFvKIS9+1sLCNuDYFxzTTjjWLs4uqIToglUtUPsag9GtGfwMevfCUgi8VF iCHQnXkLoTp1wk6Ep+E4r4XBMu/7Em6/qG3AVCf4qWpZAhnbwukn9jX7a44rOVao2/ME jQSGAlbuEb02Al5PKIQhZnr2djfzdFVRn4hV7bSK7elOMjqk51G4DdFvx+8G9y7SNOpH B+PsuRSIRvVMp+JkxIWU1MmEOHIsAlaacsQgv8PO4/rA4wTYQOkkAM1jR2OGRLo8wpQm +cqpXZgpA5EDpQ4f/gDsX4c2AS5xxHBCYCtD5Ujsvfozs2GO0PrLYYKUIbUxhvTF8geH rr1Q== 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=djbtRBF39BiHSpxWFEEbJRaEAOVaCDoEWA+zRToKMjQ=; b=U2OeMsG+ybYwznnhOvxUrOoZKT+cI3tAOXjyoy6clHuAlx0ejTqPSZQQjhjPItADik NeSL83z6czOXhFmWSCr4KP0vEoWvtppWXXBYftrLTRKZi1u9iXYt7tLwsBEJHVKytWq9 /q45B0aJqDwRI19lhvnj063HuGFw3RRfW6837Xm6UhacuQ4FICwoddEMfyXqIGYlsXef BUIlZsHMmfs0mA2ZCSJ9aMErX/Q8DjxuXY6YyXsH4a2YTiUTZ19jtZIYWbcHzbbnqZ4q DXZelwNC8Y2cotIGDSBdxpsRDIkxOl9Ke/ZYUdpsRYUtZaAVN7lfsHZfU5pVsLhr0JJE dVlA== 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 e23si8058801ejl.751.2020.07.14.04.40.50; Tue, 14 Jul 2020 04:41:13 -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 S1727991AbgGNLij (ORCPT + 99 others); Tue, 14 Jul 2020 07:38:39 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53052 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725905AbgGNLij (ORCPT ); Tue, 14 Jul 2020 07:38:39 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06EBWLP1183543; Tue, 14 Jul 2020 07:38:31 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 327tna7s76-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jul 2020 07:38:31 -0400 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 06EBWSkd185266; Tue, 14 Jul 2020 07:38:31 -0400 Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com with ESMTP id 327tna7s6h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jul 2020 07:38: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 06EBPXDf029774; Tue, 14 Jul 2020 11:38:29 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma02fra.de.ibm.com with ESMTP id 327527ub3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jul 2020 11:38:29 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06EBcQiW4456718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Jul 2020 11:38:26 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3838F42041; Tue, 14 Jul 2020 11:38:26 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9F20842042; Tue, 14 Jul 2020 11:38:17 +0000 (GMT) Received: from oc3016276355.ibm.com (unknown [9.145.162.148]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 14 Jul 2020 11:38:13 +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, hca@linux.ibm.com, gor@linux.ibm.com Subject: [PATCH v6 0/2] s390: virtio: let arch validate VIRTIO features Date: Tue, 14 Jul 2020 13:38:00 +0200 Message-Id: <1594726682-12076-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-14_02:2020-07-14,2020-07-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 spamscore=0 phishscore=0 impostorscore=0 suspectscore=1 lowpriorityscore=0 clxscore=1015 mlxscore=0 mlxlogscore=947 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007140085 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. in this respin: 1) I kept removed the ack from Jason as I reworked the patch @Jason, the nature and goal of the patch did not really changed please can I get back your acked-by with these changes? 2) Rewording for warning messages Regards, Pierre Pierre Morel (2): virtio: let arch validate VIRTIO features s390: virtio: PV needs VIRTIO I/O device protection arch/s390/mm/init.c | 28 ++++++++++++++++++++++++++++ drivers/virtio/virtio.c | 19 +++++++++++++++++++ include/linux/virtio_config.h | 1 + 3 files changed, 48 insertions(+) -- 2.25.1 Changelog to v6: - rewording warning messages (Connie, Halil) to v5: - return directly from S390 arch_validate_virtio_features() when the guest is not protected. (Connie) - Somme rewording (Connie, Michael) - moved back code from arch/s390/ ...kernel/uv.c to ...mm/init.c (Christian) to v4: - separate virtio and arch code (Pierre) - moved code from arch/s390/mm/init.c to arch/s390/kernel/uv.c (as interpreted from Heiko's comment) - 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)