Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1730124lqp; Mon, 15 Apr 2024 15:51:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLgjsI0IfbI0A7Yxq8vigkhN9//OJi4e11nwqpM95UVa6Qa/KscovF8ZAA+XEV5bRXiXsNt/NVav/+MJYGMguV9eOrpKXdGlmcqMgBcA== X-Google-Smtp-Source: AGHT+IGbcyVW7ngCgfFj9aGFQK4A+mZeMZGgkSOU8pt7Zq8E8VOTeFZzhJs4toAYeVl8K5q3ir5/ X-Received: by 2002:a05:6a20:9c8d:b0:1a3:6a02:6758 with SMTP id mj13-20020a056a209c8d00b001a36a026758mr10572168pzb.27.1713221487509; Mon, 15 Apr 2024 15:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713221487; cv=pass; d=google.com; s=arc-20160816; b=mVR3diqq57SMja4hedyBQK/wE4Dr4RVHz26ZEzLuVdewFACVqLuCaDI0BrfbdEqsbw 302iWRS33ywZOifk3F7iVXXUvEoIRNYBfFGDSO1xtdeuP/I63Oc2Y9yK/gI129G2tfIf 49ewVRQeAdqKp9ggiPh2wkpwxJpetti5tyJfNVCrmI7dFo9iXF5LPQgekOqs2VEA/CB+ PadPaMQ7UNBnS7uXb67Ch4jlAhyYaQKp3h/YAjdftcQqKprZjM8suR+9j4pbL81/Zt0x LumuFbTLld71jLxkf+SEVVPStVtZW5LfQlddYiKYja0TCY+bT5cv8obCEnRYgyX5orWt /lwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fl0I/OK9f5ArMEpu8/RfolmJZ2ucObgM3x/cESufJn0=; fh=YYXmQolDZ545DIbHBGg3a8Ad9BfifqTm1mpLJOVQCbk=; b=woiCsghaXi49g6MTkjtIO3AuJ2ftXDylQ+QH8HP4v91sqrfQdg1s7Lj1X2eRQ3Fwdm 9q7uR4og+O94YK3sQZ5H0aQKsNpcAf7DfdpFh2jzvEJRPYaxst6yp+c8ystmM7d+VEug VC4oJZ0Bl3zCEv1s/B22jdAjukkSlXocnyTSkybeEeqPm2HJfU2FRQe8UtWQnYQwSuOa ZHkkg0WqZBwVfHtP6b4Df50Ant4E3OWysVPevCvtM5/YgpjjoUZiuer09LVtwhAywc/5 0QixHrCDoFzTlH2rhZL11wevAlcTm+J8+ZOhJI9GL+UaUaSKpSIeuwbfm1MTq7TUv/km uLVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nDFCuUeS; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-145981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fe22-20020a056a002f1600b006ead3c1ded8si8577534pfb.11.2024.04.15.15.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 15:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nDFCuUeS; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-145981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145981-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3434A283B6F for ; Mon, 15 Apr 2024 22:51:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B469015885C; Mon, 15 Apr 2024 22:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nDFCuUeS" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9140F1B80F; Mon, 15 Apr 2024 22:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713221478; cv=none; b=fKscdowQkbarc7ILmFe81LpuGDY5pNBtPi4jWtSt8PbUBkQFUKp3s8EKZlIvXxbN7eEQWXqPk53n95i5YFFvJGOOH/cuvNI5PWFhQQgwf0MAXhuLiyrfYXOkRp0EQauaAHdJ1cQSnK4gRsO2fVo7apZ9+eXKgEdx/sVd1PojQcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713221478; c=relaxed/simple; bh=NHyNdJP4kIYQm6I4Mu8rr7Xbs16DH+isQARC18Kfx7E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SfXKKAlwi6kQQGMsnPWlg9GZPH81aC8Irpwi8kEdeTVj4TNECzNgLZNxh2a2PBrgCLWR10HUN5cVOFJzV3pUF7j1K7E2vPf3JN/X0Lsh6yL92b/ig9z9zgPdYtW1yFDrdKO0ziaQMMsk+VI3zwdtbmKpPsrnKVWtZ5d9UTDMCmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=nDFCuUeS; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713221478; x=1744757478; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NHyNdJP4kIYQm6I4Mu8rr7Xbs16DH+isQARC18Kfx7E=; b=nDFCuUeSuxGABE3ulBQoASazT9IdnDDxeJtiyUaUANNJw5dK9IE0GDby OGjYMStCkBn8C6FbkXrVLSxy93zuj+/5gaD6ZXVopNMP2NBAnn3UhlNUo 2cJG9/288o1SqRtHjiVn+APPG1B3Y0InTOh31iA1UQcrm1iFmVMAI5O5P Xt5uYAZAH9WIbS+QcSjYGSsRiLDVOV0O5/EtwWbzPBzcryNwFCH47O8BR KZD6epIm2+jZiZrn7ahD0b0Lr0mL9GXjbtL+M9Ilxsl+pX3trI6WLeWz7 /UOkBzWGtQq6KolkdgoYqecI5cLI1d4CrrZedBTINq5pmHLN9HZfRojKK w==; X-CSE-ConnectionGUID: Ftb4W3ElRhmhvdZVB1VUDA== X-CSE-MsgGUID: Cunge7YWSI6mKdQifWmnpg== X-IronPort-AV: E=McAfee;i="6600,9927,11045"; a="8491719" X-IronPort-AV: E=Sophos;i="6.07,204,1708416000"; d="scan'208";a="8491719" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 15:51:17 -0700 X-CSE-ConnectionGUID: Nv0HIZNbSuCtZ487mEP9zw== X-CSE-MsgGUID: ySKigc9tTQeMm+wPBX9uvA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,204,1708416000"; d="scan'208";a="22140454" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2024 15:51:16 -0700 Date: Mon, 15 Apr 2024 15:51:16 -0700 From: Isaku Yamahata To: Binbin Wu Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , Kai Huang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com, Sean Christopherson , isaku.yamahata@linux.intel.com Subject: Re: [PATCH v19 097/130] KVM: x86: Split core of hypercall emulation to helper function Message-ID: <20240415225116.GT3039520@ls.amr.corp.intel.com> References: <73394dea-81d9-469c-b94f-6d58bfca186a@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <73394dea-81d9-469c-b94f-6d58bfca186a@linux.intel.com> On Tue, Apr 09, 2024 at 05:28:05PM +0800, Binbin Wu wrote: > > +int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) > > +{ > > + unsigned long nr, a0, a1, a2, a3, ret; > > + int op_64_bit; > > Can it be opportunistically changed to bool type, as well as the argument > type of "op_64_bit" in __kvm_emulate_hypercall()? Yes. We can also fix kvm_pv_send_ipi(op_64_bit). -- Isaku Yamahata