Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2570023rdb; Mon, 25 Dec 2023 18:30:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFx8b+bfwMWX0DEvyZqGdIpS+fYD+IZuVH9LxwidtBHb4Tson4cJr4VoFZqVY6kibRWnIOO X-Received: by 2002:a05:6830:4b5:b0:6da:6bc0:1ee3 with SMTP id l21-20020a05683004b500b006da6bc01ee3mr4602696otd.63.1703557824040; Mon, 25 Dec 2023 18:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703557824; cv=none; d=google.com; s=arc-20160816; b=pGPujNfrfcjoycaEco1JEhEQFarUe6L8DSWhO+1NuxIfyj6huXheY6Ha3Ldnu3ORlH NdbJZZ7iSUw63d79uYpEJwneHEqt4Od0xPvnUOoGdX1HfzX/xsRvdgXAffSuUV5iRIrv EYAF8d8KNBTd+iACHcbrBOun956Np/o2mbvsxxuifNK0BgdVdnWBbcLq4MU1h48bv1wM 6O2oWi/zp+vld3EAejiixi4eBShcCXPqdBMZZhwukQz9hpvMoXIesR8rAsQeBHZRuImF Z4GQ5qX2/J+kcWHOWOv1+Mmw2a253L834LuhOdSSzY2Z+XrH6bHAR5B6zfzys85ykYRK rwPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:reply-to:message-id:subject:cc:to:from:date; bh=ohuiIOuzluoQTcyyT/30KFzL552/HfHd8wqjjbgQ6S8=; fh=aj8EK5eFyTGIfkZNbuJ6zyUbQqQIPY8FilToSVzzbjs=; b=Xy94nUlO3oyooLnKhu9sKLOEQTq/BHQkeIrzi3EwhfbYJPpwD+HTNy5/uwb7d78/P2 2DUjAkAM2+2zedEY6XAOTTdEdboBi9eLNoJ6DPCkfKAxvise+qnFHQQOUPJYfx44Qxw2 /EKg6/Ot4HskHZDhXkaEAnZHKHjUvuokV7b6z0tfL/YmrtjtCNPQjgdK4oEWP42h8sLr dv2jvyI58P/FJBRifbGV9RBVICBoNgyHC1MD24sGxrl9VBxfhQ9OqnBGM2rBKhKJyah7 iuSjTDlv38cnOAdVouFda9G18cUWP6K1MtmQYew6r8d6txyA77ULchEnquVxcEFSpSZ0 lxCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w4-20020a056a0014c400b006d98f4ffb47si6025017pfu.112.2023.12.25.18.30.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 18:30:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 808A2B21B09 for ; Tue, 26 Dec 2023 02:30:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0035210F2; Tue, 26 Dec 2023 02:30:11 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADE27641; Tue, 26 Dec 2023 02:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=wuzongyong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VzFsMjM_1703557804; Received: from localhost(mailfrom:wuzongyong@linux.alibaba.com fp:SMTPD_---0VzFsMjM_1703557804) by smtp.aliyun-inc.com; Tue, 26 Dec 2023 10:30:04 +0800 Date: Tue, 26 Dec 2023 10:30:04 +0800 From: Wu Zongyong To: alex.williamson@redhat.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, wutu.xq2@linux.alibaba.com Subject: [Question] Is it must for vfio-mdev parent driver to implement a pci-compliant configuration r/w interface Message-ID: Reply-To: Wu Zongyong Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, For vfio, I know there are two method to get region size: 1. VFIO_DEVICE_GET_REGION_INFO ioctl 2. write a value of all 1's to the bar register of vfio-device fd and then read the value back which is described in pci spec Now I am curious about is it a must for a vfio-mdev parent driver to implement the method 2? Or it is just a optional interface. Thanks, Wu Zongyong