From: Christian Borntraeger Subject: Re: [PATCH] libkvm-s390 Date: Mon, 14 Jul 2008 14:25:33 +0200 Message-ID: <200807141425.33554.borntraeger@de.ibm.com> References: <1215797386.6014.4.camel@cotte.boeblingen.de.ibm.com> <200807141333.56783.borntraeger@de.ibm.com> <487B3C09.9030406@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Carsten Otte , kvm , Olaf Schnapper , Hollis Blanchard To: Avi Kivity Return-path: Received: from mtagate6.de.ibm.com ([195.212.29.155]:46078 "EHLO mtagate6.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977AbYGNM0R (ORCPT ); Mon, 14 Jul 2008 08:26:17 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id m6ECPaaN368590 for ; Mon, 14 Jul 2008 12:25:36 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m6ECPaIF3322012 for ; Mon, 14 Jul 2008 14:25:36 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m6ECPZPj025118 for ; Mon, 14 Jul 2008 14:25:35 +0200 In-Reply-To: <487B3C09.9030406@qumranet.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Montag, 14. Juli 2008 schrieb Avi Kivity: > Certainly. I suggest exposing this via a KVM_CAP_blah and adapting at > runtime. > > Placing the guest at offset zero is dangerous, since all a guest has to > do is place a function at guest physical address zero and wait for a > kernel bug that calls a null function pointer (at least, it would behave > like that on x86, provided no-execute was disabled; it may well be that > s390 has additional protection). Since we have separate address space for kernel and userspace this should be fine for s390. But I totally agree that offset != 0 is better for quality and testing. During KVM Forum time frame I found some null pointer accesses in our userspace code when I changed offset to 1MB. In the long term we definitely want to move our guest. Christian