Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp473675ybb; Wed, 8 Apr 2020 03:48:02 -0700 (PDT) X-Google-Smtp-Source: APiQypIi3hXiEY3GSb7C4z584kTXVaQG0AyOhopWPdxBFiHvcNkftEKCv78gF9BaIhzvmQ8cBjRo X-Received: by 2002:a9d:69d8:: with SMTP id v24mr5139696oto.148.1586342882612; Wed, 08 Apr 2020 03:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586342882; cv=none; d=google.com; s=arc-20160816; b=kLwpQ6aBFLjeM0tR+pjvqtgGMf05ux4PNl9RmJfLiqBrfZQxb5xcRZLavOQ6GZHuht uwOHwkXrratQOc5XMF+xvDAHCvdiaaFJsX4P0zCiyjXgQ/19cQsX0tuQ9BR4MsR/vaLf DBGsT+OBtYAmKzPI/iFreETSk1FGAZgCTbynIFEEfv9AtZ2KIFmMzZTUlqfwVg5MnRz+ eS9Da3e8j+WQYY/yTfNjbIsURB829XrqtugDmuc60qC7WYcjsOowTaJXSYB7/jGEWal8 c98+R/4IehIVe0nvdzP0DoF59l4a9AZGxX6HNLhLhsR5mggUnXYPr5DnFJopwTUYTZFM eEpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QCaarLcf3FmBz3T1zTJGGKBbb2hs2IaO65zh97LsX+k=; b=LYGzE3yynp3xK7egS17OXtupRIQENSCStMuaaka3JTrXfjPhLruM8lGcLKBi0c9jY4 oZM17NtWGQlvuwo7dPOrR1FCbz4QF9BNRieszIuaM+NYaEIQC8VQT21WnkeiEBYRbh3o PEMs+5v4udUfNg1UWZUt6uWj0TR5gu/tVhrcj/hJeiy7HUotL1Qj33bnlDWMP2+jGa8n fNr4YZIidGIu+7V4th7tB/1JWSish9gFHqUZcXn2mLGDH2/TB6SfDv2/eAWLxDv0X2G5 2FK72F0YhVK9oq7M/4jh0t5w6UT9tqwSZa2EztpqRBudAgGa7SVKkSh9nxXFahQVTOe4 Jc8A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si2574528otg.196.2020.04.08.03.47.47; Wed, 08 Apr 2020 03:48:02 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728298AbgDHKqv (ORCPT + 99 others); Wed, 8 Apr 2020 06:46:51 -0400 Received: from gecko.sbs.de ([194.138.37.40]:51379 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgDHKqv (ORCPT ); Wed, 8 Apr 2020 06:46:51 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 038AjcX2030694 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Apr 2020 12:45:38 +0200 Received: from [139.22.119.141] ([139.22.119.141]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 038AjUJ4023951; Wed, 8 Apr 2020 12:45:30 +0200 Subject: Re: [PATCH 4/4] x86,module: Detect CRn and DRn manipulation To: Paolo Bonzini , Steven Rostedt , Peter Zijlstra Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, hch@infradead.org, sean.j.christopherson@intel.com, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, kenny@panix.com, jeyu@kernel.org, rasmus.villemoes@prevas.dk, fenghua.yu@intel.com, xiaoyao.li@intel.com, nadav.amit@gmail.com, thellstrom@vmware.com, tony.luck@intel.com, gregkh@linuxfoundation.org, jannh@google.com, keescook@chromium.org, David.Laight@aculab.com, dcovelli@vmware.com, mhiramat@kernel.org, Wolfgang Mauerer References: <20200407110236.930134290@infradead.org> <20200407111007.429362016@infradead.org> <20200407174824.5e97a597@gandalf.local.home> <137fe245-69f3-080e-5f2b-207cd218f199@siemens.com> <0ed2739b-6961-c476-be2d-020e855796dc@redhat.com> <2aed2b96-c726-1357-44bb-649ec0a809ad@siemens.com> <2fe38887-adba-5b4c-8514-5f0925470623@redhat.com> From: Jan Kiszka Message-ID: Date: Wed, 8 Apr 2020 12:45:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <2fe38887-adba-5b4c-8514-5f0925470623@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.04.20 11:04, Paolo Bonzini wrote: > On 08/04/20 10:58, Jan Kiszka wrote: >>> Why not contribute the Jailhouse loader into Linux? >> >> Definitely planned. But right now it would add the burden of managing >> the interface between loader and hypervisor carefully. Currently it is >> internal to Jailhouse and maintained in lock-step, without any backward >> compatibility. > > How often does that change? Not often, but right now we are at a critical point, starting to explore booting Jailhouse before Linux [1]. That may actually help to settle the interface and move things forward. Another to-do is overcoming the need for having to map the hypervisor at a fixed location into the kernel address space. Not needed on arm64, still required on 32-bit ARM (well...) and x86 (more important). I would dislike pushing such legacy to upstream. Jan [1] https://www.mail-archive.com/jailhouse-dev@googlegroups.com/msg08389.html -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux