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

Commit 0307b7b8 authored by Zhang Xiantao's avatar Zhang Xiantao Committed by Gleb Natapov
Browse files

kvm: remove unnecessary bit checking for ept violation



Bit 6 in EPT vmexit's exit qualification is not defined in SDM, so remove it.

Signed-off-by: default avatarZhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent 78c63440
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -4863,11 +4863,6 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu)

	exit_qualification = vmcs_readl(EXIT_QUALIFICATION);

	if (exit_qualification & (1 << 6)) {
		printk(KERN_ERR "EPT: GPA exceeds GAW!\n");
		return -EINVAL;
	}

	gla_validity = (exit_qualification >> 7) & 0x3;
	if (gla_validity != 0x3 && gla_validity != 0x1 && gla_validity != 0) {
		printk(KERN_ERR "EPT: Handling EPT violation failed!\n");