Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp762504lqt; Fri, 19 Apr 2024 09:36:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWk9ZFGRvQqZEbS7C//seWB0IhYl2F1lsChdv99AiVFNZdv1wNKyWSDxjlFmzrhbOVWmIjcply05DF21kh5+qTy0SUhdbuGnjnqL1NXXw== X-Google-Smtp-Source: AGHT+IEjL17+2d6nA3KEDF8/3B6b3Nd0xQZ1tEpnRGGMm9ruJJ3Ko/foKQD3uuSNOxgijLj1TjVA X-Received: by 2002:ad4:42c3:0:b0:6a0:5487:d84e with SMTP id f3-20020ad442c3000000b006a05487d84emr2606091qvr.8.1713544613466; Fri, 19 Apr 2024 09:36:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713544613; cv=pass; d=google.com; s=arc-20160816; b=hmqNzY4JpwXoOrETUiEYv9CJQfNcpgdKt900/fLyN570UenUCL8diiGBJNeqSY9hf8 xI99Vx/g6loctZLuIKIJoD2N8tUL+n6lHgPSSR1WnppXnN/PE48n5sBVIieiPdJ1kXl2 zaLK8PIZSA5p53HpR5JuJQkUgTTxxm1i7p9e6kChaTybyimwFqoFxpidQRu/JI5IM9t2 9YPdEmrrh1MzrlhXTHGAP7Vm29XJ/cZb3NN8Rqullaa6OaycXKJ/WCLmZgZZVuzBKm2b xlH1UyMMk7EoR1emJkzWlYr/7yLJzbAEs+2WcCcgBE9gXeD4iU2mt44cVtdDI80WUylH Eh3Q== 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=s2QFN9QuRtBX1HRhr9p9h1qkAEzLgDd7vTVcn1OcSxc=; fh=qv8GNm2HS89PEY09aB1KDNSl+GZDNdmqsIULsRb8YMs=; b=HYswOvpYfBaLwVkFEFoukzWow61N1C6m4xvl4YkDgRM58W/vbnFkdX+BWO5EDWEuVD GUWn29MPgE9BnOUXDZOfHgJW7/6vIWbmCRnShA3hsMF7z7Sb7gy0GMpA8B9qRHGNwcS5 /3UMuPce/+dMDMFJaAMASBNeME0dN9ZRaXnR5OSAjk0MaObxLjad+J3M4UtFo/oF8sKM zcitGvvwe6YkdUCH5/2ajkcUTloREmrUJzdGHD2uJub6WE6sgf5O2NuawoUs3QLqG+yn EG2JKPp0w+sPeZjSWrFC+wA5Kg8GF0eIxGtZN7MwnO5/qMn5Vnas3oNR/m/LFeH8QkeF kMcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EwmB4/k6"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-151542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a12-20020ad45c4c000000b0069b162a3619si4270239qva.36.2024.04.19.09.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 09:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EwmB4/k6"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-151542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151542-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A8BC51C232B0 for ; Fri, 19 Apr 2024 14:08:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E94EC12EBF8; Fri, 19 Apr 2024 14:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EwmB4/k6" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 E97328565D; Fri, 19 Apr 2024 14:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535483; cv=none; b=Si/usyfdqHDlEduA8Wizt9v41EuBUrtQFOTnzDIFRQgs9ygbBeYl95NDTRTQU7R0HNsyiGSUmoGpSpMUyUofPUj5YJ5svcLPtnvJX5h8vl4QHKSbVhpTdwYm3brg5kQButWrzzLx2uoHc41cvV+Vy1SPqR16Om/nafcb8WKqgzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535483; c=relaxed/simple; bh=SgZXbn4MwMQF10lT0Yvq+oGrrq1rWIvdfQSZtc0tjqI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CSrV6u4noFlCqvCHXFyYUF8nzi3XRj2nKyJ2MiPWCtwTutjPLUWGJ+7OF6X51GNPqSzzbNuom6hSdq2pKLCQLhlXkkcVR5umLFjjk7RH3kpOBosSLSdkIQD1DEzPySskaIzV31BMpdpY5YJMiTW0U/+zj8vkffuwSGYbBzkqMXk= 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=EwmB4/k6; arc=none smtp.client-ip=192.198.163.15 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=1713535478; x=1745071478; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SgZXbn4MwMQF10lT0Yvq+oGrrq1rWIvdfQSZtc0tjqI=; b=EwmB4/k6nf9jfLquvd/U4CTBz8peCxQdaLiq71ZGMAXKOrQ8Zpr8oOYK YnyjASo/nLYfQbkI2PoNhx2Z4eMYdQnTpYTiOt5TpWtJtMvjIY7zRcn9+ SeZ9LWJi67Z15/4D2FzypKGP5Y29asqE3lZH3HKyLdXJ8TONxxWIuzKo4 qBAVEDLJ1Hl/ZzngH1CaTMPtcugD6ExhQE34onEsCsbAU/slU2DNVbobi v9SdS1WVtKt7ltv6lvya790391kpqQULKuN7qoNh/6yaOXuzCH/DWnUuh JMogof9HRUWq6OMfOAZHaVpryPTjA49kT/g1VPb8+7EIsev0T+gWU2Pwh g==; X-CSE-ConnectionGUID: v61bHeqrRmqWZZ1w65UuhA== X-CSE-MsgGUID: VlCWa3s/QZ65VQQU/qNvOg== X-IronPort-AV: E=McAfee;i="6600,9927,11049"; a="9309769" X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="9309769" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2024 07:04:32 -0700 X-CSE-ConnectionGUID: 3BLZNZlZRG6JmQTmmH5cxA== X-CSE-MsgGUID: UT30vGDRTwS095dbaZMiMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="54258746" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orviesa002.jf.intel.com with ESMTP; 19 Apr 2024 07:04:26 -0700 Date: Fri, 19 Apr 2024 21:59:11 +0800 From: Xu Yilun To: Isaku Yamahata Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, xiaoyao.li@intel.com, binbin.wu@linux.intel.com, seanjc@google.com, rick.p.edgecombe@intel.com, isaku.yamahata@linux.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> <20240417193625.GJ3039520@ls.amr.corp.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=us-ascii Content-Disposition: inline In-Reply-To: <20240417193625.GJ3039520@ls.amr.corp.intel.com> > > +#ifdef CONFIG_KVM_GENERIC_MAP_MEMORY > > + case KVM_CAP_MAP_MEMORY: > > + if (!kvm) > > + return 1; > > + /* Leave per-VM implementation to kvm_vm_ioctl_check_extension(). */ > > nitpick: > fallthough; A little tricky. 'break;' should be more straightforward. Thanks, Yilun > > > #endif > > default: > > break; > > -- > > 2.43.0 > > > > > > > > -- > Isaku Yamahata >