Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp237271rdb; Tue, 19 Dec 2023 15:20:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGu4VzX4b7zrAkUvfQ7oXLc8WvCIWlFU9F+BsWf1ldUyRzERDfdUl5dNnivQJxcdViAQFME X-Received: by 2002:a05:6512:33d0:b0:50e:e37:6471 with SMTP id d16-20020a05651233d000b0050e0e376471mr7853854lfg.121.1703028050756; Tue, 19 Dec 2023 15:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703028050; cv=none; d=google.com; s=arc-20160816; b=G0gzMFvkGAl6Y1NZTKXJR16oV2udpPrvNyZjT3wJnhulob3Vvm4Bp/LZdZWLK3yWwm Jos+FR78qAD43RYF9/nvExPwmLTnZt6YnC0a5akPy0viUwhc6J+2B3li4gb1vpMPPyFH bMTflvHpOV7fqS12US1OKfx47opEWIGnEis1wznenJ6seq8sxgIgKUPkjH6yKMCd148t jD+Hd+Hd40uZ5sMEnlwiHqQGNHfo8rAbtINWSOHYciBh7gJ6uflQVADr8hQCxDL8Za3n ysZqlUR/IZxH5V8k/a3/kRIgi3svhJT0ZV+sjxjE7MEPAl0yZxIczv3lwHY5qQO4RzOb oh1g== ARC-Message-Signature: i=1; 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=FY3hq9fKY01K2CP4Hsl2eVDUQ2GP4RxatDx7Vu2ZZdc=; fh=DIGxkKWDPqysVkw0/lYdZd9nJzo7LI1eQXAnhcfqgP8=; b=yZR0txSrn7UOGJ/cnel3ijf9cTIBgjnRE0LJWITRFDqeZ4a3vlJIiorUKVXk2zCOkm j/iMdjDLOQCAxmMShmV9/9Hye+4cML2jQNjDA7v5G4hrIYMWMY/GbniLypPjzqwOjs19 oayE4lPvkVWCKVsUTF0ZoEecF/Oq723dTUijZ4DW2+xGp405mCZYsJYEfemwQmCu86D/ Y8Kci6Lr/aD+ZDYsnWZ31sMtCD2qc3VJWXECjTN7Z8ni/X9tLX0IzZiMU9hrBcsgGVF/ EIDgq4G8B9mglRKhSR21WyU/2HFh52Wfeqptq0NDlG8bQzb0E7M1Cxw+DX3ivdV+uxGs AcCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q+PamraM; spf=pass (google.com: domain of linux-kernel+bounces-6088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z3-20020a05640240c300b00550dc574d66si6736744edb.685.2023.12.19.15.20.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 15:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q+PamraM; spf=pass (google.com: domain of linux-kernel+bounces-6088-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6088-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3AF221F2726D for ; Tue, 19 Dec 2023 23:20:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0F883DB8C; Tue, 19 Dec 2023 23:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Q+PamraM" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (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 D204D3EA7D; Tue, 19 Dec 2023 23:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703028033; x=1734564033; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uYTsoLYZOvCUsCGVaoQxTU6za82GcPNPw7Jy1FK3eiE=; b=Q+PamraMa/1oIf/uY5c/QjksqS6R2NaLy54INBGaZh/0NY2pTpo9d1TR sftVRzQbFnp6EbWISkCu+VP3aw15ByuINqWheSon2hHAVKqQ0/0xObUJJ RNBlnzx7sa2A32am59Btmd3han7pyFEKDpgscM733vNZn0hfImqFgw6pq nGnT4aWq5Adc1Be7X7gsCaqmx1rfmrj+jui+F5cU3QcvtqmFrHdj42+8h s0eVV9I7J0UIHxUm9CcBJ4gbOyL0kvwZ9NP+SLvrrcFQVqJtCWvIwvQld QZ8KJDuglILBZPU7MVjA8xh8nrckWnUNF+MJnLk+R2S+DxUERZIHmh9I5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="380721075" X-IronPort-AV: E=Sophos;i="6.04,289,1695711600"; d="scan'208";a="380721075" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 15:20:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="805055842" X-IronPort-AV: E=Sophos;i="6.04,289,1695711600"; d="scan'208";a="805055842" Received: from lveltman-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.33.252]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 15:20:26 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 5494010A43B; Wed, 20 Dec 2023 02:20:23 +0300 (+03) Date: Wed, 20 Dec 2023 02:20:23 +0300 From: kirill.shutemov@linux.intel.com To: Alexey Makhalov Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, bp@alien8.de, hpa@zytor.com, dave.hansen@linux.intel.com, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org, netdev@vger.kernel.org, richardcochran@gmail.com, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, zackr@vmware.com, linux-graphics-maintainer@vmware.com, pv-drivers@vmware.com, namit@vmware.com, timothym@vmware.com, akaher@vmware.com, jsipek@vmware.com, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, airlied@gmail.com, tzimmermann@suse.de, mripard@kernel.org, maarten.lankhorst@linux.intel.com, horms@kernel.org Subject: Re: [PATCH v3 2/6] x86/vmware: Introduce vmware_hypercall API Message-ID: <20231219232023.u4dyuvbzbh565grk@box.shutemov.name> References: <20231219215751.9445-1-alexey.makhalov@broadcom.com> <20231219215751.9445-3-alexey.makhalov@broadcom.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=us-ascii Content-Disposition: inline In-Reply-To: <20231219215751.9445-3-alexey.makhalov@broadcom.com> On Tue, Dec 19, 2023 at 01:57:47PM -0800, Alexey Makhalov wrote: > +static inline > +unsigned long vmware_hypercall1(unsigned long cmd, unsigned long in1) ... > +static inline > +unsigned long vmware_hypercall3(unsigned long cmd, unsigned long in1, > + uint32_t *out1, uint32_t *out2) ... > +static inline > +unsigned long vmware_hypercall4(unsigned long cmd, unsigned long in1, > + uint32_t *out1, uint32_t *out2, > + uint32_t *out3) ... > +static inline > +unsigned long vmware_hypercall5(unsigned long cmd, unsigned long in1, > + unsigned long in3, unsigned long in4, > + unsigned long in5, uint32_t *out2) ... > +static inline > +unsigned long vmware_hypercall6(unsigned long cmd, unsigned long in1, > + unsigned long in3, uint32_t *out2, > + uint32_t *out3, uint32_t *out4, > + uint32_t *out5) ... > +static inline > +unsigned long vmware_hypercall7(unsigned long cmd, unsigned long in1, > + unsigned long in3, unsigned long in4, > + unsigned long in5, uint32_t *out1, > + uint32_t *out2, uint32_t *out3) Naming is weird. The number in the name doesn't help much as there seems no system on how many of the parameters are ins and outs. Why these combinations of ins/outs are supported? And as an outsider, I'm curious where in2 got lost :P -- Kiryl Shutsemau / Kirill A. Shutemov