Received: by 10.223.164.202 with SMTP id h10csp1558160wrb; Wed, 15 Nov 2017 23:43:40 -0800 (PST) X-Google-Smtp-Source: AGs4zMYA+F3k7Ktx93TNfpXRYiUMpQ3rEavJ+sxjibvNXpY0LrwNrSi5+NvRkIfNeqgH/P+FFdEL X-Received: by 10.101.85.135 with SMTP id j7mr809667pgs.17.1510818220711; Wed, 15 Nov 2017 23:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510818220; cv=none; d=google.com; s=arc-20160816; b=0Ky6AQrq9SwRc58wZ/CdGTuEmDqjvd5q4fuoblqaf/sOI5YJ4+zO3hDvhHG0Knq5k5 liUY5sVPd5JqF48RHrADF/PFamWai7hbrcNwcTStSGEcjRhKSxfLlUi5+eTCshVK0f46 TdFx94A2DucKzeReTAAf5O9Ae4NrhmqwBzgz4d83ZU3FWk93QHw6P0dEaiisfC6iMdd3 dRGcpY6+dceFHt64ovxTx9p+C3SASalDoWkhkQdc8RhRyWoxw/FQMApghLje8jUdOhsy 7JyRxhCeeFLveMhVsRN/W5XH82hXaHPaG4Tl7pS4/XHWIhfAHIBGn9qfHjwVnN9yoaw6 sFUw== 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=kkCaRGT/DqHt9VyYMFli6tOeHl5GwC2GZC60AJ5Y49c=; b=oDR25Z3vlWvFJnNT15ZfWyA2jHXiZ3zK16FhagPk65BPfbZB7IjLX5/q/3PAMAxPaC 5cfned/Scd3PFqD1Wec9Xy820zpL/gNzPo6ik9S/CsM2biM50F2RjoHNcQ4A4PiCCd63 moJ1b7de6wPMAVOuuJX4XhdpsxNwpRYagq3FCGJI4va6Ahvx/1minjn1THP2o3rZpImV bRAKpmVRct6GmQw4APvDnkAC2WB6W2aLTUWS0swaUYEqmMK69U+j+k5/iTUgufXpz2N8 rgVhlca6Lb5eV0EBbxiYF9L/LgUa2PBSATd55fApOngzwj1rj88fZjtd1iO4B2+t0mRA bHVw== 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 o1si402147plk.831.2017.11.15.23.43.28; Wed, 15 Nov 2017 23:43:40 -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 S1759260AbdKPHgd (ORCPT + 91 others); Thu, 16 Nov 2017 02:36:33 -0500 Received: from thoth.sbs.de ([192.35.17.2]:36706 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759042AbdKPHgH (ORCPT ); Thu, 16 Nov 2017 02:36:07 -0500 Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vAG7QrnF000839 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2017 08:26:53 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.32.158]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id vAG7QrlP029336; Thu, 16 Nov 2017 08:26:53 +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 00/10] x86: Add support for running as secondary Jailhouse guest Date: Thu, 16 Nov 2017 08:26:42 +0100 Message-Id: X-Mailer: git-send-email 2.12.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series paves the way to run Linux in so-called non-root cells (guest partitions) of the Jailhouse hypervisor. Jailhouse [1] was started 4 years ago as an open-source (GPL) leight- weight hypervisor that statically partitions SMP systems. It's unique in that it uses one Linux instance, the root cell, as boot loader and management console. Jailhouse targets use cases for hard real-time and safety-critical systems that KVM cannot cater due to its inherent complexity. Jaihouse can run bare-metal, free and closed-source RTOSes as secondary guests and, with this series, also x86 Linux instances. While ARM and ARM64 non-root Linux guests are feasible without extra patches, thanks to the high configurability via device trees, x86 requires special platform support, mostly to step away from non-existing resources in a non-root Jailhouse cell. This series ensures that Linux can boot in a non-root cell, including SMP cells, has working timekeeping and can use the platform UARTs and PCI devices as assigned to it. In follow-up series, we will propose optimizations and enhancements for the PCI support, a simplistic debug console, and some improvement for Linux guests on ARM. What is not yet in upstream-ready state is a driver for inter-cell communication. The current implementation of virtual peer-to-peer network [2] uses an enhanced version of the QEMU ivshmem shared memory device. However we still need to finish the evaluation of virtio / vhost-pci options prior to settling over the final interface. This patch series is also available at git://git.kiszka.org/linux.git d0036688b2da Jan [1] http://jailhouse-project.org [2] http://git.kiszka.org/?p=linux.git;a=shortlog;h=refs/heads/queues/jailhouse Jan Kiszka (10): x86/apic: Install an empty physflat_init_apic_ldr x86: jailhouse: Add infrastructure for running in non-root cell x86: jailhouse: Enable APIC and SMP support x86: jailhouse: Enable PMTIMER x86: jailhouse: Set up timekeeping x86: jailhouse: Avoid access of unsupported platform resources x86: jailhouse: Silence ACPI warning x86: jailhouse: Halt instead of failing to restart x86: jailhouse: Wire up IOAPIC for legacy UART ports x86: jailhouse: Initialize PCI support arch/x86/Kconfig | 13 ++ arch/x86/include/asm/hypervisor.h | 1 + arch/x86/include/asm/jailhouse_para.h | 27 ++++ arch/x86/include/asm/tsc.h | 3 + arch/x86/kernel/Makefile | 2 + arch/x86/kernel/apic/apic_flat_64.c | 12 +- arch/x86/kernel/cpu/hypervisor.c | 4 + arch/x86/kernel/jailhouse.c | 252 ++++++++++++++++++++++++++++++++++ arch/x86/kernel/smpboot.c | 7 +- arch/x86/kernel/tsc.c | 14 +- drivers/acpi/Kconfig | 32 ++--- 11 files changed, 339 insertions(+), 28 deletions(-) create mode 100644 arch/x86/include/asm/jailhouse_para.h create mode 100644 arch/x86/kernel/jailhouse.c -- 2.12.3 From 1584566414501008875@xxx Mon Nov 20 06:44:52 +0000 2017 X-GM-THRID: 1584391330074124598 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread