Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp357861pxb; Sat, 21 Aug 2021 04:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPHaSN/q86wNisdr5CmEh5F+11YJgWpL9oq2vLzM0LOqnMcYzrzNyzwImNrJz/L3KpTFMs X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr26965666eds.217.1629546686391; Sat, 21 Aug 2021 04:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629546686; cv=none; d=google.com; s=arc-20160816; b=LDh4vBH7Ey8E4Z8QtIueAXSU1OqUkf2O5yWuJBEV05Ndtalq1ZxeYNC3Hpoxf6kK0k TSxhOT2K93zQqe6S3ezqaz8xREibK6x3aSWYKgRQXp0D5+Po4bSCEGDmq9XFMBNeYt46 HZ6SmTbKH0A1TUrJXhraXB6Iy7DTDvA0EODV2nugAxtjdZp96xkwHuSiCzLPpMuOghn9 8diOX+XY9PJ8b+eieWYhpsOn3W4wWloFm3/CRYv3aBbV1Gmb2HBYI7W4KltZOxqyGlYG HciuYfrQLck7c/Gkz7YekG2fylt+uyhVQorDhypFugI2bpgCprNNYZRADeT3ePztHPht 392Q== 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=2PrP2KgG6hVqyvrAoa88PkBwJ0PxT2eouZ4uJ9c299c=; b=u6HBz3mwzh9dRCxoYlnmQoZtAROUSrldgqHm37JMX/MdbCPEyvasgBC+66Ozgy2pv6 XGRu1EU+fU7nH0qtGrNaCinOlLg1UOmF5nXH1H+kqfYSHsz1GmXDz0IvspnqAJH1/IE8 1+RneuFWk+rnObmxMfaY66kDtFCgWzsM7bmVhQiYAa1cP9LxR8l9ZZTGHXkDFwd6NPk9 RwwHtNGOpNew9wBJVsoDbBfdSvxj9osPAfB3hPuqFmPUJT1WbzgqNWGlyPvPeA7MmDAB JoUTDzkWlnRp1Qqf2ofv64vGIsXtj93nAeYy/kAN9iFd3tlSXvQHKlpzBovlYOdgKhF0 uKGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qn2zF4zH; 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 gb5si3542417ejc.310.2021.08.21.04.51.03; Sat, 21 Aug 2021 04:51:26 -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=qn2zF4zH; 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 S234453AbhHULuC (ORCPT + 99 others); Sat, 21 Aug 2021 07:50:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:34510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbhHULuB (ORCPT ); Sat, 21 Aug 2021 07:50:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C965F611CB; Sat, 21 Aug 2021 11:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629546562; bh=LKGaF6AanJDgf94XmfHI472lbsoLuvOzEqcCiQ93a6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qn2zF4zHhThcTb0y1kTbN0bdk7G5p9bU38K25uB23xdPUKMQAF6YQyvlB+d0t2cCZ i6jXRmTy64qxCByTzSgxqXPJ47Q9bm42bS2ZC1MYuAmL0oSHoZznAWavNq9NSX0pRj k2wmiQ3ODDr9qWTMGkMcsMolrTAx2WmPL1B8rYY4= Date: Sat, 21 Aug 2021 13:49:19 +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 1/3] virt: acrn: Introduce interfaces for MMIO device passthrough Message-ID: References: <20210820060306.10682-1-fei1.li@intel.com> <20210820060306.10682-2-fei1.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210820060306.10682-2-fei1.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 02:03:04PM +0800, Fei Li wrote: > From: Shuo Liu > > MMIO device passthrough enables an OS in a virtual machine to directly > access a MMIO device in the host. It promises almost the native > performance, which is required in performance-critical scenarios of > ACRN. > > HSM provides the following ioctls: > - Assign - ACRN_IOCTL_ASSIGN_MMIODEV > Pass data struct acrn_mmiodev from userspace to the hypervisor, and > inform the hypervisor to assign a MMIO device to a User VM. > > - De-assign - ACRN_IOCTL_DEASSIGN_PCIDEV > Pass data struct acrn_mmiodev from userspace to the hypervisor, and > inform the hypervisor to de-assign a MMIO device from a User VM. > > Signed-off-by: Shuo Liu > Signed-off-by: Fei Li > --- > drivers/virt/acrn/hsm.c | 25 +++++++++++++++++++++++++ > drivers/virt/acrn/hypercall.h | 26 ++++++++++++++++++++++++++ > include/uapi/linux/acrn.h | 28 ++++++++++++++++++++++++++++ > 3 files changed, 79 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.