From patchwork Fri Aug 9 04:07:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 18906 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D50A725D87 for ; Fri, 9 Aug 2013 04:07:32 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id n1sf4529697qcx.11 for ; Thu, 08 Aug 2013 21:07:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=ANhzKBYvKxNvig6jkMSQbICG3T5alZ2/9zo9ZCRRo1w=; b=X4qVWwFLTImuo8+iEvntKGUb55Ag8jOSNx8rGAJrolVjUc/dDYSs0oXhoYFIXRiU4o luiAvKBT8rEEgOEz9GGmNEFZdDHx3eDp8zrlKCbZRTyqNhDLyYlADYANlMgKbuoqlC8u GpXOjvpoDx4/qfqb+DUAuhUfJk/dOyCAlYBtOMsQrFmkVVgXH/cJF3y8x/5DapDV34Lj g6hUGqQkEvarRfVWYIc0uvlk/Sfr+vkuxtXr57jS1FX8h0nEjDWRfKo0ME3qClCi63VF EMeVQNkjQhIiAvtYEqjvNjDFq77RKJ/mKkJ3f+fiv8R7TEgy5GmzvhM7KwHQQ73ORPQh tFnQ== X-Received: by 10.236.38.106 with SMTP id z70mr4567907yha.29.1376021252586; Thu, 08 Aug 2013 21:07:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.109.35 with SMTP id hp3ls1281183qeb.76.gmail; Thu, 08 Aug 2013 21:07:32 -0700 (PDT) X-Received: by 10.52.116.163 with SMTP id jx3mr4162104vdb.27.1376021252466; Thu, 08 Aug 2013 21:07:32 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id y4si4099645vcn.134.2013.08.08.21.07.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 21:07:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id pb11so3695534veb.11 for ; Thu, 08 Aug 2013 21:07:32 -0700 (PDT) X-Gm-Message-State: ALoCoQkLUGEta99luq6SH3hWMI0CZ9EgvXoao/jY4QWDNxKjhGOAe5sQfUHoGdXyUZFMPNAyP7Mu X-Received: by 10.52.109.69 with SMTP id hq5mr4089501vdb.85.1376021252384; Thu, 08 Aug 2013 21:07:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp51761vcz; Thu, 8 Aug 2013 21:07:31 -0700 (PDT) X-Received: by 10.68.254.138 with SMTP id ai10mr9374767pbd.151.1376021251418; Thu, 08 Aug 2013 21:07:31 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id tl4si11843749pac.224.2013.08.08.21.07.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 21:07:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id uo5so4263217pbc.37 for ; Thu, 08 Aug 2013 21:07:31 -0700 (PDT) X-Received: by 10.66.178.143 with SMTP id cy15mr9483898pac.105.1376021251038; Thu, 08 Aug 2013 21:07:31 -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 mr3sm17525229pbb.27.2013.08.08.21.07.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 21:07:30 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, Christoffer Dall Subject: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_XXX defines Date: Thu, 8 Aug 2013 21:07:18 -0700 Message-Id: <1376021239-10532-3-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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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;