Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2096300rdd; Thu, 11 Jan 2024 21:35:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy2EUGwMXdVyAmogvtwAtBNeYlljJzRUFGchlOf/8zIs4/Hr8W+HT7qRxF21o22zYxch+D X-Received: by 2002:a05:622a:243:b0:429:aee6:ba49 with SMTP id c3-20020a05622a024300b00429aee6ba49mr1128847qtx.32.1705037723450; Thu, 11 Jan 2024 21:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705037723; cv=none; d=google.com; s=arc-20160816; b=pNY8Zmqyoa4wy209Sy5kOEH4xlrznfvlMxUyKlsG0/VzXyxni91ukZUHzXCaR1rcBi 2b6nInmYZdpnqG+EFSCvtdYUvdY4HCHByoS8zxPkBQaFTThVMlB/k/HQGf2lrdvpBZTj gWexvg+jE3DLJHuzqD8aHlEq4tg1u2R76utlu09nAjN312WdIaTu2T+t6tqcOeQivSyx 7hycnX0o4CAzEnV/wmLSSUWdTGV/v0bTCR+BV/NWLIVDAYPmGA4LvKgdGrY9P2b7o/x+ n0Cw0UAK5yNSA/6ixwhBj0IUA+i6rbNiCGs1JzT4YiRmEsUcT1fiwF6YzKmwQWonymbJ kSig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=+D2V+TmU64uAjVM3eOUsnNLgN7TXw+iA4jUZDqS1rPI=; fh=VUvqVVa4ThKH9gUIN9Tmas30KqEIoexcJpjvjtZ86iM=; b=p4ieHvvdBhUIoZlHGcjNDqDLktqhmo3/98U3sC8VJNgroP6BYdcdiKmZ8r5qpAx8j3 MMyks9c3ZQsJkARPq95O3WmBa0RRxlY81kN1XV/RU0DZbr3uJV1YXZ5MNlxLkRh7tj0W o+Hoj0OF2PRV5xgydOwMv4kmmzksspcLtupPMmS7dRqkdXQAAs1qXBmnCq497aFfxBKb YAQ4N+9LYBLqPt1+HEElPCyDf2wmdM2BKIZDukONWiAuB/W8KGnI3xMcMIOLTCOxoipW FsiWLtZ9mnllkdRsKkroZxoh64co+oRmBZ5NfAu1sw4KDmT6x1yUAf+TrhXG6KarM6DJ Rt3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n8dcbZV4; spf=pass (google.com: domain of linux-kernel+bounces-24315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24315-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m17-20020a05622a119100b00429d0e9cd01si159957qtk.500.2024.01.11.21.35.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 21:35:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n8dcbZV4; spf=pass (google.com: domain of linux-kernel+bounces-24315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24315-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F23061C24E70 for ; Fri, 12 Jan 2024 05:35:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAE2F5B5D9; Fri, 12 Jan 2024 05:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="n8dcbZV4" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 5D3C95B5C6; Fri, 12 Jan 2024 05:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705037690; x=1736573690; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+D2V+TmU64uAjVM3eOUsnNLgN7TXw+iA4jUZDqS1rPI=; b=n8dcbZV4NpW6fR1kGVjAYLofnDfZNaIO8/fR+F0dACcLh+l0K4O8TJea 2u9DaKLCLhqZ4SmDOqY1bMoK/F7SM+hVJjY0i5alCg5VMCZJHouODQ0yP LngNtbkM6sq6t5uCZp8nbxgdpb8Wag+etPQQQJ6eRKgTLYweqwWM4DX/v n/PNLP3e9Kp1/SociQ7iy/tZHJl+YVw4kQ89d+jws62t6Tky8ECvk+y0v PtaFPvkzOsqgIm4HwT69NipNcPErmvWMvXrtJL3rB/FKJazXJzcXjTTwD /tj5oZrX6hBXoNfrl57IsVll3edSZ46s1JtMZk1zg4Ni1q9Ha8xCr/PJj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="6173688" X-IronPort-AV: E=Sophos;i="6.04,188,1695711600"; d="scan'208";a="6173688" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 21:34:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,188,1695711600"; d="scan'208";a="24599545" Received: from yy-desk-7060.sh.intel.com (HELO localhost) ([10.239.159.76]) by orviesa002.jf.intel.com with ESMTP; 11 Jan 2024 21:34:48 -0800 Date: Fri, 12 Jan 2024 13:34:46 +0800 From: Yuan Yao To: Yan Zhao Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, pbonzini@redhat.com, seanjc@google.com, shuah@kernel.org, stevensd@chromium.org Subject: Re: [RFC PATCH v2 2/3] KVM: selftests: add selftest driver for KVM to test memory slots for MMIO BARs Message-ID: <20240112053446.cywurmvjebuavsf6@yy-desk-7060> References: <20240103084327.19955-1-yan.y.zhao@intel.com> <20240103084457.20086-1-yan.y.zhao@intel.com> <20240104081604.ab4uurfoennzy5oj@yy-desk-7060> <20240110062708.zf3arjmha5czgpzp@yy-desk-7060> 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 In-Reply-To: User-Agent: NeoMutt/20171215 On Fri, Jan 12, 2024 at 08:21:29AM +0800, Yan Zhao wrote: > On Wed, Jan 10, 2024 at 02:27:08PM +0800, Yuan Yao wrote: > > > > Do you have plan to allow user to change the bar_size via IOCTL ? > > > > If no "order" and "bar_size" can be removed. > > > > > > > Currently no. But this structure is private to the test driver. > > > What the benefit to remove the two? > > > > It's useless so remove them makes code more easier to understand. > Just my two cents: > Keeping bar_size & order in a device structure is better than spreading > macro BAR_SIZE everywhere and the code is more scalable. yeah, that depends on the perspective, no big deal to me. You can wait other's input.