Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp775061imm; Thu, 5 Jul 2018 08:40:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcXQOA4tT6Vs6uE3fcULx5siazpdCtoKbIum4um/j1ckfioJf+Nk0r43lLy2ov9mor1WPPK X-Received: by 2002:a62:da07:: with SMTP id c7-v6mr6980819pfh.106.1530805209532; Thu, 05 Jul 2018 08:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530805209; cv=none; d=google.com; s=arc-20160816; b=ExQfYz8Kjib0/rB9Ix8auhJ1LAn6XCBsobU2z3O9hdA04/UFkgakXCMgf5Pra4xULB X0wEZ/meT2M+Q5cbZI+0bPy7C3nolJS8t8YoVL4kYV7IlflIo2HgxY9XQooCsFNLd6B7 /hrUPuhkt0FpCkYJow/G+JUHhVBrfT0y9+pT17WH1FzI0ul97Qp0IKMmjdaMxpxfqc8k 9ez5e7NEXbmeCI8LmLH4EL7PiUNUJmIE5Xniewj8V4H1+jh+k5B/Z+ulLEmGgXODm7Yh RZKaViON6tZzq9TUw02a+hctRXyUEl/GlyKya5bxYUMtDgl5uv7Pr9H0LxNfSPuEREqh mCBA== 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=cdjhUmIPqam8zEYCKZ6+m4ragvWF/0w4cr2GGAFhHQg=; b=C3nxcouSlkua5eCFTsFdHaSO/M/AeOnIS4gCD64V5t+/gYZ7e8f0iffdktaoeXcihJ x4eLxyXh9DINtqLSfinqYWOTbH+/J1CZd7tVOzD0fZAm5A9/v1+AtMBgqV73FE7LWKjb SFVzfkF5NEPFFCO+QuN1LYQLcyPD+dZ7jglHbeLF+KVJ3CL3dMMAUp0Z4zTRpO9w7Vsq pKPbzFTU4tSQhPq1rJDJT32WBImDp8WAUrmmLgn137ikjTS94a7e8EMLW1OLqcC2/BQg uYohLdtlblriVARmnahrLq/fFnpFwsbb82Nz/yqBwTZpOgiCoP8tZr3MqvGXE2kawE8D czPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=N8bZSYVu; 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 h11-v6si6822078pfe.102.2018.07.05.08.39.50; Thu, 05 Jul 2018 08:40:09 -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=N8bZSYVu; 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 S1753752AbeGEPi0 (ORCPT + 99 others); Thu, 5 Jul 2018 11:38:26 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35004 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753345AbeGEPiZ (ORCPT ); Thu, 5 Jul 2018 11:38:25 -0400 Received: by mail-wm0-f66.google.com with SMTP id v3-v6so8089054wmh.0 for ; Thu, 05 Jul 2018 08:38:24 -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=cdjhUmIPqam8zEYCKZ6+m4ragvWF/0w4cr2GGAFhHQg=; b=N8bZSYVu4k6i1HcX+PAvSN8Ua1/MtWBGYpbMosXdzSYdU0KZe8CR3Bgl+OSzwqRsQt 0w4TXeps0hWVDungeUoVkcuG4uKT8/7xoRuMvIxwpW59atB8F4OjvJarmx5Zq8IiFff6 DTLs2mTzezPzpAxE/7ZHCcG7n5eVami0rQN0wLIqSETPvUhghxVybIBipT+NcnKMzl6X LyPj9SroJ3dr0/KeRs25kqKuAAwkV/SEEBtiWrZRjQF12ZnB7uPvNZteXptCxzJLCAYS rjcTf2r1YW3ARUOLJNUh5HI1UNE1SITxc4bxRo4lvN6RPLQBzYyC5ng+PphSTf7YItJS noTA== 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=cdjhUmIPqam8zEYCKZ6+m4ragvWF/0w4cr2GGAFhHQg=; b=WFVvbErlQl3zQkYguMfMytETe/M8sGuXiC6DR6fJqgnv6g/SpRjn6zkDovnWh3WAdT eURkw+65fX95BZRyO9DmEBa1P3vQFJ0PNGXTqW4XXtG4n39cWUNFxZf790yimIDubdGp m5WRlNuvTX64ZiWb3CsGhgJfu93NcBx4s+F0U9QKQVFqdzgbqYXPuPeIqAgqUfckzf6o qZr/8A0dKWCX+8LC0JhbcTE0y6rPafZ6AEAg71ZDHYtpZXcZZA/uzC8WxeosMbjgRfWR xHnxBj8p8DfYlFbNWYER1lJn6keyME7KkqM3wa53+NU00CG0KFMn5RbAxQkjh+EveSnw 3p7A== X-Gm-Message-State: APt69E0zqI7yZDcC6gkZS/YNvEBCZ7GEB0SAP2Fdb4f+drg5HM70R+Xa W3v7eqnPOgjnzIjPPzgVdAg= X-Received: by 2002:a1c:2d54:: with SMTP id t81-v6mr4882326wmt.31.1530805103783; Thu, 05 Jul 2018 08:38:23 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id 24-v6sm16420794wrz.94.2018.07.05.08.38.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jul 2018 08:38:23 -0700 (PDT) Date: Thu, 5 Jul 2018 17:38:20 +0200 From: Ingo Molnar To: KY Srinivasan 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" , Stephen Hemminger , "Michael Kelley (EOSG)" , "vkuznets@redhat.com" Subject: Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI enlightenment. Message-ID: <20180705153820.GA26768@gmail.com> References: <20180703230155.15160-1-kys@linuxonhyperv.com> <20180704161039.GA23658@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 * KY Srinivasan wrote: > > > > -----Original Message----- > > From: Ingo Molnar On Behalf Of Ingo Molnar > > Sent: Wednesday, July 4, 2018 9:11 AM > > To: KY Srinivasan > > 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; Stephen Hemminger ; Michael > > Kelley (EOSG) ; vkuznets@redhat.com > > Subject: Re: [PATCH 1/1] X86/Hyper-V:: Fix the circular dependency in IPI > > enlightenment. > > > > > > * 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 > > Sorry Ingo. I had a clean build on the linux-next tree (tag: next-20180702) that > I used to base this patch. What was the tree you applied the patch to? If you look at the error message, it won't build against *any* tree, because there's no 'ipi_mask_done' label either in the kernel source, or introduced by the patch. So whatever tree you used it on, if you build arch/x86/hyperv/hv_apic.o it should be broken. Thanks, Ingo