Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp894266ybx; Tue, 5 Nov 2019 07:12:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxlBFnzbXnar0m16yZC9Kb9oD/fhO5M6FCVxrYzdSnIxeB7vPTzoaya9kn58PPhqdiv+xY+ X-Received: by 2002:a50:9136:: with SMTP id e51mr34253898eda.71.1572966724636; Tue, 05 Nov 2019 07:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572966724; cv=none; d=google.com; s=arc-20160816; b=kLvWkuu9d3NDB32asLygoVj7/M531abFpw+r+exFsLDP0ozI1rx2T1ji+IECp6K3dX Jbl7PQgUC00jpnzgM7zIDgQl3yKaohNKufstSc+8/AlZsFMyl5mW7Cs1XYk/y7qOBz7y gxryoScau6NBnRUU4lJURDADf0I0DPnPbJwj53Z2OxhJrYRJVj9Xg1H6zwjWmCVPGLdq xXZ39BZ37QpOjfR2GH+h/0ib3eVUKeX8Gn8BC4JsWRsqpbSDTcytjbLkOW85VSiGepHK tcgM9XXDQjZDjwM+/1jexWRDwgtsmaHp/0jLRLaYJmhfpa11m+FnmFDPHIGNb+syQCjg /BBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=ZVrAMio36Q6kKW94w/mV9hSJkALDbxmAtiCfECylkvk=; b=vPtVh7qBAWedpsWAgIA1VevowEmFrq9HY+f3qij+LQvIrU5xa9s2CbjSBgJs41dzth CtX1xB0PAYHDUNFKZock0clX8mLeHVVGIb0wIApPRuz++6C03FRfvONrI3BQpAUKnN6v m3KnjTy7IhtHMT//9Bo0pe+eXHvQqztjvy11KuPnuQnGKpvBy8JLg3a1TorDLItS6ajv n3RY/bmZDVBFvRtJ8JBhe1auYZ33tS/UKsRh7AkE3GHfZXZ10Txu0PEY4dEVY6AQ/KvQ 4gj3LE8ss60NPZtI3L2ki7jLSLV2XQxddaA3jMNyRHN/wsfht97qXGCONyl/MmOqWmXh OEiw== 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 v29si10796553edc.436.2019.11.05.07.11.38; Tue, 05 Nov 2019 07:12:04 -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 S2389648AbfKEPKw (ORCPT + 99 others); Tue, 5 Nov 2019 10:10:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59828 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389505AbfKEPKv (ORCPT ); Tue, 5 Nov 2019 10:10:51 -0500 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9DF65859FC for ; Tue, 5 Nov 2019 15:10:50 +0000 (UTC) Received: by mail-wm1-f70.google.com with SMTP id f2so7767287wmf.8 for ; Tue, 05 Nov 2019 07:10:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZVrAMio36Q6kKW94w/mV9hSJkALDbxmAtiCfECylkvk=; b=ob7ZPd1biWXmWRMUBtw+N50OQT85avlgzgcx7SXns8AFm+W4yzIEhc20uYg6SHp14r akw/pqedZFBo/tImeN+gJ9owrAmutfgy4bOZlIG5AwbhmFTQLKvZ2rB5Nhrgi/FffkHE GmQm9b3QYpEcOQG5m8C5f+8G3uwaPUc90vK0Zmqr6a0T7kPZLQ1Zsl3xmdPXn/nfTRux FIGGSVIUjh5Eh2jNURNREQT6tKkhSjMczapoqTxjLciPQyIc/3BBc86agKGNNmTDMr3G URFhsda3sKLsNEbapltIR/D91QpILv/P194hj2rKH7YsGoruKV3sNfdn4EgaKGpC/oIB 0H+A== X-Gm-Message-State: APjAAAU/6UaToa71VjHfOsfnfod6i3ABXuGDEkqp9AGENEPcaPD8XijG b/xNa9dsAGP6SesCoFi821glDt+DWVfClV462nEyoHvp/J/wn4ayGCgNbhn+ceo4fCGljNomzkm eYWGwbOTF+HY4eo/kgUjnNxvr X-Received: by 2002:a1c:67d7:: with SMTP id b206mr4554599wmc.68.1572966649246; Tue, 05 Nov 2019 07:10:49 -0800 (PST) X-Received: by 2002:a1c:67d7:: with SMTP id b206mr4554564wmc.68.1572966648914; Tue, 05 Nov 2019 07:10:48 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:4051:461:136e:3f74? ([2001:b07:6468:f312:4051:461:136e:3f74]) by smtp.gmail.com with ESMTPSA id s21sm1905806wmh.28.2019.11.05.07.10.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Nov 2019 07:10:48 -0800 (PST) Subject: Re: [PATCH 03/13] kvm: monolithic: fixup x86-32 build To: Andrea Arcangeli Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vitaly Kuznetsov , Sean Christopherson , Masahiro Yamada , Jessica Yu , Matthias Maennich References: <20191104230001.27774-1-aarcange@redhat.com> <20191104230001.27774-4-aarcange@redhat.com> <6ed4a5cd-38b1-04f8-e3d5-3327a1bd5d87@redhat.com> <678358c1-0621-3d2a-186e-b60742b2a286@redhat.com> <20191105135414.GA30717@redhat.com> <330acce5-a527-543b-84c0-f3d8d277a0e2@redhat.com> <20191105145651.GD30717@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Tue, 5 Nov 2019 16:10:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191105145651.GD30717@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/19 15:56, Andrea Arcangeli wrote: >>> I think we should: >>> >>> 1) whitelist to shut off the warnings on demand >> >> Do you mean adding a whitelist to modpost? That would work, though I am >> not sure if the module maintainer (Jessica Yu) would accept that. > > Yes that's exactly what I meant. Ok, thanks. Jessica, the issue here is that we have two (mutually exclusive) modules providing the same interface to a third module. Andrea will check that, when the same symbol is exported by two modules, the second-loaded module correctly fails insmod. If that is okay, we will also need modpost not to warn for these symbols in sym_add_exported. >> The answer is maintainability. My suggestion is that we start looking >> into removing all assignments and tests of kvm_x86_ops, one step at a >> time. Until this is done, unfortunately we won't be able to reap the >> performance benefit. But the advantage is that this can be done in many > > There's not much performance benefit left from the removal > kvm_x86_ops. Indeed; what I mean is that until then we will have to keep the retpolines. Not removing kvm_x86_ops leaves an unsustainable mess in terms of maintainability, therefore we will need to first refactor the code. Once the refactoring is over, kvm_x86_ops can be dropped easily, just like kvm_pmu_ops in this version of the series. The good thing is that the modpost discussion can proceed in parallel. > The removal of kvm_x86_ops is just a badly needed code cleanup and of > course I agree it must happen sooner than later. I'm just trying to > avoid running into rejects on those further commit cleanups too. >> That is good enough to prove the feasibility of the idea, so I agree >> that was a good plan. > > All right, so I'm not exactly sure what's the plan and if it's ok to > do it over time or if I should go ahead doing all logic changes while > the big patch remains out of tree. Yes, the changes to remove tests and assignments to kvm_x86_ops must happen first. I understand that the big patch is a conflict magnet, but once all the refactoring is done it will be very easy to review and it will get in quickly. Paolo