From: Christian Borntraeger Subject: Re: s390 kvm and slot 0 Date: Wed, 15 Oct 2008 08:58:23 +0200 Message-ID: <200810150858.23783.borntraeger@de.ibm.com> References: <20081014163453.GG17842@poweredge.glommer> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, cotte@de.ibm.com To: Glauber Costa Return-path: Received: from mtagate4.uk.ibm.com ([195.212.29.137]:52966 "EHLO mtagate4.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbYJOG60 (ORCPT ); Wed, 15 Oct 2008 02:58:26 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate4.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m9F6wP9e147634 for ; Wed, 15 Oct 2008 06:58:25 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9F6wPMO4284604 for ; Wed, 15 Oct 2008 07:58:25 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9F6wO24018018 for ; Wed, 15 Oct 2008 07:58:24 +0100 In-Reply-To: <20081014163453.GG17842@poweredge.glommer> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Dienstag, 14. Oktober 2008 schrieb Glauber Costa: > Hi Carsten, > > libkvm/libkvm.c, in function get_free_slot(), we see: > > #if defined(KVM_CAP_SET_TSS_ADDR) && !defined(__s390__) > tss_ext = ioctl(kvm->fd, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR); > #else > tss_ext = 0; > #endif > > Effectively, because of that (and the check that follows), s390 will not > use slot 0. Does it really matters for s390, or is it just a bug? > It is a bug. See http://marc.info/?l=kvm&m=121751623912841&w=2 for a patch proposal. It was not merged because Avi went on vacation and I did not track this patch because we have not finished our kvm-userspace port anyway. This patch is still in our repository and we will send a fix whenever we have our userspace port ready. Christian