projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34333cc
)
KVM: nVMX: remove useless is_protmode check
author
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 30 Jan 2019 16:25:38 +0000
(17:25 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:24 +0000
(22:48 +0100)
VMX is only accessible in protected mode, remove a confusing check
that causes the conditional to lack a final "else" branch.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx/nested.c
b/arch/x86/kvm/vmx/nested.c
index 0050c179c5d3a4befc03a4b6805377ed06a078d2..be9b2c8fd32ec2141d4889b9006cc4084a1af618 100644
(file)
--- a/
arch/x86/kvm/vmx/nested.c
+++ b/
arch/x86/kvm/vmx/nested.c
@@
-4056,7
+4056,7
@@
int get_vmx_mem_address(struct kvm_vcpu *vcpu, unsigned long exit_qualification,
* destination for long mode!
*/
exn = is_noncanonical_address(*ret, vcpu);
- } else
if (is_protmode(vcpu))
{
+ } else {
/*
* When not in long mode, the virtual/linear address is
* unconditionally truncated to 32 bits regardless of the