Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp360965pxb; Tue, 9 Feb 2021 02:11:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJymoiq7ayd2146r7vA9uQmi1hke713hRbtDnSxsBEPB9UzCyNIFoXi8H4ltW/RANXGKc+8z X-Received: by 2002:a17:906:b253:: with SMTP id ce19mr14138666ejb.117.1612865519647; Tue, 09 Feb 2021 02:11:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612865519; cv=none; d=google.com; s=arc-20160816; b=QSmzSpXs5ZN9GuXmocCLNyc7oO+e5dRHzhtARWmqOHCgAa2SPR920RjRcBI5l/ivmT BMCq4RebbRMyP33NzYuuuw/m+kqOrPV7tscIx60dF0VPDgLPLxN72XGQPrg1/J7Mr7AJ Z5Ml+tMnLtkyFBfEwtHd536Pp/YA5eV+MsRKnvTZPXYbuNGnWYLZOQmoX32EzABcqONZ WdOgXSpfgaQzs1ZlQXiXP0zcChPFWVI/U+wRAfO8OFM7NFTz2p1K/ltOL3QdmY6c9XHm JzXbiZu7E0V/hpQ47eG5Wl5otjWETBoTFI9y1dO6ciBTWifQA692eMA0KrRiL4LNWDU6 jwFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5t/orPm1+pEAE9sHFN6oHfWt1nqeKEPUMcuyvgJKmAI=; b=pfOwfgUrQTjxY3IL2caLENRPYOJ9b/JvLN77GGpl6WGQ7MuQJUeMgfCZhdZXeK20RI RCLtPhTyaIp3dNmKpEdVLcToekvYvXRRHxS45hYiy2x/wrYGB3cKrlKz+dLOvhEOtuNV iN5ZT/WByGYLmey89ebt+WUUS/aLP/jNu1COwdw5z/ZqNLZjrOkADCb3n/FbWaegWIYa zTrIbBiNRqj7VrF7qRQTI6PLmW7YUNifnDA7+eUhdv9xOuvAA4XJAFMU0FqyJpqeUK3b CuFTwhy5y9I/cDmX46hKZPGZFxxt3z3yuAZs2I0SVFom8/ExxZ0yM052a4LYOyM/EpYH cfPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fWBf0adi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si3971568edt.210.2021.02.09.02.11.35; Tue, 09 Feb 2021 02:11:59 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fWBf0adi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231426AbhBIKK3 (ORCPT + 99 others); Tue, 9 Feb 2021 05:10:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:33466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhBIKCO (ORCPT ); Tue, 9 Feb 2021 05:02:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2710064EC3; Tue, 9 Feb 2021 10:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612864893; bh=8aZXrrIS64dYLIyxQLKVtTRe+kFRnjTdEdr6ubK33PM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fWBf0adiBgzD5kS0X+WTQzAjAXsTqELxIkhtxoETyaKfErzTFoad2gc15uSVFM77K Ie0J38KwVmKqRMCrvsjyBcQTcc8ks4ozpBsEtsBngd1tkHN/6KlbrWv07G4DTuK+H2 BCeP0F61LA3EeVyZATQOjqFQ1G3UE77dyG0/ThaI= Date: Tue, 9 Feb 2021 11:00:55 +0100 From: Greg Kroah-Hartman To: shuo.a.liu@intel.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Yu Wang , Reinette Chatre Subject: Re: [PATCH v9 00/18] HSM driver for ACRN hypervisor Message-ID: References: <20210207031040.49576-1-shuo.a.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210207031040.49576-1-shuo.a.liu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 07, 2021 at 11:10:22AM +0800, shuo.a.liu@intel.com wrote: > From: Shuo Liu > > ACRN is a Type 1 reference hypervisor stack, running directly on the bare-metal > hardware, and is suitable for a variety of IoT and embedded device solutions. > > ACRN implements a hybrid VMM architecture, using a privileged Service VM. The > Service VM manages the system resources (CPU, memory, etc.) and I/O devices of > User VMs. Multiple User VMs are supported, with each of them running Linux, > Android OS or Windows. Both Service VM and User VMs are guest VM. > > Below figure shows the architecture. > > Service VM User VM > +----------------------------+ | +------------------+ > | +--------------+ | | | | > | |ACRN userspace| | | | | > | +--------------+ | | | | > |-----------------ioctl------| | | | ... > |kernel space +----------+ | | | | > | | HSM | | | | Drivers | > | +----------+ | | | | > +--------------------|-------+ | +------------------+ > +---------------------hypercall----------------------------------------+ > | ACRN Hypervisor | > +----------------------------------------------------------------------+ > | Hardware | > +----------------------------------------------------------------------+ > > There is only one Service VM which could run Linux as OS. > > In a typical case, the Service VM will be auto started when ACRN Hypervisor is > booted. Then the ACRN userspace (an application running in Service VM) could be > used to start/stop User VMs by communicating with ACRN Hypervisor Service > Module (HSM). > > ACRN Hypervisor Service Module (HSM) is a middle layer that allows the ACRN > userspace and Service VM OS kernel to communicate with ACRN Hypervisor > and manage different User VMs. This middle layer provides the following > functionalities, > - Issues hypercalls to the hypervisor to manage User VMs: > * VM/vCPU management > * Memory management > * Device passthrough > * Interrupts injection > - I/O requests handling from User VMs. > - Exports ioctl through HSM char device. > - Exports function calls for other kernel modules > > ACRN is focused on embedded system. So it doesn't support some features. > E.g., > - ACRN doesn't support VM migration. > - ACRN doesn't support vCPU migration. > > This patch set adds the HSM to the Linux kernel. > I also added a simple example to launch a small guest (with several instructions > as payload) on ACRN with demonstration ioctl usage. > > The basic ARCN support was merged to upstream already. > https://lore.kernel.org/lkml/1559108037-18813-3-git-send-email-yakui.zhao@intel.com/ Thanks for sticking with this, now merged to my tree. thanks, greg k-h