Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp494348ybg; Thu, 19 Mar 2020 03:40:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtwiembQs/T4hSkStvsbMFzUzrD4zjbqqpOJYEakfnk8uQAiAyiqW5j+BY3eowRTnDvs0ae X-Received: by 2002:aca:b60a:: with SMTP id g10mr1748872oif.102.1584614400468; Thu, 19 Mar 2020 03:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584614400; cv=none; d=google.com; s=arc-20160816; b=mcpEFRv7xwCjxy6NPs/Kjo7jlFahlTNJsGBOabb1CWc5HQGb07tLOE2cT+JAaZACzD zmCQkl01jCArj5Mp/xXNSoGRE0iRBqjqFvehVV1rQibxwMSaMJJw+yUtxzejNM9q7HjH dD7yB7V2MWI2f5hH5tsh5nSsLhnSbXzXT720gas/ll4fUAcgy0e1jpmi2AjV/k5kyK/R P7yeo2zqCCG11FzpAlRrull3YfAx1r9zhn/O+WVrcfIOJ5W2UOPhdNcBBip7gPa67zOv fVn0gAsJYDsEuZL4h6hHp2PB0a6u7Di62DtvToFG+4cZl4tSVX5dg8zirTeCTqeoTT/j ROmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=gO0FPQT0gfYeu06shm7zGF/Q1FBR6RXM/eiLwoibdmY=; b=C0DZxqC/Q5E1RpFugUiw5ysG0ZHm4qyPiU8fcM8mI7HVG9BNPI9sdHiqqiPgHRRYDX m5JMckwvSMOmAJ/xZPbj/uZB6driGojHejxdkdLxLp6/mnFVTNDLGjIW3pFXaDX4a9Ao euiiaBdgjOv5urx1Nze5Pb7LwzFAlrMPSw5e6hUuQcBkl6quLjgIpJG59U5KqWQtOO2S JyjGXdDJ6M8nF7Vv99+bRAraaKac61X2XDB4GuT0vxsXwoT0uYhvTOlFuw4W5pdH0PS8 5wEThEG5ZJFlSbvZwzTZei4TzDkuYpHidWH5oFJsgpxZ6rMGrpsP1n3Fv0u6y9BHXeBe nhAw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si1056751otn.141.2020.03.19.03.39.47; Thu, 19 Mar 2020 03:40:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbgCSKih (ORCPT + 99 others); Thu, 19 Mar 2020 06:38:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:60682 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgCSKih (ORCPT ); Thu, 19 Mar 2020 06:38:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 94E11B1D1; Thu, 19 Mar 2020 10:38:35 +0000 (UTC) Date: Thu, 19 Mar 2020 11:38:34 +0100 (CET) From: Miroslav Benes To: Jan Beulich cc: boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, jpoimboe@redhat.com, andrew.cooper3@citrix.com, x86@kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, xen-devel@lists.xenproject.org, jslaby@suse.cz Subject: Re: [PATCH v2 2/2] x86/xen: Make the secondary CPU idle tasks reliable In-Reply-To: <2ca0a03c-734c-3a9e-90fd-8209046c5f01@suse.com> Message-ID: References: <20200319095606.23627-1-mbenes@suse.cz> <20200319095606.23627-3-mbenes@suse.cz> <2ca0a03c-734c-3a9e-90fd-8209046c5f01@suse.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Mar 2020, Jan Beulich wrote: > On 19.03.2020 10:56, Miroslav Benes wrote: > > --- a/arch/x86/xen/smp_pv.c > > +++ b/arch/x86/xen/smp_pv.c > > @@ -53,6 +53,7 @@ static DEFINE_PER_CPU(struct xen_common_irq, xen_irq_work) = { .irq = -1 }; > > static DEFINE_PER_CPU(struct xen_common_irq, xen_pmu_irq) = { .irq = -1 }; > > > > static irqreturn_t xen_irq_work_interrupt(int irq, void *dev_id); > > +extern unsigned char asm_cpu_bringup_and_idle[]; > > Imo this would better reflect the actual type, i.e. be a function > decl. If left as an array one, I guess you may want to add const. I sticked to what x86 has for secondary_startup_64. I can make it void asm_cpu_bringup_and_idle(void); Miroslav