aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-12-02 12:26:28 -0500
committerAvi Kivity <avi@redhat.com>2011-12-27 04:22:16 -0500
commit234b639206a7d9d5ca362cff64ceddd4f27e4a46 (patch)
tree78ef5f739cba00735cc2d08cf1d11bdec2d908cc /arch/x86/kvm
parent3d56cbdf359c953f8bfcab68aa5cf766e4480799 (diff)
KVM: x86 emulator: Remove set-but-unused cr4 from check_cr_write
This was probably copy&pasted from the cr0 case, but it's unneeded here. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/emulate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index ac8e5ed78834..f641201c7b31 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -3028,9 +3028,6 @@ static int check_cr_write(struct x86_emulate_ctxt *ctxt)
3028 break; 3028 break;
3029 } 3029 }
3030 case 4: { 3030 case 4: {
3031 u64 cr4;
3032
3033 cr4 = ctxt->ops->get_cr(ctxt, 4);
3034 ctxt->ops->get_msr(ctxt, MSR_EFER, &efer); 3031 ctxt->ops->get_msr(ctxt, MSR_EFER, &efer);
3035 3032
3036 if ((efer & EFER_LMA) && !(new_val & X86_CR4_PAE)) 3033 if ((efer & EFER_LMA) && !(new_val & X86_CR4_PAE))