Received: by 10.223.185.116 with SMTP id b49csp4745996wrg; Tue, 6 Mar 2018 23:41:48 -0800 (PST) X-Google-Smtp-Source: AG47ELtetKffhLGzZ1apemAO5RuOawmrpJ0hhDapt3EwwmhuJot1yCnNEbvg8A4YZjhFQcQU+t+2 X-Received: by 10.99.117.6 with SMTP id q6mr17300185pgc.146.1520408508772; Tue, 06 Mar 2018 23:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520408508; cv=none; d=google.com; s=arc-20160816; b=NcEc+UxxTam9Z1swbfp6E/472VbxvnAEmG8VHe9ml79y4vIZA6xIc8C4WhkLJ8f93q juJ884WlpknS2wmVXV4BAsBAqBSeThjQsypSR96E5O2iJYCU+tTDB17ntdsftiYMDtlA qubvE2wyGWaB6V76IbvKw4YVIPsPlOikGwhnat6w8CwQhbnBBzkzwLOU71KV32R+r94n +Pq8R/PajnRIwOw+8n9loW/dgT+b/bo+0RSry5O8rS5A2zAeg3CXKVHKnqIcj9561McT +9unG10k8OwBZ2MaJP7tWdT/FFpm0pJV5yXojABBE8cmsINS6zeoQzcodfu3G3A0MmxT F/gw== 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=fzXoQeaoo23tqnTolYkD/Oo5qPo8pgRpjc5S476w1fk=; b=H3qy+wmANf1OY0zpjhm/bHeanetb6BlkNHFfDhMKCo585CbuPsVHUiS3/+VQHizNjW JkeDiod4r9mxT3bpw3A4mba1cupzINosajPTd0BMc8IRPjoU7MaIqmAiF/efaprT1gTa 8q/qWSB/85bt5Qx9+1nd+YgC1Ovdtn+ODAWzstC+InOG2lhf64kl6VkBfzdoCD0PNG/8 j/dTZbzFYaTZ9+OPFusbuPfVjJMBK27tNqdKgWS9I3lAW5LW4WpbMnJ8MIRUHjrfgS8V 4iyEbDccUC8o7zmq8Y8wyeDDLhtVS807ByXmyMIAnk4fIEl8UsuMsEjgeUxNG62Vvla3 c2bg== 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 v65si13411769pfk.338.2018.03.06.23.41.21; Tue, 06 Mar 2018 23:41:48 -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 S1751301AbeCGHjy (ORCPT + 99 others); Wed, 7 Mar 2018 02:39:54 -0500 Received: from thoth.sbs.de ([192.35.17.2]:49659 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196AbeCGHjs (ORCPT ); Wed, 7 Mar 2018 02:39:48 -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 w277dKgm001676 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Mar 2018 08:39:20 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.11.133]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w277dIAg004697; Wed, 7 Mar 2018 08:39:19 +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 , Juergen Gross , Mark Rutland , Otavio Pontes , Rob Herring Subject: [PATCH v5 0/7] jailhouse: Enhance secondary Jailhouse guest support /wrt PCI Date: Wed, 7 Mar 2018 08:39:11 +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 v5: - fix build breakage of patch 6 on i386 Changes in v4: - slit up Kconfig changes - respect pcibios_last_bus during mmconfig setup - cosmetic changes requested by Andy 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: Juergen Gross CC: Mark Rutland CC: Otavio Pontes CC: Rob Herring Jan Kiszka (6): jailhouse: Provide detection for non-x86 systems PCI: Scan all functions when running over Jailhouse x86: Align x86_64 PCI_MMCONFIG with 32-bit variant 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 | 12 +++++++----- 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 | 8 ++++++++ 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, 74 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/jailhouse.txt -- 2.13.6