Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp876097lqt; Fri, 19 Apr 2024 13:12:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEGajzOrrGwDDctytq+kcQa5C5CYJDYCgx8wg7kR1+BrnHgpzuxbGFIJl8zG+BtXQ1bEee6CrjDGr6rngqq1zwPUpAsZ+mUAiMx4gjaQ== X-Google-Smtp-Source: AGHT+IFmZV4nDXi3D697fBB9U4Z3PROyJBtXkrky57SCCN3KhIyZkbDXM6LY4S453USz/ckcv5sg X-Received: by 2002:a05:6a21:6d83:b0:1a7:68bf:6eba with SMTP id wl3-20020a056a216d8300b001a768bf6ebamr4126224pzb.42.1713557521358; Fri, 19 Apr 2024 13:12:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713557521; cv=pass; d=google.com; s=arc-20160816; b=npdJzyta/TpnPvJ98zP7OowIJhbGTquCB7TzxpalA1FURbJ9uEzduhHrsOaCnVoJJn PtQib7np6BwfkTzmp98WkMlZP2/8domhVgS9xS0rITDg7dewPoCTYzzxcbwkVAuYuYIl JYG6ZFBewUl5XDX+4rdW6MylOpPcq+JcaFEQleOqiwEKo1XHyxsFSuTSigNktv4kImDP RTmPzY5gJBOtWb5Y9pmAyl6jTCoLidkMQ2dNLlsT3kIGl+DsyQwbZt5hz/3rTeqoRpSH DwrsDYXUkZifVcJZJPzwLxDpCiD5m1p9irlvYGKtC1PA7SymCofNHVgY0E0KMKz1+4Se cpVA== 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=pOaOBKpX5hTxgbKVxxDgMPGk/hsmgBTT9EXWQCYIil4=; fh=DB/IP7k4Qm9PE4+w2FjEe2j/31XWymuO+EREuUppCTc=; b=a0XGPRrBXtDBVnwFQOwE//APqSdERKUZng6KgpyNcbPPPz/m7bnCdSGrxhtqZkQjMu rvsy8rLtmENDLpw6y7fgHNV3/E3K/1SAFn4ggOjO3nEcTxb5DWU0Knx7Le4jxHP4AScH +0aDMxqAroFm694G4D05HISqEMbUGNGLFUKcioaj42Jt5ReYJhMFt5oAj/flDNZ/c6Q5 AuN0X/frT+4Jq7GaP3S5iRek1Z9QEpHdD+9yUmFkzcSaU0VTSO1t2erxWG4n0fSLodVa 1YPGRLNhhm9GnWr56JmZTmcIvSvflEspNeDhCBihBgVcGblgUl1Pg1WMvUHanDL7M19B 6m/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gh5Ysj92; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-151548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y10-20020a17090ad70a00b002a0870987f6si3771423pju.136.2024.04.19.13.12.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 13:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gh5Ysj92; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-151548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151548-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DCBEAB22872 for ; Fri, 19 Apr 2024 14:10:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE18131BBC; Fri, 19 Apr 2024 14:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gh5Ysj92" 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 05D0B12FB34; Fri, 19 Apr 2024 14:06:56 +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=1713535618; cv=none; b=b48lvArSZcs6koMufJQDFev5xAHNmMzphgjiPdaODnZiH7HIQLDlnrFAxgxib2B3U70hqzIaXvSIl+r3gBuzeam+O99SI7UX8AnM1pbnOd5fxxGsk+2E9Q+eQvs2T+axzAgpTQ4JHJCM4HCrs/uhW8ot4HVQ1QUzaTNb1MyDHLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535618; c=relaxed/simple; bh=8Dg2SETr6N4feoFsxjjd3WBN8QKCU3lGTMaIZTPgErk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CN2KVRpF2+V+HGAehNy/7ubKrdfLtogHAXtRba7B2sq1oaNi6t6GPrNhTRpTck4Nqs/eZN27rqvyZ9PuWMZvZ6Mxf9+tA8WPvEPD9ol/AbCXCH1R1wG8Xayun4FMjdfzboT0bhQUHfxnYo+N26d1c/IxWerGlYnAkT4Q5sfIw/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gh5Ysj92; arc=none smtp.client-ip=192.198.163.18 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=1713535617; x=1745071617; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8Dg2SETr6N4feoFsxjjd3WBN8QKCU3lGTMaIZTPgErk=; b=gh5Ysj92TvMVKrNyWzwVyY9adJlURzidKC0xJYsfWzLA9dxg3aogAcWo CGRGUN15zVH9nfCg3Cqm5PLRnatvObajxAnQu6HOP/4WGpZdf5V2RGFhb /+1Y+GMWfE0kxUNw+XuGNQsh8PGcwFvm1Bt5HMx719NqpTx/oSgLOWcxm /9cjAgztiGcst0q7btYZK8ve7M3MD8P79er33vTTg9unmTbmQzq4eO28A knjQHxhxeiwYGBoTN7naSTWCWxZiQz87dFXI22Mc8q0WbCYgCVpHot58c lO9l0myScQz0a0z5aeQuFH7TJOWRR3ujmU5H4gOzT/wvbEUUYuZJjcdEh A==; X-CSE-ConnectionGUID: uCIuEdztQVKYI3X/804Cuw== X-CSE-MsgGUID: qicirMKZTiGc7sGVpL4QTA== X-IronPort-AV: E=McAfee;i="6600,9927,11049"; a="8997109" X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="8997109" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2024 07:06:56 -0700 X-CSE-ConnectionGUID: rIiZ5WraTSC/mutCZT/PVA== X-CSE-MsgGUID: 1i84BjcMQbybm+Askr/Drw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="28121420" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orviesa005.jf.intel.com with ESMTP; 19 Apr 2024 07:06:54 -0700 Date: Fri, 19 Apr 2024 22:01:39 +0800 From: Xu Yilun To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, isaku.yamahata@intel.com, xiaoyao.li@intel.com, binbin.wu@linux.intel.com, seanjc@google.com, rick.p.edgecombe@intel.com Subject: Re: [PATCH 2/7] KVM: Add KVM_MAP_MEMORY vcpu ioctl to pre-populate guest memory Message-ID: References: <20240417153450.3608097-1-pbonzini@redhat.com> <20240417153450.3608097-3-pbonzini@redhat.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: <20240417153450.3608097-3-pbonzini@redhat.com> On Wed, Apr 17, 2024 at 11:34:45AM -0400, Paolo Bonzini wrote: > From: Isaku Yamahata > > Add a new ioctl KVM_MAP_MEMORY in the KVM common code. It iterates on the > memory range and calls the arch-specific function. Add stub arch function > as a weak symbol. The weak symbol is gone. Thanks, Yilun