projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d56cbd
)
KVM: x86 emulator: Remove set-but-unused cr4 from check_cr_write
author
Jan Kiszka
<jan.kiszka@siemens.com>
Fri, 2 Dec 2011 17:26:28 +0000
(18:26 +0100)
committer
Avi Kivity
<avi@redhat.com>
Tue, 27 Dec 2011 09:22:16 +0000
(11:22 +0200)
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>
arch/x86/kvm/emulate.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index ac8e5ed788342e166eab3137f62fa889ea161d4b..f641201c7b31c1e55390bfa229e41fa0eaf10bd5 100644
(file)
--- 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)
break;
}
case 4: {
- u64 cr4;
-
- cr4 = ctxt->ops->get_cr(ctxt, 4);
ctxt->ops->get_msr(ctxt, MSR_EFER, &efer);
if ((efer & EFER_LMA) && !(new_val & X86_CR4_PAE))