Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10758770imu; Thu, 6 Dec 2018 06:23:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/Us62kHSHWfMedMxh9JwESnO7Fgf9tLX2PBAflb7V3aIi5k3Wl+U268buIf+HQ49IsdmZgf X-Received: by 2002:a17:902:ab84:: with SMTP id f4mr27718170plr.207.1544106185313; Thu, 06 Dec 2018 06:23:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544106185; cv=none; d=google.com; s=arc-20160816; b=oMXvdH9r4WPMbft9QqCJEQcdxgD3F4XeB6ayRi8rZfTQ8phhuXEu4qMuX7QfSTSnrr VzUeSjnBPg9h9+Ve1YxCdOtwNC5fzcHgSnRAfWLGX4W1ZBeBsslP8jZfUCFuJnRC4MVC 2ugLVCiGRaxlR1hwCDNVlfgSTCoIZg6gaFKo0BKv4EgmBNCAs+6OiRcbI0WD5dFqEr/H //RTKJ8W/cXLtYKTMYiB5DLGC1fWpszq/M8+jQJy7UYBGVe7jVoZ/ucQMvUfbB7gK6ht RTCaenxyUjDWBvoW8JgXW2Lb94mP0anL9vkLTLFi40V+oGct7gEG4muMfhMdFJJ/tzhQ TyOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lRb1KSsUAmIMvOKI0rwbramkuI53nNv00rWuW8FSod8=; b=ID9YgfwphTDrYlQ7hz47vSbDc4p0KyasD+fmJOrYNBKlZwLVFMKNL1piQzAMVosPfF P4OVSmJiNB7pyIVavg1REl6wLyS7YHlnP0NGlOAYFuJdP0Y9eYnDZCQB/nhHqwY9fAvw NAPkMjKZaCd2M1Igl1vo90hKg7HnNqaekFH0mqkycxyqIo7qfSPKsGmGwarwv6AycT5o bUYDryXY627t5Ml+pxsZgBBksmOtL7Mcvmsg5F9Cq5Ttvpc9mAWZi7qc1joIou13FV+U u+vQkC80JxOOXI8hzIgU1Zm6XSnBfhWiUJs3l1KymWuBLeympkKg5EGWFapKmeN97dBk 0ELA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 87si403933pfs.7.2018.12.06.06.22.46; Thu, 06 Dec 2018 06:23:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729404AbeLFOVm (ORCPT + 99 others); Thu, 6 Dec 2018 09:21:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45922 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727704AbeLFOVl (ORCPT ); Thu, 6 Dec 2018 09:21:41 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 93FCA394D43; Thu, 6 Dec 2018 14:21:41 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3754710018F9; Thu, 6 Dec 2018 14:21:41 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 0BEA08FE6; Thu, 6 Dec 2018 15:21:40 +0100 (CET) Date: Thu, 6 Dec 2018 15:21:39 +0100 From: Gerd Hoffmann To: Frediano Ziglio Cc: dri-devel@lists.freedesktop.org, David Airlie , David Airlie , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" Subject: Re: [Spice-devel] [PATCH] drm/qxl: use qxl_num_crtc directly Message-ID: <20181206142139.afd75c6nmjsbx2m4@sirius.home.kraxel.org> References: <20181206103352.20587-1-kraxel@redhat.com> <207905511.48580418.1544093965441.JavaMail.zimbra@redhat.com> <20181206114217.vog4fgae73us437u@sirius.home.kraxel.org> <1902655248.48590444.1544100790071.JavaMail.zimbra@redhat.com> <20181206134933.krvdvoz52lkpewb5@sirius.home.kraxel.org> <621894308.48603466.1544105415949.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <621894308.48603466.1544105415949.JavaMail.zimbra@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 06 Dec 2018 14:21:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > qdev->monitors_config->max_allowed is effectively set by a module > > parameter. So using the module parameter variable qxl_num_crtc > > directly is better IMO. The kernel doesn't need to dereference pointers > > each time it needs the value, and when reading the code you don't have > > to trace where and why qdev->monitors_config->max_allowed is set. > > That should go to the commit message! > With that the patch is fine for me. ok, I'll improve the message. > Maybe there's no much point on reusing the same structure used > inside QXLRom/QXLRam but this is OT for this patch. It's part of the qxl device ABI, the same structure is used for both host->guest (config hint from spice-client) and guest->host (actual configuration). cheers, Gerd