From: Christian Borntraeger Subject: Re: [PATCH] libkvm-s390 Date: Mon, 14 Jul 2008 13:33:56 +0200 Message-ID: <200807141333.56783.borntraeger@de.ibm.com> References: <1215797386.6014.4.camel@cotte.boeblingen.de.ibm.com> <4879BCFD.9030806@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 mtagate3.uk.ibm.com ([195.212.29.136]:11500 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752648AbYGNLeC (ORCPT ); Mon, 14 Jul 2008 07:34:02 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate3.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m6EBXwOT151116 for ; Mon, 14 Jul 2008 11:33:59 GMT Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m6EBXwYN2441260 for ; Mon, 14 Jul 2008 12:33:58 +0100 Received: from d06av03.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m6EBXwLQ028600 for ; Mon, 14 Jul 2008 12:33:58 +0100 In-Reply-To: <4879BCFD.9030806@qumranet.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: That patch was Carstens last job before he left into vacation. I promised to look after it, so I will sent an updated patch soon. > > +/* > > + * This header is for functions & variables that will ONLY be > > + * used inside libkvm for s390x. > > + * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE > > + * WITHIN LIBKVM. > > + * > > > > It isn't a header. Will fix > > > + * derived from libkvm-powerpc.c > > + * > > > > So it the comment above. So much for our review. I guess libkvm-powerpc.c will be fixed by the powerpc guys? > > +#ifndef __s390x__ > > #define KVM_MAX_NUM_MEM_REGIONS 8u > > +#define MAX_VCPUS 64 > > > > 16 > > > +#else > > +#define KVM_MAX_NUM_MEM_REGIONS 1u > > #define MAX_VCPUS 16 > > > > 64 Yes, indeed. > > +#define LIBKVM_S390_ORIGIN (0UL) > > Thought you got rid of that? Sort of. We have the kernel code ready to move away the guest from address 0. To achieve that goal we use the offset and limit field in the control block. Thing is, on older models the offset and limit must be < 128GB. that means we still cannot use randomly allocated memory. LIBKVM_S390_ORIGIN=1M,2M or 16M would be perfectly fine, 2TB (typical malloc space) is not. Furthermore, this change is still in kvm.git, but not in Linus git. Therefore, we would like to keep the guest at 0 and fix that at a later time, ok? Christian