From: Gleb Natapov Date: Mon, 21 Jan 2013 13:36:43 +0000 (+0200) Subject: KVM: VMX: if unrestricted guest is enabled vcpu state is always valid. X-Git-Tag: v3.9-rc1~97^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5e97c80b5ddd6139bdadcbd44e263c2a3e7fae6;p=platform%2Fupstream%2Fkernel-adaptation-pc.git KVM: VMX: if unrestricted guest is enabled vcpu state is always valid. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index edfbe94..f942b20 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3488,6 +3488,9 @@ static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) */ static bool guest_state_valid(struct kvm_vcpu *vcpu) { + if (enable_unrestricted_guest) + return true; + /* real mode guest state checks */ if (!is_protmode(vcpu)) { if (!rmode_segment_valid(vcpu, VCPU_SREG_CS))