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

Commit bc2d4299 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Account for npt/ept/realmode page faults



Now that two-dimensional paging is becoming common, account for tdp page
faults.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent a5e2e82b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1283,6 +1283,7 @@ static int direct_map_entry(struct kvm_shadow_walk *_walk,
		mmu_set_spte(vcpu, sptep, ACC_ALL, ACC_ALL,
		mmu_set_spte(vcpu, sptep, ACC_ALL, ACC_ALL,
			     0, walk->write, 1, &walk->pt_write,
			     0, walk->write, 1, &walk->pt_write,
			     walk->largepage, gfn, walk->pfn, false);
			     walk->largepage, gfn, walk->pfn, false);
		++vcpu->stat.pf_fixed;
		return 1;
		return 1;
	}
	}