Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp978233imm; Wed, 4 Jul 2018 09:11:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNqN2uKuJdHRDZ1tYaBP4vElwAx0MYwzvk+L/ccVZKQCuQAyT82kehBrJFrHHXV1ykxzgD X-Received: by 2002:a63:6986:: with SMTP id e128-v6mr2436578pgc.294.1530720712267; Wed, 04 Jul 2018 09:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530720712; cv=none; d=google.com; s=arc-20160816; b=VCEQljVi3lP3Loub48B8hsbzUlD2lJgDZ39JiWXctSNWUoZxOJkN9FgmTJnuaahFxR xBJofNU6rZ576mZXF+zAQn9ea/ne2jwjgvucqtsZPdzIhyQSlO6BH+dKgMnLI00OcypE WW9K6TQS9Q06yl6QuHCdap0guieBVYDZhEEsfGXCeaLbl0xDeoMe1Z39UX6Q+yAomT/h R2KSqZZ5Y2D7FBJvLvTqqQ4q0UvRvGOeZKqcryigVRrlnB/FmCiYxcAZTYCv/H4K9SpM OJ23cemIKbd60hd4tyVbWDdRJC47qUVkmSSeDh8A0+83kwjVOfvwmdI2+X+tVKMeDOJk D6JA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=BdDSKCLkCA2EefXPp2tIiz0eGccHJgL6jPA3HTctUpU=; b=QOZvneKmp4lM2P0BQdlo8gmyFqPpgcs+nhl2w553P5ek1ty2BQjlFYqkZuJA+fvFjf KP6ZRHjWPlfdeRxpmbAhI4N5bmNTPby11z5gKH/SRTqiBGngDKtbLz7ufW8PWfUxBIeG uW3c3btRNO7iJpDKtNVbEKlAyVGJZvpfINvjg75dTRn85vqFOeg1SW4GkNmeSMtuCjHg wm/hROwuvnoyGWdtOtBSUr9cGWTdH0zzmUlQV0XhlJpgyfNB21nP5KgWfXqfKs5p9xA7 89Cu7L7yLB88XcIrucehOMpbp001Dae/qV3z2ebXNjQL7MrOHRraohkDOGYN0bXwR0LM TtrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qnOVzqaJ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66-v6si3673533pgc.6.2018.07.04.09.11.37; Wed, 04 Jul 2018 09:11:52 -0700 (PDT) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qnOVzqaJ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752922AbeGDQKx (ORCPT + 99 others); Wed, 4 Jul 2018 12:10:53 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40125 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752242AbeGDQKn (ORCPT ); Wed, 4 Jul 2018 12:10:43 -0400 Received: by mail-wm0-f67.google.com with SMTP id z13-v6so6622670wma.5 for ; Wed, 04 Jul 2018 09:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=BdDSKCLkCA2EefXPp2tIiz0eGccHJgL6jPA3HTctUpU=; b=qnOVzqaJhglsSaAdf85HXrk+vrNafcGT/rD2KZbRuWu+1C48MeDZfHzT2Ge2dWJ+ui YetjdoIYetMXjNrk481UypFT8nK9wD/QVdxPUrt21zFyZgePVDmcEBKgj2veE0yp3+S+ B9Vhp/fJJGkvs3aVh48aHMq4c50RR3p2QZ/92n58QA0h13q6Jw58g3jNDUdlHjVQpmUU YLLp8Lfb8Kkgwgz3dT/4n+UmvddF9i8N+5k0eXpvBqyjAan1Kx3T68RfQoDe/ra0piU2 r7yWU28p/mU9MvlDpYwJKOH3wA5xqBnxR0QLY/B+wjloghpGszhdJwDRkO+nlHTUVsEL R/Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=BdDSKCLkCA2EefXPp2tIiz0eGccHJgL6jPA3HTctUpU=; b=Tjp2Fn932XKH0hukbb6td1hecl0BEN3RtfaNPRttKVW+hO4UW4ZKCJHqY3sw1MUyTu Jz3X+KP66OPffLmVszqMo7Ppi5jtKi/6BKwGc+uKkDTQ1SCwZMfvcPPnnld3NgqeW1V4 4tr9bmrrnp5SflseHT/eaU6WU5VTZDfHt8NEmwKbWi4f2ov/l++um3jQUUpuKoFd0diF +B8zSs80BsunF+5Lb0z2aubLPk/QYtqvDhH90VKxAqOKpNawGO+rCkAnkavXWQclStqk Lqm79vaJAvVA0qXcYnNSB3dFBCop9vwn9TMlQcPKKflwSAbwnhv62wB03b7bqFioZv9W m7GA== X-Gm-Message-State: APt69E0bEuOUXZ5OqHKMmfEdhNxJ+uwNMe9SA3MQbxdD+n+YQMFdKMbp j4agjcCWm5nWxew/dYQNXOM= X-Received: by 2002:adf:adae:: with SMTP id w43-v6mr2155345wrc.251.1530720642308; Wed, 04 Jul 2018 09:10:42 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id u13-v6sm4961060wri.72.2018.07.04.09.10.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Jul 2018 09:10:41 -0700 (PDT) Date: Wed, 4 Jul 2018 18:10:39 +0200 From: Ingo Molnar To: kys@microsoft.com Cc: x86@kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com, tglx@linutronix.de, hpa@zytor.com, sthemmin@microsoft.com, Michael.H.Kelley@microsoft.com, vkuznets@redhat.com Subject: Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment. Message-ID: <20180704161039.GA23658@gmail.com> References: <20180703230155.15160-1-kys@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180703230155.15160-1-kys@linuxonhyperv.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * kys@linuxonhyperv.com wrote: > From: "K. Y. Srinivasan" > > The IPI hypercalls depend on being able to map the Linux notion of CPU ID > to the hypervisor's notion of the CPU ID. The array hv_vp_index[] provides > this mapping. Code for populating this array depends on the IPI functionality. > Break this circular dependency. > > Fixes: 68bb7bfb7985 ("X86/Hyper-V: Enable IPI enlightenments") > > Signed-off-by: K. Y. Srinivasan > Tested-by: Michael Kelley > --- > arch/x86/hyperv/hv_apic.c | 5 +++++ > arch/x86/hyperv/hv_init.c | 5 ++++- > arch/x86/include/asm/mshyperv.h | 2 ++ > 3 files changed, 11 insertions(+), 1 deletion(-) Ugh, this patch wasn't even build tested, on 64-bit allyes/allmodconfig: arch/x86/hyperv/hv_apic.c: In function ‘__send_ipi_mask’: arch/x86/hyperv/hv_apic.c:171:4: error: label ‘ipi_mask_done’ used but not defined scripts/Makefile.build:317: recipe for target 'arch/x86/hyperv/hv_apic.o' failed make[2]: *** [arch/x86/hyperv/hv_apic.o] Error 1 Thanks, Ingo