From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 22 May 2013 20:44:38 +0200 (CEST) Received: from mail-da0-f42.google.com ([209.85.210.42]:62511 "EHLO mail-da0-f42.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6835056Ab3EVSoNXXeRV (ORCPT ); Wed, 22 May 2013 20:44:13 +0200 Received: by mail-da0-f42.google.com with SMTP id r6so1271593dad.29 for ; Wed, 22 May 2013 11:44:06 -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=0R16bW0lbSIsswX9ItZDifatSI+Hxzx7fnGKYx4ks9I=; b=hStigbX/HdVWcBmPqPm6pL72Mn03d3XO6+zHH750ZOiOscUY6xW0y8mpZgYrTwg8+f HJIppzgHvo7+A6UQL7hHDy3r8N3kCIq+GOuvfLSDpiWn83J9VEXL0O76lH1OACOAEpwK FyFDKQWSyvuOQzGfBYBMfMg8l0QfCkTF/c7rZc5Pyo6Uh9CagkhkMlLEoXkTzPp54JSZ nMBgPTp7Vh09koqY3G3Ta/1Z9lLKEIM8tXPnpz2vMnmp4DXDHTCSqLG2qCos6164OkMC xGlZWMErIssYeaFDtAeMnGVNjhAibopkAq/D7AVzzUchkgHvvz7So+yoRtepNLTMQprL 10fA== X-Received: by 10.66.232.129 with SMTP id to1mr9550581pac.144.1369248246625; Wed, 22 May 2013 11:44:06 -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 at1sm8256001pbc.10.2013.05.22.11.44.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 22 May 2013 11:44:05 -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 r4MIi4hs027281; Wed, 22 May 2013 11:44:04 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id r4MIi3Jx027280; Wed, 22 May 2013 11:44:03 -0700 From: David Daney To: linux-mips@linux-mips.org, ralf@linux-mips.org, kvm@vger.kernel.org, Sanjay Lal , Gleb Natapov Cc: linux-kernel@vger.kernel.org, David Daney Subject: [PATCH v5 1/6] mips/kvm: Fix ABI for use of FPU. Date: Wed, 22 May 2013 11:43:51 -0700 Message-Id: <1369248236-27237-2-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1369248236-27237-1-git-send-email-ddaney.cavm@gmail.com> References: <1369248236-27237-1-git-send-email-ddaney.cavm@gmail.com> Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 36532 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney.cavm@gmail.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips From: David Daney Define a non-empty struct kvm_fpu. Signed-off-by: David Daney --- arch/mips/include/asm/kvm.h | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/arch/mips/include/asm/kvm.h b/arch/mips/include/asm/kvm.h index 85789ea..0e8f565 100644 --- a/arch/mips/include/asm/kvm.h +++ b/arch/mips/include/asm/kvm.h @@ -1,11 +1,12 @@ /* -* This file is subject to the terms and conditions of the GNU General Public -* License. See the file "COPYING" in the main directory of this archive -* for more details. -* -* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. -* Authors: Sanjay Lal -*/ + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. + * Copyright (C) 2013 Cavium, Inc. + * Authors: Sanjay Lal + */ #ifndef __LINUX_KVM_MIPS_H #define __LINUX_KVM_MIPS_H @@ -31,8 +32,20 @@ struct kvm_regs { struct kvm_sregs { }; -/* for KVM_GET_FPU and KVM_SET_FPU */ +/* + * for KVM_GET_FPU and KVM_SET_FPU + * + * If Status[FR] is zero (32-bit FPU), the upper 32-bits of the FPRs + * are zero filled. + */ struct kvm_fpu { + __u64 fpr[32]; + __u32 fir; + __u32 fccr; + __u32 fexr; + __u32 fenr; + __u32 fcsr; + __u32 pad; }; struct kvm_debug_exit_arch { -- 1.7.11.7