From: Christian Borntraeger Subject: Re: [PATCH] kvm-userspace: fix memslot assignment Date: Mon, 28 Jul 2008 18:55:04 +0200 Message-ID: <200807281855.04681.borntraeger@de.ibm.com> References: <200807251738.29171.borntraeger@de.ibm.com> <488C2F52.4030209@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: kvm , Carsten Otte , Olaf Schnapper , Christian Ehrhardt To: Avi Kivity Return-path: Received: from mtagate7.uk.ibm.com ([195.212.29.140]:31051 "EHLO mtagate7.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754208AbYG1Qzy (ORCPT ); Mon, 28 Jul 2008 12:55:54 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate7.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m6SGt7rk446772 for ; Mon, 28 Jul 2008 16:55:07 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 m6SGt73Z4112542 for ; Mon, 28 Jul 2008 17:55:07 +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 m6SGt6uw019776 for ; Mon, 28 Jul 2008 17:55:07 +0100 In-Reply-To: <488C2F52.4030209@qumranet.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Sonntag, 27. Juli 2008 schrieb Avi Kivity: > This is really a no-op, since s390 will nack a KVM_CAP_SET_TSS_ADDR > query. Of course, the change is an improvement. > > > @@ -92,8 +92,11 @@ int get_free_slot(kvm_context_t kvm) > > if (tss_ext > 0) > > i = 0; > > else > > +#if !defined(__s390__) > > i = 1; > > - > > +#else > > + i = 0; > > +#endif > > > > ppc and ia64 also don't care about TSS_ADDR. Care to make this depend > on x86, rather than on s390? Can do. Should ppc and ia64 start with i=1 or i=0, do they need a reserved slot? Christian