Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2788592lqo; Tue, 14 May 2024 09:08:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd5oEueBGnJgQR/hWBAaR7QbaAjnKoBipaODs7qmsKZIUoTxdIlM2jfTykG6A33MDqR0wrv/DVidcC3q1tmsavm81632SzKiEuJbsqMw== X-Google-Smtp-Source: AGHT+IE/Fbqi+U50LRv798MKqqv8B2gkZI2BtOic7cCUmz0KA9rzvb//3FP4DoAURKRdkXiQErdI X-Received: by 2002:a05:6214:5701:b0:6a0:c339:1ede with SMTP id 6a1803df08f44-6a1682116fbmr164579736d6.40.1715702882474; Tue, 14 May 2024 09:08:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715702882; cv=pass; d=google.com; s=arc-20160816; b=kGyqlGhXQA3IvMsUSRYo0Y8Mf5dTSl9KA8oRABvhNTSGHjVTDa+kmCJ1A3/PsbLYfP AxgpEhaUI03uPWIneVF6liVJbLMN2MmvuKZho2Od1qLTkYDs6OWgfa+49JkBO8BfWM/B uJtQzUJR+JfD+fN0KxeRaJKGeVrKpA3QB+g9Hwdmr74WdSTBb1cFH2lazCyHjiwY8r3h lB1kWgCYcA+u4NmUAxCpGtgg7YskK/JnzyaFzlQFn4AO+HR+crNv1YhVwD4x+M18lQmy yhWeJqN+EuB8QuTg4Xm/8kyKSxd3xlfIKlyZkd3IlxwYd4D9UmhdBRx1Gp1zZm3QvW7B OUMg== 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=sV6iD1svKcbS7N4QNKK55MN4Ms32RN4vbZOZJWHzc9I=; fh=BEJlMWEBbQNqWMNjYQ/v0tRhk9dbjt/FhqWO5AcXdRc=; b=Tsd3frKlhBQY6Sz73ZIQ8X0hikfHLWd5oiizDQQKp9FZW0w0MeAzWS0o56uuVqYa/3 EBkFf7KJlBGzduXK3Sq2btHo4bCZ2zUnaxupYi2ddIUaf5cUOpkqjv322MjfEWe1LMPh 9SYRg5SYt13pbTpmzVZJXvmCJB5l71jCCVDaLCOVke3AZNPlTpBExwuxgvCoh2Ss4eO4 gh3KeX5cBJnTjCbsKGzqkQvlWHQVmtK7XR/cxc2tuGhIHI9oxoxqrFfR67YQ7fu+3x7/ y2x1vxbRffbbQGpGhftd8t8p/xy8gx6DrugcJM2hlHc7EuXH4M6BBgM3hP/JjeAdpQpm d8kQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=szp5EbkA; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-178913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29a349si120960016d6.221.2024.05.14.09.08.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 09:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=szp5EbkA; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-178913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EFBDC1C20A80 for ; Tue, 14 May 2024 16:08:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F004B1802A0; Tue, 14 May 2024 16:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="szp5EbkA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1ECD517F375; Tue, 14 May 2024 16:07:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715702862; cv=none; b=ntiooRD2LAgLN+vyhB4bNg8kEIBjL9uocV4Ds1U1QflcadsJ5rcDlHZxqMoap2leqDGDedXvjbkbqO/yIuvxfZP+xtHEogZroo6Jw7PnZ3jPq0a7OdktkVzm0WDI8/G4C/ie/ytjBDwikTXgWEMKBZ6FyuD6crKy3qEN+zIexZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715702862; c=relaxed/simple; bh=ML3v5tzrHw3VPJFi38YFLewOGIWpzxuRisvnBjpMwZE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dMIG2MDEsV5V+pZIlJDjo+TxavZXeRkkX4T3ZDugQByFgfjmumYPXUlFVpvwRgFvZn5xdOf1ZmSW0Ck/Up2wPuMjIJD9YqCcELF7sNQgxnPu0NEMyOUEThxvfSQ02v3xgOOzSS6tOv6V+pO0vBjmLsH6BqtaxOBnhLSMboUv0lk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=szp5EbkA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9ECFEC2BD10; Tue, 14 May 2024 16:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715702861; bh=ML3v5tzrHw3VPJFi38YFLewOGIWpzxuRisvnBjpMwZE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=szp5EbkA0s/5LKz4st/tlejsC9BXeyG4iVh+NDoskdfd8/ms5ij+41djwFLr+SO6f Ulz9rPSS8WHuAZIgdVhPDvYwtP9mOIvBAi1JE8iubmrlD5Bpr1JRik5Hzbsbjbh2Pj LyJ4HrDj7j2tIcwybOem26knshcc5DrFTvZHf9Ss= Date: Tue, 14 May 2024 18:07:33 +0200 From: Greg Kroah-Hartman To: Yuanchu Xie Cc: Wei Liu , Rob Bradford , Theodore Ts'o , Pasha Tatashin , Jonathan Corbet , Thomas Zimmermann , Dan Williams , Tom Lendacky , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, virtualization@lists.linux.dev, dev@lists.cloudhypervisor.org Subject: Re: [RFC PATCH v1 1/2] virt: memctl: control guest physical memory properties Message-ID: <2024051429-cultural-prayer-438a@gregkh> References: <20240514020301.1835794-1-yuanchu@google.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: <20240514020301.1835794-1-yuanchu@google.com> On Mon, May 13, 2024 at 07:03:00PM -0700, Yuanchu Xie wrote: > +/* > + * Used for internal kernel memctl calls, i.e. to better support kernel stacks, > + * or to efficiently zero hugetlb pages. > + */ > +long memctl_vmm_call(__u64 func_code, __u64 addr, __u64 length, __u64 arg, > + struct memctl_buf *buf) > +{ > + buf->call.func_code = func_code; > + buf->call.addr = addr; > + buf->call.length = length; > + buf->call.arg = arg; > + > + return __memctl_vmm_call(buf); > +} > +EXPORT_SYMBOL(memctl_vmm_call); You export something that is never actually called, which implies that this is not tested at all (i.e. it is dead code.) Please remove. Also, why not EXPORT_SYMBOL_GPL()? (I have to ask, sorry.) thanks, greg k-h