From patchwork Fri Jun 5 10:28:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ehrhardt@linux.vnet.ibm.com X-Patchwork-Id: 28185 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n55ASBbl004227 for ; Fri, 5 Jun 2009 10:28:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbZFEK2H (ORCPT ); Fri, 5 Jun 2009 06:28:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752663AbZFEK2G (ORCPT ); Fri, 5 Jun 2009 06:28:06 -0400 Received: from mtagate6.de.ibm.com ([195.212.29.155]:32867 "EHLO mtagate6.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752662AbZFEK2F (ORCPT ); Fri, 5 Jun 2009 06:28:05 -0400 Received: from d12nrmr1507.megacenter.de.ibm.com (d12nrmr1507.megacenter.de.ibm.com [9.149.167.1]) by mtagate6.de.ibm.com (8.14.3/8.13.8) with ESMTP id n55AS6eG743974 for ; Fri, 5 Jun 2009 10:28:06 GMT Received: from d12av01.megacenter.de.ibm.com (d12av01.megacenter.de.ibm.com [9.149.165.212]) by d12nrmr1507.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n55AS6dS1490980 for ; Fri, 5 Jun 2009 12:28:06 +0200 Received: from d12av01.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n55AS5Dx017534 for ; Fri, 5 Jun 2009 12:28:06 +0200 Received: from localhost.localdomain (dyn-9-152-212-64.boeblingen.de.ibm.com [9.152.212.64]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n55AS52R017527; Fri, 5 Jun 2009 12:28:05 +0200 From: ehrhardt@linux.vnet.ibm.com To: kvm@vger.kernel.org, avi@redhat.com Cc: ehrhardt@linux.vnet.ibm.com, borntraeger@de.ibm.com, cotte@de.ibm.com, heiko.carstens@de.ibm.com, schwidefsky@de.ibm.com Subject: [PATCH] kvm-s390: fix interrupt field widths Date: Fri, 5 Jun 2009 12:28:05 +0200 Message-Id: <1244197685-25245-1-git-send-email-ehrhardt@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.0.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Christian Ehrhardt This code waants the same number as KVM_MAX_VCPUS but uses a hard coded 64 instead of the constant. This patch changes the field width definitions of the s390 specific interrupt handling to use the constant. Signed-off-by: Christian Ehrhardt --- [diffstat] kvm_host.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) [diff] -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: kvm/arch/s390/include/asm/kvm_host.h =================================================================== --- kvm.orig/arch/s390/include/asm/kvm_host.h +++ kvm/arch/s390/include/asm/kvm_host.h @@ -203,8 +203,9 @@ struct kvm_s390_float_interrupt { struct list_head list; atomic_t active; int next_rr_cpu; - unsigned long idle_mask [(64 + sizeof(long) - 1) / sizeof(long)]; - struct kvm_s390_local_interrupt *local_int[64]; + unsigned long idle_mask[(KVM_MAX_VCPUS + sizeof(long) - 1) + / sizeof(long)]; + struct kvm_s390_local_interrupt *local_int[KVM_MAX_VCPUS]; };