Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp358420pxb; Sat, 21 Aug 2021 04:52:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9qSpc8bydJFGA4q3ACpFJSSZGvdwrGXp1YV7VFG/PQ5TpRC63+kNBOf+4uk2BYda/Ss7j X-Received: by 2002:aa7:c745:: with SMTP id c5mr1666289eds.297.1629546761049; Sat, 21 Aug 2021 04:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629546761; cv=none; d=google.com; s=arc-20160816; b=zVRYzRt6Aw6EsNsJCNu367uacNyFb0qPGkYZSDmkwClMLSdJod2WWm9KmsseJ8lMBM FJypIG7oWKsPBEuLasylMSwZofyhSih4hQ26n8L4rkqx/cgBQtj6Mht29gD5uFXLcC4R ni3f8C9eoNQ09uUFxfiBbYgRD7/k8oKRaTV8e63d7uyFJSIxy4UcL+78bw9l9VJZRSbs Lh+7lUfg6slMFCz/cuwIoGTJsaTkPGBksTiw1pj4yN566chLNhEDD2YQIIdaZkZ/R7Ta wIq+6YmfjHM/aNgOnpSDRn8dHf4i/eJHRibPzTSjrWWt0mEYc1BuaSrik3uGb5sXMNev c/kg== 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=J8Luyke2qCO0AWXhJzrnI4WI66VosnvLe9ikNfArJKc=; b=hd5XUGbVixGqCT9oPZTGbLbx0qoi+sTgeFRZwG8BUCphkB5s4qrXfUuWDuT8pcxGF8 KrZ/GG3sOIufCPn9d6KrYSaNN01oZFS/+KL7X7KIZ4xDlNbZ1KUY9Qn0+zB8tmk1CdKd fkUIrWwFJ09iINh6cZ7Esaw8N/sSyZo4N2OV0gJ6uTn8gpMNe/qlYA4hF1PgDBQq7pBH 0r74/cO1cdSTH29kqW3TPsf7GE4K8hG8xmmhu/KRpRioKhycfLuvXv/egvHo0wmg7YgR hXJ0RGCmkKsbHZtRJYd/Ku7yomR/EfVaISP5gfUhQu+QQqPjI/v2i6hAJPwU7h7pNqlb YufA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wdbsEyAG; 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 z20si9455125edx.292.2021.08.21.04.52.16; Sat, 21 Aug 2021 04:52:41 -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=wdbsEyAG; 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 S234496AbhHULuK (ORCPT + 99 others); Sat, 21 Aug 2021 07:50:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:34688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234466AbhHULuJ (ORCPT ); Sat, 21 Aug 2021 07:50:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 413B7611CB; Sat, 21 Aug 2021 11:49:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629546570; bh=Vc4SZYiaNxK5ztZcTp2G+n5lW8xqzWWlj/0WxDYBWBU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wdbsEyAGnILl7tKTBVH1jnxE49z8ICDju/4ZJ7hVvWTpjxzohOKFMBBxfrxF/yxL8 uxq1Eri73coNkMWgiHmaUO6oAzR1mOkw8bhzs9BZD6yMOVWMH19xUoh49LvMEo52Ba UGe/0QGa+Tjkpmfl5Z/ONfm4c+nR87OQj2cPlS9I= Date: Sat, 21 Aug 2021 13:49:26 +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 2/3] virt: acrn: Introduce interfaces for virtual device creating/destroying Message-ID: References: <20210820060306.10682-1-fei1.li@intel.com> <20210820060306.10682-3-fei1.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210820060306.10682-3-fei1.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 02:03:05PM +0800, Fei Li wrote: > From: Shuo Liu > > The ACRN hypervisor can emulate a virtual device within hypervisor for a > Guest VM. The emulated virtual device can work without the ACRN > userspace after creation. The hypervisor do the emulation of that device. > > To support the virtual device creating/destroying, HSM provides the > following ioctls: > - ACRN_IOCTL_CREATE_VDEV > Pass data struct acrn_vdev from userspace to the hypervisor, and inform > the hypervisor to create a virtual device for a User VM. > - ACRN_IOCTL_DESTROY_VDEV > Pass data struct acrn_vdev from userspace to the hypervisor, and inform > the hypervisor to destroy a virtual device of a User VM. > > Signed-off-by: Shuo Liu > Signed-off-by: Fei Li > --- > drivers/virt/acrn/hsm.c | 24 ++++++++++++++++++++ > drivers/virt/acrn/hypercall.h | 26 ++++++++++++++++++++++ > include/uapi/linux/acrn.h | 42 +++++++++++++++++++++++++++++++++++ > 3 files changed, 92 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.