Received: by 10.223.164.202 with SMTP id h10csp1562211wrb; Wed, 15 Nov 2017 23:49:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMZs7RFCf2FZhsfLg0y9w1bLyA31rd7dMZE/HtjbXMwpWAHXknPoWvfNJwFvFbcQvc6M2q/U X-Received: by 10.98.12.2 with SMTP id u2mr925854pfi.158.1510818595776; Wed, 15 Nov 2017 23:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510818595; cv=none; d=google.com; s=arc-20160816; b=r5a0uA42PTl9fgBP3SaTi3otjzJ3VR7eGv/9gb5tTDr1mfCOsPZR5Keq5T9nzgOYmy TJlCwRLWJxb5/BZe+6dwa3LQPRrnHmwEuI1CNvtTtSTsBa6hnrP/ERWXy8uPsqIA3cHM BvFnrYTtTsBIvcRvA8On5+HhzCwpPsqjHhuvrPBGQuhiWdnKVMgNJooR+OHTDiNYIZQ9 YexSaXn5T12ZjEZuO3b3T1zE6eCcrouw2ZwLgUOAGXFPBk6TJZuhmpjQUnQwaGMU5ftc QELW4Go/Ku8Ta1SkGVQ/iPHbtua4AJ4fO3sYQ7f6uu9ktcY/z9LX7aZYFmTgjaIdnENr gWKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vhSjzMBrfVxmisRc28U15qZRE3k/uIxzJBgg3NRMOLI=; b=jBk24mKnanj++jZOZQrCKubB5NNmxzf/+R3J2YSOazXY9W6QG+iQQyeiK5vBeeUe6c iTN7FS5nFXxXksi4Gulegf3NsXymZ2QUFeBDGbqhrEg6Ui44CqN941qEWmOGQsIq+MAE Pzn0emfy802D5OxgwRIt8xrv1tqWqVw1oGf2/aD9EgAZRPfVgBBonoEg6vBsyT3sx0bx sYNqjxzOQD7N5rtfZJujDygvjHYtShGcOqAz5z7u5ctvJl4MeenSOUBBtCwfP2epxTgx SwcWafcp5TR5vDk4pWKGS5BrFqAnSZyaibByNz/K8yvVfgFl7reoi/bvKl7WnCyiogen jdMQ== 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 l124si491516pfc.134.2017.11.15.23.49.43; Wed, 15 Nov 2017 23:49:55 -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 S932456AbdKPHrn (ORCPT + 91 others); Thu, 16 Nov 2017 02:47:43 -0500 Received: from david.siemens.de ([192.35.17.14]:50049 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758914AbdKPHrg (ORCPT ); Thu, 16 Nov 2017 02:47:36 -0500 Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id vAG7QvL2009698 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2017 08:26:57 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.32.158]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id vAG7QrlZ029336; Thu, 16 Nov 2017 08:26:56 +0100 From: Jan Kiszka To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: x86@kernel.org, Linux Kernel Mailing List , jailhouse-dev@googlegroups.com Subject: [PATCH 10/10] x86: jailhouse: Initialize PCI support Date: Thu, 16 Nov 2017 08:26:52 +0100 Message-Id: X-Mailer: git-send-email 2.12.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kiszka With this change, PCI devices can be detected and used inside a non-root cell. Signed-off-by: Jan Kiszka --- arch/x86/kernel/jailhouse.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c index 05459ea0ecc7..e573ea8b0a5f 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -211,6 +212,15 @@ static void __init jailhouse_init_platform(void) early_memunmap(data, sizeof(*data)); + pci_probe = 0; + pci_direct_init(1); + + /* + * There are no bridges on the virtual PCI root bus under Jailhouse, + * thus no other way to discover all devices than a full scan. + */ + pcibios_last_bus = 0xff; + /* * Avoid that the kernel complains about missing ACPI tables - there * are none in a non-root cell. -- 2.12.3 From 1585257392045251109@xxx Mon Nov 27 21:47:39 +0000 2017 X-GM-THRID: 1585257392045251109 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread