Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2731500pxk; Sun, 27 Sep 2020 20:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsAY/l+lx0IRak+KEO8rL3eQ3raAJkco3Y94D2614DROg4gmPmoUwAxA6LBr8JvpXAI7D5 X-Received: by 2002:a05:6402:1548:: with SMTP id p8mr14065624edx.65.1601263819345; Sun, 27 Sep 2020 20:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601263819; cv=none; d=google.com; s=arc-20160816; b=Fa+tGPSthGohQhZFOlDNp6PFYVFHPbvsMaaYbDhLGR6vmFZ2pvPVo/kfCP9P6KtRyv 4VU03u1qhoCyshcdrEjU/UW+0curM95S8jGG2rBn2hrg8u1oDlsvdROg14qmOwbBJMhw nFDlF6Y6lzGbQ65Hi752cmhuLz1baanhIvuZkyKfupzqrhZagoxBBN2+yWhmXOddAuxW fi0NWv/lJMN15f9EMv6bbGbuDuy5fSNLUwIWKqIwkK7YULYRxH3wrYLvTQJWkSo3QKZz KJB2kZrVuNk33plNi93yFkHZqKnPH/NgoS7iQKbJaxPIkeiJxx6QT71iAHx15M5VQH6z DX1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=XKgNtyfJkjExv/p2VTJmOGX1xpQFQwot2lG79yDO0nw=; b=E2tmSw/VG86ICgFguABX3adKXFTbsVrpnF+uamDJBU5vD8g38Q78ENmMeE32DN5HJR RTiogEwEULw9Lbc9OKqG07ZMZHn8WcjeFT0l2Thly+zjvdv10rGavtsBCBQwzyy2i6GM x1pZSvwO1Xi/DRHh30mPrhZ2rgGyUeELd1qkEZOm542ORDugQx3kCmfvrEnfGtZFKWAb 7in/3/49LHu4ZEJsDSU4Pdg+HbzYFjE75bY9pzW31wQ3cmP79RqS0nsI7mZPgTuaFFmM X4hJAGkOa2mr+9RfnE/RqEqIxSmjS2iPMjI8TiKpOlYpEHNDm8Rtpzflgqdx6vRoG4eO KZ3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si7060667edl.498.2020.09.27.20.29.54; Sun, 27 Sep 2020 20:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726478AbgI1D2i (ORCPT + 99 others); Sun, 27 Sep 2020 23:28:38 -0400 Received: from mga09.intel.com ([134.134.136.24]:39228 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgI1D2i (ORCPT ); Sun, 27 Sep 2020 23:28:38 -0400 IronPort-SDR: 1Xqudnf2OVN9yLxb+MA2yYzb+a/uJUz0gVO8y57J2vV0auHibsuO7wDX9xjemkGNe4tnVs/JAd WY4iVaqT9r2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9757"; a="162820847" X-IronPort-AV: E=Sophos;i="5.77,312,1596524400"; d="scan'208";a="162820847" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2020 20:28:37 -0700 IronPort-SDR: aT2977SCCjxyzDkBz0o1AlJCCMkcy28iEadLgOmFExxts3PFnc0G8W2RrFEegLioAmeQ7FpoTt oAMQby2/NgMw== X-IronPort-AV: E=Sophos;i="5.77,312,1596524400"; d="scan'208";a="311619566" Received: from shuo-intel.sh.intel.com (HELO localhost) ([10.239.154.30]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2020 20:28:33 -0700 Date: Mon, 28 Sep 2020 11:28:31 +0800 From: Shuo A Liu To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Sean Christopherson , Yu Wang , Reinette Chatre , Yakui Zhao , Zhi Wang , Dave Hansen , Dan Williams , Fengwei Yin , Zhenyu Wang Subject: Re: [PATCH v4 02/17] x86/acrn: Introduce acrn_{setup, remove}_intr_handler() Message-ID: <20200928032804.GA1057@shuo-intel.sh.intel.com> References: <20200922114311.38804-1-shuo.a.liu@intel.com> <20200922114311.38804-3-shuo.a.liu@intel.com> <20200927104943.GF88650@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200927104943.GF88650@kroah.com> User-Agent: Mutt/1.8.3 (2017-05-23) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 27.Sep'20 at 12:49:43 +0200, Greg Kroah-Hartman wrote: >On Tue, Sep 22, 2020 at 07:42:56PM +0800, shuo.a.liu@intel.com wrote: >> From: Shuo Liu >> >> The ACRN Hypervisor builds an I/O request when a trapped I/O access >> happens in User VM. Then, ACRN Hypervisor issues an upcall by sending >> a notification interrupt to the Service VM. HSM in the Service VM needs >> to hook the notification interrupt to handle I/O requests. >> >> Notification interrupts from ACRN Hypervisor are already supported and >> a, currently uninitialized, callback called. >> >> Export two APIs for HSM to setup/remove its callback. >> >> Originally-by: Yakui Zhao >> Signed-off-by: Shuo Liu >> Reviewed-by: Zhi Wang >> Reviewed-by: Reinette Chatre >> Cc: Dave Hansen >> Cc: Sean Christopherson >> Cc: Dan Williams >> Cc: Fengwei Yin >> Cc: Zhi Wang >> Cc: Zhenyu Wang >> Cc: Yu Wang >> Cc: Reinette Chatre >> Cc: Greg Kroah-Hartman >> --- >> arch/x86/include/asm/acrn.h | 8 ++++++++ >> arch/x86/kernel/cpu/acrn.c | 16 ++++++++++++++++ >> 2 files changed, 24 insertions(+) >> create mode 100644 arch/x86/include/asm/acrn.h >> >> diff --git a/arch/x86/include/asm/acrn.h b/arch/x86/include/asm/acrn.h >> new file mode 100644 >> index 000000000000..ff259b69cde7 >> --- /dev/null >> +++ b/arch/x86/include/asm/acrn.h >> @@ -0,0 +1,8 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +#ifndef _ASM_X86_ACRN_H >> +#define _ASM_X86_ACRN_H >> + >> +void acrn_setup_intr_handler(void (*handler)(void)); >> +void acrn_remove_intr_handler(void); >> + >> +#endif /* _ASM_X86_ACRN_H */ >> diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c >> index 0b2c03943ac6..42e88d01ccf9 100644 >> --- a/arch/x86/kernel/cpu/acrn.c >> +++ b/arch/x86/kernel/cpu/acrn.c >> @@ -9,7 +9,11 @@ >> * >> */ >> >> +#define pr_fmt(fmt) "acrn: " fmt > >Why is this needed, if you are not adding pr_* calls in this patch? True. I will remove it. Thanks.