Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp954863yba; Thu, 9 May 2019 08:27:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLi0w6/YaQhvdfEUUMvWIHrJc0xugGbqQEV3Sqf7aOq5TPSGwY2HunBJ4b4CmWLfHiPoGV X-Received: by 2002:a63:d345:: with SMTP id u5mr5976235pgi.83.1557415664649; Thu, 09 May 2019 08:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557415664; cv=none; d=google.com; s=arc-20160816; b=xipbVg6AhUTrwqwvin/6zv4wgczn7XZq9Bgc+VFPwGReScSCO1dGloACqJcm41OZXz KeThRZv5XbkEnZbbajeZBlc4EfTU/w442UT88+3jxPYLTR/MWNwezc1amsav0V2Scn7P cEqgVPbQU1nmr9eK4UYj8oekXZhltxqYn0pWIA9kLy+4jQvB3RU85CPjqjNh7+G5rMPt aa3at92mQ/VsfyaGWkzRfAp/OTiylnPbfafPzBhhN6cmJymkXHeC9TsVdvgGEawFCMjT 9ssCIC+dR4Zuiw1EohxRMRuFtAz0vKGcyYdgKVh6qrSOohpfgCwxTGAo9An3K7mEcY+P qFyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:date:message-id:subject:from:cc:to; bh=AWQYaOkTKzMwuNgTVPodoWRG2dUlnjiDmp9G25hwYJ8=; b=VodAP1lfbBDHuSkpr16Kiz7lkQ9piwHtYB5W8sA5nwZG7V+uN4UWXv10VqTJrUOgkO DCQ4TwJz6/bUX/1yUCwAo89PILxa16/1q+f4yXuI7C5wdKbIgS1l0O/SwlVo9qpBizh7 YmN1Ta+wXMeJ9iPN68Pu0Zn/h0J/B8s1LIJwuglnTPAmWZ5Ilv4PwwRHTawR9HWSHlug pYoEaL7SJmkagIqYgSFpwsqzyWt0O/kyvX1x9w36gTSLCYmvR7IB/xlvL16OQgtSt0bk +2SaqzJQaqQj1zsU/4JR7x3rQDnmYpRctsZYDt3oK2M4lDI3+iu6nrL3KTLFWlFcAU6M llXg== 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 m88si3228941pfi.38.2019.05.09.08.27.27; Thu, 09 May 2019 08:27: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 S1726674AbfEIP0T (ORCPT + 99 others); Thu, 9 May 2019 11:26:19 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7186 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726187AbfEIP0S (ORCPT ); Thu, 9 May 2019 11:26:18 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E702ADD31853844834E4; Thu, 9 May 2019 23:26:14 +0800 (CST) Received: from [127.0.0.1] (10.177.31.55) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Thu, 9 May 2019 23:26:06 +0800 To: CC: Marc Zyngier , Christoffer Dall , wanghaibin 00208455 From: Heyi Guo Subject: Does it make sense to flush ap_list of offlined vcpu? Message-ID: <73927ccf-1582-2e91-051b-b22854df3290@huawei.com> Date: Thu, 9 May 2019 23:26:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.31.55] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Heyi