From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] x86: Convert shadow-paging to Kconfig Date: Tue, 19 Jan 2016 06:39:29 -0700 Message-ID: <569E4AA102000078000C891D@prv-mh.provo.novell.com> References: <1453142404-8819-1-git-send-email-andrew.cooper3@citrix.com> <569E47E002000078000C88B0@prv-mh.provo.novell.com> <569E3B34.4020100@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <569E3B34.4020100@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: George Dunlap , TimDeegan , Doug Goldstein , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 19.01.16 at 14:33, wrote: > On 19/01/16 13:27, Jan Beulich wrote: >>>>> On 18.01.16 at 19:40, wrote: >>> --- a/xen/arch/x86/mm/shadow/Makefile >>> +++ b/xen/arch/x86/mm/shadow/Makefile >>> @@ -1,4 +1,4 @@ >>> -ifeq ($(shadow-paging),y) >>> +ifdef CONFIG_SHADOW_PAGING >>> obj-y += common.o guest_2.o guest_3.o guest_4.o >>> else >>> obj-y += none.o >> Why didn't you retain the ifeq? The way it's now, accidental >> definition of the macro elsewhere would alter behavior. In fact >> I think the better thing here would be to change this to purely >> list model: >> >> obj-y := none.o >> obj-$(CONFIG_SHADOW_PAGING) := common.o guest_2.o guest_3.o guest_4.o >> >> Not sure why I didn't do that right when making this configurable... > > none.o must not be linked if !CONFIG_SHADOW_PAGING. And it wouldn't be, due to using ":=" (instead of "+="). Jan