Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp368118pxb; Thu, 23 Sep 2021 01:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8LncTdR2kJiiCpfOgx8A0WV7GJqC1lux8Yc7d6QMT/AUTKcNG7c8do1WQfkznPjC4jVpk X-Received: by 2002:a92:ca0b:: with SMTP id j11mr2757781ils.191.1632386521971; Thu, 23 Sep 2021 01:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632386521; cv=none; d=google.com; s=arc-20160816; b=YTKVr0tP0QNht5WU/sukWVGM7o5X3jv8tFPJtmxtu/WZCNB05KqaADPSyHzrgyeErx vwjsHiMUOdCHif/fkXRDOnGDNQMGLS+I12L/WTOiX2SGkJnFb95S4P9VZLfhUCNEkAsl d4QPnj+LWYBtVQCRkOI5gaq+TP0abqAJdCCrG8UjPxZe6ymrGFrDHJrZZhq4Qlckp0xZ OORHI80PKq5YJyJHppt5LQa6/nT6Q21IlBFIoIta03jjVDReyOtMtM/1FeitOY2VuDeB Oj9z/T8RxWB+LWUbzIGlXuT76P9E6RDprUcRJNqBkWsFhUzW6wd3mLaKXhrJmoJyQ0cl cNgg== 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=8dw6ynG9FUvAdKQqFBhzSoKHE7zRP25HPJIelkC4OSA=; b=qIWNHpt0+b34n+dP89N8/c++ceao1gFvOD+gaHsaSzSMpqFj6S4zpCBFkONSUeoeKE gQG19tw69ZpSQsp8H9GAGcirAM9U6TKD1Jxfhpnz5o27vzul76qHA/TBlaSMhO+XGF6n La07cnZIZt+lY24aOQ1HgpkXRgNgA+mLuCq6kDejaXlO2RK9v4EjPkbVV6N9wWJsayjT uQr/6MfUfb6L31r6v2Y0bhU/OfTwrCGatf/i5QEnrPz3mpILZv9NWzRj3MA8cloLXV6o UWaGiXs70IK0fZYebJo3seBqEdkW+15m0DZ8IGUzCqmfAz7CQukuml3HqHGcMwjtjULQ KBZw== 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 x6si5758266ilv.42.2021.09.23.01.41.50; Thu, 23 Sep 2021 01:42:01 -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 S239953AbhIWImS (ORCPT + 99 others); Thu, 23 Sep 2021 04:42:18 -0400 Received: from mga06.intel.com ([134.134.136.31]:24992 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239825AbhIWImR (ORCPT ); Thu, 23 Sep 2021 04:42:17 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="284806414" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="284806414" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 01:40:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="558226820" Received: from louislifei-optiplex-7050.sh.intel.com ([10.239.154.151]) by fmsmga002.fm.intel.com with ESMTP; 23 Sep 2021 01:40:44 -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 v5 0/2] Introduce some interfaces for ACRN hypervisor HSM driver Date: Thu, 23 Sep 2021 16:41:26 +0800 Message-Id: <20210923084128.18902-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: v5: - add comments where is the userspace code that uses the new api in commit log. - specify the endian for some fields in struct acrn_vdev. 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: 58e2cf5d794616b84f591d4d1276c8953278ce24 -- 2.17.1