Received: by 10.223.164.202 with SMTP id h10csp1295613wrb; Mon, 27 Nov 2017 00:14:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMZf1KGPKXJU3ffMXli0NnwPdVxrnBlGBZ46LkSw1ywlTEw7DgtmXHX/yhW5m4JuOompzYkn X-Received: by 10.84.130.34 with SMTP id 31mr11599705plc.67.1511770450079; Mon, 27 Nov 2017 00:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511770450; cv=none; d=google.com; s=arc-20160816; b=ISlqFVZ7zOvn1cZ68slq9qDH1cwHHKTzILBFTAEnu0pyp6demHgGusafukwvQEniWq I3rAgBxd/laKjI93N/flTaCFJO9n1Eu9m7HHXDDiBblx0S8Y2+xWTqnXz0DbJO+InHTE E+KgCHR+DMhQVHQkvWkKoJrzJ6iHKJLXyVb+Jzegiq5IO9zU13/jIjm13evrToyhMVUi 7MAleGElSinNp8C2YLCh8gliwekRRsV758Qz7jloCeEebPvIkHfv32qfgrsryQwSLsCy TUgZYQ3EllBQcTR+3Pspjcs9s1nUHI3cM49jKwDblh14U+wfp2r+pO3vP8xrsKCcogDA g6gQ== 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=+mFz6IfjK1mgxSbPC2CJ6KR30/FXmfrDIDlThlFT1Q8=; b=HrGxord8v1WZ0u+amoqAFp0x3woLfO/zFYGeWai73NZ9ZZGIF/sLvN0NyjEp8WiwlY mRzZCbfRJ2DhOqsil7/5FovXX1Rmi9hB158kKNo8sDd01So8r7klraBzO2HobkXGFBPA e7Y7tWoqgA+hiPgPmSBHV9+I1IJ96LTcj/b6WZA6Nrel4t9CcVTCUsfdz21QnULb+Z1z guXkH/h01QXZGGc2nhCc8cHGGhwx+H4F0qL9zR/wY5TJLak4M+wp1fi6Nu/MmP7Fdlsu TjzgQBVgLR7UvofB/xZieIX+FxatZtsJoiqj2Ypz/l5CVjwNqYf6JwB6M0uCsQ+ED+fB NrUg== 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 61si11413826plz.327.2017.11.27.00.13.58; Mon, 27 Nov 2017 00:14:10 -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 S1751794AbdK0IM6 (ORCPT + 78 others); Mon, 27 Nov 2017 03:12:58 -0500 Received: from goliath.siemens.de ([192.35.17.28]:58579 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbdK0IMK (ORCPT ); Mon, 27 Nov 2017 03:12:10 -0500 Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vAR8C1pO014139 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Nov 2017 09:12:01 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.32.153]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id vAR8BtEc021016; Mon, 27 Nov 2017 09:12:01 +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 v2 10/12] x86/jailhouse: Halt instead of failing to restart Date: Mon, 27 Nov 2017 09:11: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 Jailhouse provides no guest-initiated restart. So, do not even try to. 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 36feb0e4b4fe..c8ee638b6bce 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -12,10 +12,12 @@ #include #include +#include #include #include #include #include +#include #include static __initdata struct jailhouse_setup_data setup_data; @@ -79,6 +81,12 @@ static void __init jailhouse_get_smp_config(unsigned int early) smp_found_config = 1; } +static void jailhouse_no_restart(void) +{ + pr_notice("Jailhouse: Restart not supported, halting\n"); + machine_halt(); +} + static void __init jailhouse_init_platform(void) { u64 pa_data = boot_params.hdr.setup_data; @@ -98,6 +106,8 @@ static void __init jailhouse_init_platform(void) legacy_pic = &null_legacy_pic; + machine_ops.emergency_restart = jailhouse_no_restart; + while (pa_data) { mapping = early_memremap(pa_data, sizeof(header)); memcpy(&header, mapping, sizeof(header)); -- 2.12.3 From 1585224807652611285@xxx Mon Nov 27 13:09:44 +0000 2017 X-GM-THRID: 1585224807652611285 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread