mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
KVM: MMU: set ad_disabled in TDP MMU role
Prepare for removing the ad_disabled argument of make_spte; instead it can be found in the role of a struct kvm_mmu_page. First of all, the TDP MMU must set the role accurately. Signed-off-by: Paolo Bonzini <[email protected]>
This commit is contained in:
1 parent
eb5cd7ffe1
commit
87e888eafd
1 file changed
+1
@@ -167,6 +167,7 @@ static union kvm_mmu_page_role page_role_for_level(struct kvm_vcpu *vcpu,
|
||||
role.direct = true;
|
||||
role.gpte_is_8_bytes = true;
|
||||
role.access = ACC_ALL;
|
||||
role.ad_disabled = !shadow_accessed_mask;
|
||||
|
||||
return role;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user