Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2450755yba; Fri, 10 May 2019 11:45:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxV5MLTYQ6oFI+eFMJmd5n5grezsYQ68zRhjOex9MA1QdFio0Tt2n+mYsEapFS8aZbclLzy X-Received: by 2002:aa7:8495:: with SMTP id u21mr5560788pfn.125.1557513944103; Fri, 10 May 2019 11:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557513944; cv=none; d=google.com; s=arc-20160816; b=n0RbB3lXbP+7tgqXDX5zvKvJ5DggCytyIuV5QXYXsXOUor/3oYTB4tYgqu16j91MKG QsVcy/SW0Q6defbdIV5bEJ4NyaB59FY/Yq03L6wYC4lE9UWeDu6Bv/q2JgdeYDlfW6NB jg7ozggjJS/otnxy3CC4vt2lpP2xLi2A6iHzADQFFcDJEfJttjDtOE//xwQLaSHRzKjf IplRIlRD9bWMkX33bkMi6Ay7k7gb/cV40EA1FX3Nf930K7bg6426UrFGbcRKH3u1VNvQ ld8PJVkEAXsnVmthXpSO1Nf8myBkmQlap3APgNckie20hFCePViPKdzU4geKyEF9smjB rjaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=9XJ/zydC+vq49fAQDregzUE1grbskiT44diEbdy8Tcs=; b=uOoSfMU8kAVhIYR1VkRy7921wZ0tUiYMc/j+akxSE5wGQIicbYkgRk1IQzv/s0JSP/ JGZXLNpP3/uRGCfLhy3e1aqKUIPp6z3hrhn+lCFhuKyTP0MyUwf4+USuZ0e7xqPFvA63 hvXN18hU4PvviZSwlMYSjipwIJlUD1iHkIIew00EkwA+dby21XzY+uqmfBrbRBkfmUKL ctf7aD2gujjpI14LymTDEL0Jug2//eXj2chxewqCoz1PcBLYA9oaW07DXaAoHGZV/mOI i/Iz79Iw4MdS6O8DlAEO8dwlp2gJGu+7u3xjDRxClu/R+Y75eIrlLvM5wehjx9aCHmgc YFUA== 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 t5si8238241pgv.164.2019.05.10.11.45.27; Fri, 10 May 2019 11:45:44 -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 S1727908AbfEJSlw (ORCPT + 99 others); Fri, 10 May 2019 14:41:52 -0400 Received: from foss.arm.com ([217.140.101.70]:55274 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727779AbfEJSlw (ORCPT ); Fri, 10 May 2019 14:41:52 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F08BD374; Fri, 10 May 2019 11:41:51 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DBEF03F6C4; Fri, 10 May 2019 11:41:50 -0700 (PDT) Date: Fri, 10 May 2019 19:41:40 +0100 Message-ID: <86mujucftn.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Heyi Guo Cc: , Christoffer Dall , wanghaibin 00208455 Subject: Re: Does it make sense to flush ap_list of offlined vcpu? In-Reply-To: <73927ccf-1582-2e91-051b-b22854df3290@huawei.com> References: <73927ccf-1582-2e91-051b-b22854df3290@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") 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, 09 May 2019 16:26:04 +0100, Heyi Guo wrote: > > Hi folks, > > When guest OS calls PSCI CPU_OFF, the corresponding VCPU will be put > in sleep state. But if there is still IRQ remaining in this VCPU's > ap_list, this will block all the following triggers of this IRQ even > to other VCPUs. Does it make sense to flush the ap_list of the VCPU > when it is requested to be offlined? Or did I miss something? I can't see a good reason to do so: If a vcpu gets offlined, the guest OS has to move interrupt routed to that vcpu to another one. There is nothing in the GIC architecture that the interrupt will be moved to another vcpu (well, it could be done with 1:N, which is not really virtualizable, and not advertised by KVM). That's not different from what would happen on bare metal. Thanks, M. -- Jazz is not dead, it just smell funny.