Skip to content

Commit

Permalink
mips/kvm: Fix ABI for use of FPU.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Daney authored and Gleb Natapov committed Jun 3, 2013
1 parent 514e250 commit 1f3dc6d
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions arch/mips/include/uapi/asm/kvm.h
Original file line number Diff line number Diff line change
@@ -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 <sanjayl@kymasys.com>
*/
* 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 <sanjayl@kymasys.com>
*/

#ifndef __LINUX_KVM_MIPS_H
#define __LINUX_KVM_MIPS_H
Expand All @@ -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 {
Expand Down

0 comments on commit 1f3dc6d

Please sign in to comment.