Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp359438pxb; Sat, 21 Aug 2021 04:54:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytl24jVImdylmJuTz9jvCKmEf075rOxPVwR14TUA/qq/cUvL3NihJia6VU6g+kQO1ElfIp X-Received: by 2002:a50:cc06:: with SMTP id m6mr27109078edi.97.1629546873122; Sat, 21 Aug 2021 04:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629546873; cv=none; d=google.com; s=arc-20160816; b=zU0AmBL1V2JcBHF3/ILX/hFZuQ1HlIG66mHjLXJ2hAiubw5r849GvIRstL2X206Vjy JmPjY4m/gTg2JJV3MQ7guKV4B+XXfkdxHJ4EVab939oBgUXw82BSOSF+ujagMmB2Rwzu VzWi+YPCAmKejFxSO1jbfHJLF4gUdTmc8MPzNauXhyS5DeJ+wWxkHLRz+twwGAcryikD SSHNbPkBxWfBSJFpSkaI/LtlRRofkR6XwWesJZsK2Rw2pyR86uxJKFh1GB8PIhzTyUpA OqcTCo4cmLF+9XrEM3YIYYD35p4UOJfshXWJj75MbKhXfexnV5XDf9pyhNca631ua7yS 40CA== 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=poJbaMuEi3boTMDtm4jWvlgI8ryFvH5qmh1aNxliomw=; b=bAz/6iEdWwK7U+7JvE7Amh/3cYKg3kQ/cALzqhqMOmf9zLtjUewcOEV825KNGWsINu LcshpdyV0IrRDIT38Mkw2rGwj8wwMVL3BadD6qu+oTpDn1KGsz+wWqkiqy5VURHTfpl/ JsY30sGFaLC+cfjT0bbjKj+yRKEq4q1zMQC2xNVYy+AwTk2YNbkTFF6mE3M57xsBcRH7 iViReluFBsCdAwIWZ/dDHdkWwwzD5EuGUzFzAg9fN7VfFWsw0+njdWkdPQFhGuZQrhw2 extK9mq0Pxc0irj+qs+pE5kOfnyqzxO6GRSTyMuj92bEhXJl0LUJOXcqOubFNhMaCeK6 wiew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eY+pBVcI; 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 a1si9654477ejx.553.2021.08.21.04.54.08; Sat, 21 Aug 2021 04:54:33 -0700 (PDT) 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=eY+pBVcI; 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 S234495AbhHULuW (ORCPT + 99 others); Sat, 21 Aug 2021 07:50:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbhHULuT (ORCPT ); Sat, 21 Aug 2021 07:50:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 57224611F0; Sat, 21 Aug 2021 11:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629546580; bh=VFBMMgr+xxEPYxFRjw/Y404JXgcngCDOQlsX3wYtrj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eY+pBVcIwYg6ZLcfeM6nv1pf2KxGEWKkWhiaa/cL+HxukfNywuPEd8kMKRqiajhWL RCpu69CwCM1qo1yhqZKjlIH5JYlLAfpF+nBAR6ohto00PU0wLL4BAj/d7OxsdM20tU u75LI4V3mJwoIssv97ydhVpX+ceq12VuOGzroh5Y= Date: Sat, 21 Aug 2021 13:49:36 +0200 From: Greg KH To: Fei Li Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, yu1.wang@intel.com, shuox.liu@gmail.com Subject: Re: [PATCH 3/3] virt: acrn: Introduce interface to fetch platform info from the hypervisor Message-ID: References: <20210820060306.10682-1-fei1.li@intel.com> <20210820060306.10682-4-fei1.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210820060306.10682-4-fei1.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 02:03:06PM +0800, Fei Li wrote: > From: Shuo Liu > > The ACRN hypervisor configures the guest VMs information statically and > builds guest VM configurations within the hypervisor. There are also > some hardware information are stored in the hypervisor in boot stage. > The ACRN userspace needs platform information to do the orchestration. > > The HSM provides the following interface for the ACRN userspace to fetch > platform info: > - ACRN_IOCTL_GET_PLATFORM_INFO > Exchange the basic information by a struct acrn_platform_info. If the > ACRN userspace provides a userspace buffer (whose vma filled in > vm_configs_addr), the HSM creates a bounce buffer (kmalloced for > continuous memory region) to fetch VM configurations data from the > hypervisor. > > Signed-off-by: Shuo Liu > Signed-off-by: Fei Li > --- > drivers/virt/acrn/hsm.c | 53 +++++++++++++++++++++++++++++++++++ > drivers/virt/acrn/hypercall.h | 12 ++++++++ > include/uapi/linux/acrn.h | 44 +++++++++++++++++++++++++++++ > 3 files changed, 109 insertions(+) : This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.