Received: by 10.223.164.202 with SMTP id h10csp1557116wrb; Wed, 15 Nov 2017 23:42:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMaDs3ljRerKPtbRTcN416VHLASlLAA3vTQ2y2Ls8W26cPOlxEzGxqNWsftDvbbJMb8Xb2ar X-Received: by 10.99.120.2 with SMTP id t2mr824648pgc.333.1510818122786; Wed, 15 Nov 2017 23:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510818122; cv=none; d=google.com; s=arc-20160816; b=qM5uamrsmJzM+E+5bJ7XijidGPAtmFAV/6xZsLBOELBW223tkTlbf4mpNuLsC9IzHF gGZXcG0nn2jtCe90qfDnOdUdHZl1oNrO5QhSX4xlUns9kQmgw6S3OGO/1cRAXNxKe4ef c3ccQlyk0xuyCZ7CnpOWv3wTcQP6NoMghsT5qCavmyENgspF+JkYjjfZcKPPidbJxAxE sfblSmg+3Vft7dI1LaGAJrswoI7hwzS02vMyIbYfnJKYUJKnTV2etdmf6mWGLUc8YcsE YPEAt3N1W0RMYa94Zt58Du8zYybxNGATutUMp+wwGOEPAbXrh/lVJ4QQvnabJUzM0w2Z XVjg== 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=EfHs4vPWNJ/3MmQbyghuoYpYiFZ0dv3YR5e7AZNNeb8=; b=m5hwIyyJOgO/JxjZ+E3A1zcAws6W+bcfOXKt1jCCsb4t9fFBmkbtXgwcCw/CaoXef/ ahev86dIVZK6AOdUQKhL358nduf8UJaivfFz2k4Rpr6yPpz+UXE6qrqUoakeaUwfk9WD Ny5VEhojuApx6xShe0Q7wIUix+6yznpkJND4FepMGKo/vCDPOZ1D05p+YR5albODVMQu tmyH3+kuz050UBYMYQfh+bDMMO+2+Ecs9NiDkIF2/vFCR6PGDD6jcxA93h3pqZ1Mdvg2 +kBEMwYq3rtZu5CTO5nW0dHZl17XFISq6A31DQ/+XoZ618WmQtlKxc8tSS0TUO5iNzqr GSlA== 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 f6si420321pgq.406.2017.11.15.23.41.50; Wed, 15 Nov 2017 23:42:02 -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 S1750867AbdKPHgC (ORCPT + 91 others); Thu, 16 Nov 2017 02:36:02 -0500 Received: from thoth.sbs.de ([192.35.17.2]:36659 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662AbdKPHf5 (ORCPT ); Thu, 16 Nov 2017 02:35:57 -0500 X-Greylist: delayed 536 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Nov 2017 02:35:57 EST 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 vAG7QuGF001008 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Nov 2017 08:26:56 +0100 Received: from md1f2u6c.ww002.siemens.net ([167.87.32.158]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id vAG7QrlX029336; 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 08/10] x86: jailhouse: Halt instead of failing to restart Date: Thu, 16 Nov 2017 08:26:50 +0100 Message-Id: <30bc2e239c4a6e9d69059f86521122c8a1c4882f.1510817211.git.jan.kiszka@siemens.com> 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 c1ed7fcd7bfa..0bcca175c35e 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 #define SETUP_JAILHOUSE 0x53484c4a /* "JLHS" */ @@ -133,6 +135,12 @@ static unsigned long jailhouse_calibrate_tsc(void) return 0; } +static void jailhouse_no_restart(void) +{ + pr_notice("Jailhouse: Restart not supported, halting\n"); + machine_halt(); +} + static unsigned int x2apic_get_apic_id(unsigned long id) { return id; @@ -153,6 +161,8 @@ static void __init jailhouse_init_platform(void) x86_platform.calibrate_cpu = jailhouse_calibrate_cpu; x86_platform.calibrate_tsc = jailhouse_calibrate_tsc; + machine_ops.emergency_restart = jailhouse_no_restart; + data = early_memremap(pa_data, sizeof(*data)); if (data->header.type != SETUP_JAILHOUSE || -- 2.12.3 From 1584194694096903505@xxx Thu Nov 16 04:16:31 +0000 2017 X-GM-THRID: 1584194694096903505 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread