Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp406250pxb; Mon, 13 Sep 2021 23:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIQTAFnCH8BKEqKxz/f/CR3UDlShp08efCfjxKaLocUdIbUEC6CA3OlJVfNvorl2iUo2/U X-Received: by 2002:a17:907:9723:: with SMTP id jg35mr16653451ejc.187.1631600864162; Mon, 13 Sep 2021 23:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631600864; cv=none; d=google.com; s=arc-20160816; b=XDfT29KAodmf/Fv0BGiEHioAGi1VjMJ2D4L/cQoSoNBPeNXm3g5ulE9h1Bz2rGajMU x1uI4jjGqHguWo3dpS7WmsP/0XorOlG3re47vTwZjTpzLqNszY4O9rtNv6PSuS74k+BM S/Vy1LguV5Wt7fW7gmbsbNXltHQtBn+JA4Nj0c2OOYFN4OzWYtuFhmi+OLtrKfZp++Qw jGzOgD55tN+ylQKGX09Ok1GYdobGim1rqeWXx0/A/Lv/4QhrJGIWMHTpsvjaf9Q62OHj My2A91Dj/bKn9rpSH/YJQSqS4l7IXhgAKtehlxJDbtg8oKJGTDcFSPjJf3xU/VxuX5F4 xJ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=BSkzqPzWWhTcjUSGFt92rL6KJ167GtckHgn3mChcxZY=; b=TdRf0EoNBQXeS5ezcyQW/+hOVZjT3z6BTXRYgq2QVOoQFvOYY3qxTZTZdpX2mGJ3yG 2+FaBMzCv4SBBwX4nXSXifB1z0eT7KBkVP3lB7Am++qjqfRQ59bRsUC05KuKM3jSXYdz DiSxWqRsecJALegmk3TtmD1R7cQUs/gCfULh3ebZUcSIldlaGR3amt8NxNZNBzS78q2n f6SnAYuDvghjf5CK/UfIaq9mQG4M5fycc+2QMqtWjADLW747cZQVmMgqxFLAXvuaRwsC tbJwDbgQpxxGWsws0SaWH/83vJy3KbSILFVkVeglRMjAXiQwmIX7aag6ZA/Vf/72jS8r +gzw== 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 e2si11525074ejs.346.2021.09.13.23.27.20; Mon, 13 Sep 2021 23:27:44 -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; 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 S240195AbhING1U (ORCPT + 99 others); Tue, 14 Sep 2021 02:27:20 -0400 Received: from mga11.intel.com ([192.55.52.93]:10352 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240172AbhING1T (ORCPT ); Tue, 14 Sep 2021 02:27:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10106"; a="218717564" X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="218717564" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 23:26:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="471855735" Received: from louislifei-optiplex-7050.sh.intel.com ([10.239.154.151]) by orsmga007.jf.intel.com with ESMTP; 13 Sep 2021 23:26:00 -0700 From: Fei Li To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, yu1.wang@intel.com, shuox.liu@gmail.com, fei1.li@intel.com Subject: [PATCH v4 0/2] Introduce some interfaces for ACRN hypervisor HSM driver Date: Tue, 14 Sep 2021 14:26:25 +0800 Message-Id: <20210914062627.16431-1-fei1.li@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add some new interfaces for ACRN hypervisor HSM driver: - MMIO device passthrough - virtual device creating/destroying - platform information fetching from the hypervisor ChangeLog: v4: - remove "RFC" from Subject field. v3: - remove "platform information fetching from the hypervisor". What platform information needs to be fetched has not been finally decided. Will send tis patch out once that has been decided. - add comments where is the userspace code that uses this new api: - MMIO device passthrough (a) assign a MMIO device to a User VM https://github.com/projectacrn/acrn-hypervisor/blob/master/devicemodel/core/vmmapi.c#L562 (b) de-assign a MMIO device from a User VM https://github.com/projectacrn/acrn-hypervisor/blob/master/devicemodel/core/vmmapi.c#L568 - virtual device creating/destroying (a) create a virtual device for a User VM https://github.com/projectacrn/acrn-hypervisor/blob/master/devicemodel/core/vmmapi.c#L606 (b) destroy a virtual device of a User VM https://github.com/projectacrn/acrn-hypervisor/blob/master/devicemodel/core/vmmapi.c#L612 v2: - remove "stable@vger.kernel.org" in the cc list since this patch set doesn't fix any anything, it's not for Linux -stable releases. Shuo Liu (2): virt: acrn: Introduce interfaces for MMIO device passthrough virt: acrn: Introduce interfaces for virtual device creating/destroying drivers/virt/acrn/hsm.c | 49 ++++++++++++++++++++++++ drivers/virt/acrn/hypercall.h | 52 ++++++++++++++++++++++++++ include/uapi/linux/acrn.h | 70 +++++++++++++++++++++++++++++++++++ 3 files changed, 171 insertions(+) base-commit: 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f -- 2.17.1