Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp125385pxb; Mon, 8 Feb 2021 17:28:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzN+8Dl1h8McYHT3b6upyY1Jl3Vyq1zklNxKiuMWqqrU0QUmgbui3KUw40tr2qgGCwxj8Mf X-Received: by 2002:a05:6402:558:: with SMTP id i24mr18007432edx.190.1612834106031; Mon, 08 Feb 2021 17:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612834106; cv=none; d=google.com; s=arc-20160816; b=1KooM/ZWE9BfkVvw6RfhT2ouDJi/y6xYBW3gZVln/xfijuJayWAXyy2zJ0MJhZ4/BE VSxYkzB691BzwuioP2eXsiS6FdpVBg7u8pdddzwcnlntuHEtTdfA1nJsSRYHswObHPdr Yf+kNOWonzsxkTt9xhp/hgUSVj2FEXosXvfCWMJX+JLkKGjFX9f8MpFhMzvBh0LcIVNJ L+c+8M7YLEEr6YcpgQsLnltSKLyCDwjmKttedJ75aUPduMRubGw8nfABIIw2JdBMzSU/ 7EmABHJK9iuUGbdheS6IDYliob+CImJOm8s02fK62I1WqPNCDjAQ6hnDMd6Z32QMYvS/ 7iuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=OrI+deE/e3by429hFM/Qf59s9sXI3b9uVCXEKk58QIk=; b=POidbJoL7gBIPoaVbksWkb4bSaIsckRfx7GneREPKzKJasQUZTP+uLofHGPh7nkP8+ k60NKA4Fyqcm8P11dgQRezHNapjp4jlyF/jWre8JhpKQqmUXzOEtxjF8cgPROKqtDYJ0 LLhOKLdejo7uNXSQlNH5ldPluGRqsLzar9MqGfwCy1jIrC9Sr04BQwVgh2gZeUSgEw+n 9ZS4KR/1lrCrn4t5Sf0RUg3KJBiM5LV1WCyDVDHnucI1yWiaNwVwpKHTWKIJcM4v3o75 mgSL2cojIekQ+ACFSQOg3nCElqKallCJvWj2OAsQeHXsHNYOTHoD8Nr6TPefL+g7o6it arbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si9019584eja.729.2021.02.08.17.28.02; Mon, 08 Feb 2021 17:28:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbhBIBY6 (ORCPT + 99 others); Mon, 8 Feb 2021 20:24:58 -0500 Received: from mga03.intel.com ([134.134.136.65]:13938 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbhBIBYz (ORCPT ); Mon, 8 Feb 2021 20:24:55 -0500 IronPort-SDR: D4zFAxwnk1X3dydwdAptcbSuRiwfDqxu59JEjPRcqSPGHuz5QfS3pMNTn33H8EehPkp8BZEgCl u8EQJRQrYZzw== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="181875281" X-IronPort-AV: E=Sophos;i="5.81,163,1610438400"; d="scan'208";a="181875281" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 17:24:14 -0800 IronPort-SDR: Je3cvQ9ZoFLq4CMuUUNj6fBeq4wwv61EmGO3g7kMzGSLVRCAJNsRTzRoZbEIdt2cu3QTIQS/a6 NIbmJNVFRSIQ== X-IronPort-AV: E=Sophos;i="5.81,163,1610438400"; d="scan'208";a="395838752" Received: from shuo-intel.sh.intel.com (HELO localhost) ([10.239.154.30]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 17:24:10 -0800 Date: Tue, 9 Feb 2021 09:24:07 +0800 From: Shuo A Liu To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Greg Kroah-Hartman , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Yu Wang , Reinette Chatre , Zhi Wang , Borislav Petkov , Dave Hansen , Sen Christopherson , Dan Williams , Fengwei Yin , Zhenyu Wang Subject: Re: [PATCH v9 01/18] docs: acrn: Introduce ACRN Message-ID: <20210209012407.GC15601@shuo-intel.sh.intel.com> References: <20210207031040.49576-1-shuo.a.liu@intel.com> <20210207031040.49576-2-shuo.a.liu@intel.com> <6ae2679c-e172-a955-9df5-2b54b79dd854@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <6ae2679c-e172-a955-9df5-2b54b79dd854@infradead.org> User-Agent: Mutt/1.8.3 (2017-05-23) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, On Mon 8.Feb'21 at 11:48:07 -0800, Randy Dunlap wrote: >On 2/6/21 7:10 PM, shuo.a.liu@intel.com wrote: >> From: Shuo Liu >> >> Add documentation on the following aspects of ACRN: >> >> 1) A brief introduction on the architecture of ACRN. >> 2) I/O request handling in ACRN. >> 3) CPUID functions of ACRN. > >> --- > >> diff --git a/Documentation/virt/acrn/io-request.rst b/Documentation/virt/acrn/io-request.rst >> new file mode 100644 >> index 000000000000..6cc3ea0fa1f5 >> --- /dev/null >> +++ b/Documentation/virt/acrn/io-request.rst >> @@ -0,0 +1,97 @@ >> +.. SPDX-License-Identifier: GPL-2.0 >> + >> +I/O request handling >> +==================== >> + >... >> + >> +1. I/O request >> +-------------- >> + >> +For each User VM, there is a shared 4-KByte memory region used for I/O requests >> +communication between the hypervisor and Service VM. An I/O request is a >> +256-byte structure buffer, which is 'struct acrn_io_request', that is filled by >> +an I/O handler of the hypervisor when a trapped I/O access happens in a User >> +VM. ACRN userspace in the Service VM first allocates a 4-KByte page and passes >> +the GPA (Guest Physical Address) of the buffer to the hypervisor. The buffer is >> +used as an array of 16 I/O request slots with each I/O request slot being 256 >> +bytes. This array is indexed by vCPU ID. > >Does this mean that ACRN has a limit of 16 vCPUs ? Yes. Now it is a limitation. Thanks shuo