From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD5FAC433FE for ; Tue, 14 Sep 2021 06:01:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A09246112D for ; Tue, 14 Sep 2021 06:01:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239944AbhINGCm (ORCPT ); Tue, 14 Sep 2021 02:02:42 -0400 Received: from mga04.intel.com ([192.55.52.120]:10213 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239914AbhINGCj (ORCPT ); Tue, 14 Sep 2021 02:02:39 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10106"; a="220013476" X-IronPort-AV: E=Sophos;i="5.85,291,1624345200"; d="scan'208";a="220013476" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 23:01:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,291,1624345200"; d="scan'208";a="609470941" Received: from louislifei-optiplex-7050.sh.intel.com ([10.239.154.151]) by fmsmga001.fm.intel.com with ESMTP; 13 Sep 2021 23:01:15 -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: [RFC PATCH v3 0/2] Introduce some interfaces for ACRN hypervisor HSM driver Date: Tue, 14 Sep 2021 14:01:39 +0800 Message-Id: <20210914060141.16187-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: 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