From patchwork Fri Aug 9 14:30:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 2841964 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C436A9F271 for ; Fri, 9 Aug 2013 14:30:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9EA88202BA for ; Fri, 9 Aug 2013 14:30:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BA49202B7 for ; Fri, 9 Aug 2013 14:30:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7niO-0004g3-1c; Fri, 09 Aug 2013 14:30:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7niL-0007K0-U7; Fri, 09 Aug 2013 14:30:49 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7niJ-0007J9-CG for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2013 14:30:47 +0000 Received: by mail-pb0-f51.google.com with SMTP id jt11so4666945pbb.10 for ; Fri, 09 Aug 2013 07:30:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xEsybTndmj//ZXezCKc8SjvIAQ7MquyQ7mPH5OjoBYk=; b=bhAL3Hu7mQWK1vyOlfpA1lmoJDPA26zJxodJ47ngJjEsr7a9O6SjPcobCVTmOT44aS cfn58hPQwZbjde6nktV7iyYtFT5iQJiKPlT5JpPbEpxbUm/9U+R2S12wPmYgTtXjHZ7N M91l7DWnekPZdOejSvuqrpeKm0+Pu3Z6O+ozIxt9P5/PY/dYyHrr1CyIh7FDMCXf95wY HkblKVwNZMM9TgBeXVN4s7L/Irfl3nCd6L2EFFCFaDadt2OT0y+YDamWIr9flEi3WpLK jr7T5jnuN9uvwAM6DG05Gb7c8K8vHlDEngHC1xWdwnKWDBePJJm/tCNudgf4FJBWc3Co HscA== X-Gm-Message-State: ALoCoQk4Rt17PQ+2yPTkvgqKbVxDO4J+KruREF7pzFbAUT35wDrz1SbL7S0/Xomdst+SVJgwzmZg X-Received: by 10.68.13.132 with SMTP id h4mr11670565pbc.99.1376058623671; Fri, 09 Aug 2013 07:30:23 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id x8sm20420682pbb.39.2013.08.09.07.30.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 07:30:22 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu Subject: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines Date: Fri, 9 Aug 2013 07:30:13 -0700 Message-Id: <1376058613-26400-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376021239-10532-1-git-send-email-christoffer.dall@linaro.org> References: <1376021239-10532-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130809_103047_562233_FE71F009 X-CRM114-Status: GOOD ( 10.50 ) X-Spam-Score: -0.1 (/) Cc: Christoffer Dall , linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, SUSPICIOUS_RECIPS, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The KVM_HPAGE_DEFINES are a little artificial on ARM, since the huge page size is statically defined at compile time and there is only a single huge page size. Now when the main kvm code relying on these defines has been moved to the x86 specific part of the world, we can get rid of these. Signed-off-by: Christoffer Dall --- [Resending this because the KVM list filter caught the subject of the previous message due to the letter X] arch/arm/include/asm/kvm_host.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h index 7d22517..e45a74b 100644 --- a/arch/arm/include/asm/kvm_host.h +++ b/arch/arm/include/asm/kvm_host.h @@ -38,11 +38,6 @@ #define KVM_VCPU_MAX_FEATURES 1 -/* We don't currently support large pages. */ -#define KVM_HPAGE_GFN_SHIFT(x) 0 -#define KVM_NR_PAGE_SIZES 1 -#define KVM_PAGES_PER_HPAGE(x) (1UL<<31) - #include struct kvm_vcpu;