Received: by 10.223.185.116 with SMTP id b49csp7040771wrg; Wed, 28 Feb 2018 21:43:13 -0800 (PST) X-Google-Smtp-Source: AG47ELsp5UTv6uxINUkBHzH/6wRwDvOOk2AEWfmbQuG+EpRRK9L2AnUKCpIsDCsaNBb1DamRBi6H X-Received: by 10.101.100.200 with SMTP id t8mr625765pgv.120.1519882992981; Wed, 28 Feb 2018 21:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519882992; cv=none; d=google.com; s=arc-20160816; b=XPVGW5QKPtA5WDc9EmU6i+ZAdYa9J3cFYEVf9YKsYifu2Hei4rmsSPk7YlLIQzIGjK r2DZgbudI6zW8yiUHRtnzZXx3RTeJF3d8XWadGsyydmOpLi+eNDbjkd4vXZs3xu6wTRw f3zYeLDh+dDzSYguDZRToUBX2XluJAZtHy2qKXJTXUZWJ7upGTyxH8pU1rA3tR3+2FDj nLTey9YIpSarjCMYKPWdX43VgwMhviDEKLTP3JfLdr7tilsq3FMN25ht23/fcWPDR+6N T9/lM/FePZFPO4U8/oeJCQ5uiz/XoFbFCRKpMpXyEfDik0Yqxhu6EDQ0dO4cNlQke7lR DyNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=MhlBklg/W274qx18f0ND46BtWzVloIVrUhdMrd8tZG0=; b=DGVdmIUWDVE+HlWudEXeK2GboLZU9dCHCyjZcLlYs/S4htGaIm0d5q76DicKIrRjko M9DQEjUInNfn0asolYH5w1307TC+o4BmEl42impSW5Nh2Ltfy15A8imsWHSBdwQLRD6z KWeApcn8dQ8qebyuk5ECjlJuUkt3WKrF3aROCK8ztJ1FpINMjbuVQ2+eJfwVcX9soTij f9FwyhNCLOzkrFCvzhD/xJLdsXj3EWgsXZC2QulXJzwiQeE37dRjzNXPFtD1n04mkt58 EXYKVmb3a3xqlRUPLKHtQtS/Eo7KTXTNlkUijGGsuaCa2V5d1X6Lw4Mpjq39TJaCBXSj /OCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a88si2497886pfk.40.2018.02.28.21.42.58; Wed, 28 Feb 2018 21:43:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966143AbeCAFlv (ORCPT + 99 others); Thu, 1 Mar 2018 00:41:51 -0500 Received: from thoth.sbs.de ([192.35.17.2]:47583 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966072AbeCAFlL (ORCPT ); Thu, 1 Mar 2018 00:41:11 -0500 Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w215epoQ021932 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Mar 2018 06:40:51 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.33.50]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w215eo8x000453; Thu, 1 Mar 2018 06:40:50 +0100 From: Jan Kiszka To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Bjorn Helgaas Cc: x86@kernel.org, Linux Kernel Mailing List , jailhouse-dev@googlegroups.com, linux-pci@vger.kernel.org, virtualization@lists.linux-foundation.org, Andy Shevchenko , Benedikt Spranger , Mark Rutland , Otavio Pontes , Rob Herring Subject: [PATCH v3 0/6] jailhouse: Enhance secondary Jailhouse guest support /wrt PCI Date: Thu, 1 Mar 2018 06:40:43 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Basic x86 support [1] for running Linux as secondary Jailhouse [2] guest is currently pending in the tip tree. This builds on top and enhances the PCI support for x86 and also ARM guests (ARM[64] does not require platform patches and works already). Key elements of this series are: - detection of Jailhouse via device tree hypervisor node - function-level PCI scan if Jailhouse is detected - MMCONFIG support for x86 guests As most changes affect x86, I would suggest to route the series also via tip after the necessary acks are collected. Changes in v3: - avoided duplicate scans of PCI functions under Jailhouse - reformated PCI_MMCONFIG condition and rephrase related commit log Changes in v2: - adjusted commit log and include ordering in patch 2 - rebased over Linus master Jan [1] https://lkml.org/lkml/2017/11/27/125 [2] http://jailhouse-project.org CC: Benedikt Spranger CC: Mark Rutland CC: Otavio Pontes CC: Rob Herring Jan Kiszka (5): jailhouse: Provide detection for non-x86 systems PCI: Scan all functions when running over Jailhouse x86: Consolidate PCI_MMCONFIG configs x86/jailhouse: Allow to use PCI_MMCONFIG without ACPI MAINTAINERS: Add entry for Jailhouse Otavio Pontes (1): x86/jailhouse: Enable PCI mmconfig access in inmates Documentation/devicetree/bindings/jailhouse.txt | 8 ++++++++ MAINTAINERS | 7 +++++++ arch/x86/Kconfig | 11 ++++++----- arch/x86/include/asm/jailhouse_para.h | 2 +- arch/x86/include/asm/pci_x86.h | 2 ++ arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/cpu/amd.c | 2 +- arch/x86/kernel/jailhouse.c | 7 +++++++ arch/x86/pci/legacy.c | 4 +++- arch/x86/pci/mmconfig-shared.c | 4 ++-- drivers/pci/probe.c | 22 +++++++++++++++++++--- include/linux/hypervisor.h | 17 +++++++++++++++-- 12 files changed, 72 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/jailhouse.txt -- 2.13.6