Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp394295pxb; Mon, 13 Sep 2021 23:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBvnJI65sKwCBbben9BD2RqaWzp+PlponuwfwZpc3PkeOE4XDWf+6BCc5J+VzTAxb2DlV5 X-Received: by 2002:a17:906:2ec5:: with SMTP id s5mr16394986eji.192.1631599517805; Mon, 13 Sep 2021 23:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631599517; cv=none; d=google.com; s=arc-20160816; b=v1kTmWEelOzydBHBSRT67vknEhrMDgZU7tTKYGGToO9X27w8NGOI9lX7KybIHZdiLg OIPHTDPDAR7mMxleopHHj2XB6kpa+SAOYFSszJaOn3svRZioA5SYYoqpMPBg5Mlco3+y UbfgMQOJd/os0OQOvcgavmHTdmTbM3BwDNdK5o3g8Rjeqo+zdKyfP7d7oHo5FSqh3We8 tpDOnbAHXh8cHvX+tOplwj/mdWCZy1KjpGT/axtm3C+ZGwlwJH0sT+RkLMzysSuR8JM+ TON/rCotEbqQqtyHqZUEC7m3GRjAXnlYArEMZM0Ua3PYT676pPU6qx9pczryPhFsobC8 stZg== 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=nWfGUpapWdWL+wd2Z/mpG8oPd7gegzj3yiB7hQCJS+4=; b=klgISKVDsh5sfdwacHfb3rv/A47M7U0pktpLwYzT+gxUHMHyJJJgEPYUV3cJTMaf/7 FNzIxbkv/TdUdpqjgA0aD7sF3cl3zgSlAkzKOoca5FSR1IDubj3kQC6MfpL5F7OhNoMC W3jFekYnbOOZ8JCssmWv6vpPVwlvuYzOEGuwuGWmET0EvgmtBmpuJb5cznriu7Dc10Nc TDi6qEC4dpBPnSsLbyfPb643gVe2hJIjFC2l5umJJHAuu2230fQlS38Oo6TsQ7cJCheF puWwjxxAqlx9RMUmlZBbZGcEua9co7bnoBqD2K/dwx16HhsZCVQPj8jMbdEKDe5Uicsu GSqA== 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 a22si10038459edy.561.2021.09.13.23.04.54; Mon, 13 Sep 2021 23:05:17 -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 S239935AbhINGCl (ORCPT + 99 others); Tue, 14 Sep 2021 02:02:41 -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