From patchwork Fri Jun 7 23:03:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 2691201 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 23AB83FC23 for ; Fri, 7 Jun 2013 23:08:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757881Ab3FGXGs (ORCPT ); Fri, 7 Jun 2013 19:06:48 -0400 Received: from mail-ie0-f177.google.com ([209.85.223.177]:44223 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757690Ab3FGXDy (ORCPT ); Fri, 7 Jun 2013 19:03:54 -0400 Received: by mail-ie0-f177.google.com with SMTP id u16so12057576iet.22 for ; Fri, 07 Jun 2013 16:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=FesZui2Z1aJ6HjRckKuehFdG5wSHsW02t2Zo5UHJBJc=; b=FB8vyCvoCndCiU+mr4+yfmxfqJ8imE/3BMjXm2bwB1EhbiHMzbFEqJ3b9RPNEG0H1K GoIJoCZ6hBFfEfJ5YRRffirXzb6mhx5X5IYehwJObVpmT5NyJCPpy9AK2eAYlX7xczAq kKtLqN9f23cEKqvZ6ouRkfYPvgg7KLP2lRUCi6GXhJg8CwCx7c+QE5I09vz2UcoX9Scd q36DcMzgpxWPbQJshLfqV1mRIcfy2DCH2m03fGCnCWkKDospCBNIRk819zCOVfvcd3Rx ITClrU/RQkCnxmvvzAMpa9pjIwOMYZp+THlxVfqKL3/PnNQGWXFUaewTD/F/veCNxxGq 9wWg== X-Received: by 10.50.70.99 with SMTP id l3mr381148igu.91.1370646234213; Fri, 07 Jun 2013 16:03:54 -0700 (PDT) Received: from dl.caveonetworks.com (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id z6sm153992igw.8.2013.06.07.16.03.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 07 Jun 2013 16:03:53 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id r57N3pQv006711; Fri, 7 Jun 2013 16:03:51 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id r57N3p79006710; Fri, 7 Jun 2013 16:03:51 -0700 From: David Daney To: linux-mips@linux-mips.org, ralf@linux-mips.org, kvm@vger.kernel.org, Sanjay Lal Cc: linux-kernel@vger.kernel.org, David Daney Subject: [PATCH 25/31] mips/kvm: Add some asm-offsets constants used by MIPSVZ. Date: Fri, 7 Jun 2013 16:03:29 -0700 Message-Id: <1370646215-6543-26-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1370646215-6543-1-git-send-email-ddaney.cavm@gmail.com> References: <1370646215-6543-1-git-send-email-ddaney.cavm@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: David Daney Signed-off-by: David Daney --- arch/mips/kernel/asm-offsets.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index 37fd9e2..db09376 100644 --- a/arch/mips/kernel/asm-offsets.c +++ b/arch/mips/kernel/asm-offsets.c @@ -19,6 +19,7 @@ #include #include +#include void output_ptreg_defines(void) { @@ -345,6 +346,8 @@ void output_pbe_defines(void) void output_kvm_defines(void) { COMMENT(" KVM/MIPS Specfic offsets. "); + OFFSET(KVM_ARCH_IMPL, kvm, arch.impl); + OFFSET(KVM_VCPU_KVM, kvm_vcpu, kvm); DEFINE(VCPU_ARCH_SIZE, sizeof(struct kvm_vcpu_arch)); OFFSET(VCPU_RUN, kvm_vcpu, run); OFFSET(VCPU_HOST_ARCH, kvm_vcpu, arch); @@ -411,5 +414,9 @@ void output_kvm_defines(void) OFFSET(COP0_TLB_HI, mips_coproc, reg[MIPS_CP0_TLB_HI][0]); OFFSET(COP0_STATUS, mips_coproc, reg[MIPS_CP0_STATUS][0]); BLANK(); + + COMMENT(" Linux struct kvm mipsvz offsets. "); + OFFSET(KVM_MIPS_VZ_PGD, kvm_mips_vz, pgd); + BLANK(); } #endif