mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
KVM: VMX: if unrestricted guest is enabled vcpu state is always valid.
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
2f143240cb
commit
c5e97c80b5
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user