Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b26b588 authored by Gleb Natapov's avatar Gleb Natapov Committed by Marcelo Tosatti
Browse files

VMX: remove unneeded enable_unrestricted_guest check



If enable_unrestricted_guest is true vmx->rmode.vm86_active will
always be false.

Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent a4d3326c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);