aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2013-05-23 12:49:05 -0400
committerGleb Natapov <gleb@redhat.com>2013-06-03 03:58:50 -0400
commit1f3dc6d76424538efb2095055035254b14499c77 (patch)
tree456266e79f6195fe7cbe3ae29896c677d91565f5 /arch/mips/include
parent514e250f67d2b2a8ab08dc9c3650af19a411c926 (diff)
mips/kvm: Fix ABI for use of FPU.
Define a non-empty struct kvm_fpu. Signed-off-by: David Daney <david.daney@cavium.com> Acked-by: Sanjay Lal <sanjayl@kymasys.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/uapi/asm/kvm.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/arch/mips/include/uapi/asm/kvm.h b/arch/mips/include/uapi/asm/kvm.h
index 85789eacbf18..0e8f5658c03e 100644
--- a/arch/mips/include/uapi/asm/kvm.h
+++ b/arch/mips/include/uapi/asm/kvm.h
@@ -1,11 +1,12 @@
1/* 1/*
2* This file is subject to the terms and conditions of the GNU General Public 2 * This file is subject to the terms and conditions of the GNU General Public
3* License. See the file "COPYING" in the main directory of this archive 3 * License. See the file "COPYING" in the main directory of this archive
4* for more details. 4 * for more details.
5* 5 *
6* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
7* Authors: Sanjay Lal <sanjayl@kymasys.com> 7 * Copyright (C) 2013 Cavium, Inc.
8*/ 8 * Authors: Sanjay Lal <sanjayl@kymasys.com>
9 */
9 10
10#ifndef __LINUX_KVM_MIPS_H 11#ifndef __LINUX_KVM_MIPS_H
11#define __LINUX_KVM_MIPS_H 12#define __LINUX_KVM_MIPS_H
@@ -31,8 +32,20 @@ struct kvm_regs {
31struct kvm_sregs { 32struct kvm_sregs {
32}; 33};
33 34
34/* for KVM_GET_FPU and KVM_SET_FPU */ 35/*
36 * for KVM_GET_FPU and KVM_SET_FPU
37 *
38 * If Status[FR] is zero (32-bit FPU), the upper 32-bits of the FPRs
39 * are zero filled.
40 */
35struct kvm_fpu { 41struct kvm_fpu {
42 __u64 fpr[32];
43 __u32 fir;
44 __u32 fccr;
45 __u32 fexr;
46 __u32 fenr;
47 __u32 fcsr;
48 __u32 pad;
36}; 49};
37 50
38struct kvm_debug_exit_arch { 51struct kvm_debug_exit_arch {