Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10588926imu; Thu, 6 Dec 2018 03:44:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vcg8cHgH46XZX1UwafAbN7FZl2njDkCZ48y8c+qrKcd2iwHNJ7O4mr3LWKHImPAxC9MWDI X-Received: by 2002:a63:20e:: with SMTP id 14mr23729322pgc.161.1544096652453; Thu, 06 Dec 2018 03:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544096652; cv=none; d=google.com; s=arc-20160816; b=omlVc0NfEORzZuJH/jskgGCu0wCSNI9dvBLL75Yr0H8dOpiEaKnzSF2rm1UmqYD2of M3TdZog2Fzx7ab/BqvQhYw+JHiU53+9ayl/qwmHvEgnIjVKRYz/x18HQtFmUG4Xpqf5z K72SQoFNxpedfjnr/4jinGIHu/2OOfiytWZTTMaOgITfBZZHcqcZM7MVhVyTrxB/E/QI SD8jrAtcywbfh+1NQEEVGDqo2h4UKs7pkieAukJ6jb8T7Rhhxh8eyOVh70HbXBYkoVZZ rYWK6o5Szg3ya4tR2Cb6bIAxDeVidsIWIbzZpgnzbfRhE2ZagYw/e77yAoncakWi4Mjy jycg== 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=gug+6tlWf+HL9tSq4Mrvt1NZYSMry8o4xkogzDuSLDw=; b=TkB3tElhKHscjk4SfnMsnUF9rRgNaKVpNxCQ2ikY776dbzBZvU6+t6VNZWyxR7xJnK 5YeG7ZLZERmcT/lIozLS8XiK3oIUFt+xRxOIufOchhQLGvOnHPnCuhD7a22XtiJrZ+nY Dof5cXdKcKC8kSxy8Q6AKoonevyUSDTOZvPeYFALImzaUpZRU7KCYFoVLTRm+CwLM1fq 6CcEfYsamdl2VTFDErgrl+SVBepGX03I5f1YwLokea47JTWIhpuLlNZDMlMqi2DF4Uhp NNiZpISBRYXY/SG9MYwXeZXaAxCPGX/Bgr6zYLnbbrv2uZgZ1jYugHb0j70zzh6kNIlN QJ5Q== 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 w11si75727plz.327.2018.12.06.03.43.52; Thu, 06 Dec 2018 03:44:12 -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 S1729356AbeLFLmU (ORCPT + 99 others); Thu, 6 Dec 2018 06:42:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47960 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727832AbeLFLmU (ORCPT ); Thu, 6 Dec 2018 06:42:20 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2408B307DAAB; Thu, 6 Dec 2018 11:42:20 +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 9162560C5C; Thu, 6 Dec 2018 11:42:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BA5649D8C; Thu, 6 Dec 2018 12:42:17 +0100 (CET) Date: Thu, 6 Dec 2018 12:42:17 +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: <20181206114217.vog4fgae73us437u@sirius.home.kraxel.org> References: <20181206103352.20587-1-kraxel@redhat.com> <207905511.48580418.1544093965441.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <207905511.48580418.1544093965441.JavaMail.zimbra@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 06 Dec 2018 11:42:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2018 at 05:59:25AM -0500, Frediano Ziglio wrote: > > > > Just use qxl_num_crtc directly everywhere instead of using > > qdev->monitors_config->max_allowed. Drops pointless indirection > > and also is less confusing. > > > > To me is MORE confusing, why comparing number of something with > another number? Previously code was comparing number of monitors > with number of monitors, not number of CRTs with number of > monitors. Yes, spice/qxl and drm/kms use slightly different terminology. drm crtc == qxl monitor. drm framebuffer == qxl surface. You need to know that anyway when looking at the qxl ksm code. We have function names like qxl_crtc_update_monitors_config(). I fail to see why that is a problem ... cheers, Gerd