projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4d3326
)
VMX: remove unneeded enable_unrestricted_guest check
author
Gleb Natapov
<gleb@redhat.com>
Tue, 11 Dec 2012 13:14:11 +0000
(15:14 +0200)
committer
Marcelo Tosatti
<mtosatti@redhat.com>
Tue, 11 Dec 2012 23:00:28 +0000
(21:00 -0200)
If enable_unrestricted_guest is true vmx->rmode.vm86_active will
always be false.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index feab3d973b681f4cac2cbd92a0211d4ae2278556..d14bb12356854ebf8dbe9af6e28b7c18c1849414 100644
(file)
--- a/
arch/x86/kvm/vmx.c
+++ b/
arch/x86/kvm/vmx.c
@@
-3316,7
+3316,7
@@
static void vmx_set_segment(struct kvm_vcpu *vcpu,
* unrestricted guest like Westmere to older host that don't have
* unrestricted guest like Nehelem.
*/
- if (
!enable_unrestricted_guest &&
vmx->rmode.vm86_active) {
+ if (vmx->rmode.vm86_active) {
switch (seg) {
case VCPU_SREG_CS:
vmcs_write32(GUEST_CS_AR_BYTES, 0xf3);