Lines Matching refs:unsync
1218 * - for spte protection, the spte can be writable only after unsync-ing
1808 if (sp->unsync)
1854 } else if (child->unsync) {
1880 WARN_ON_ONCE(!sp->unsync);
1882 sp->unsync = 0;
1933 * Direct pages can never be unsync, and KVM should never attempt to
2143 * unsync, thus @vcpu can be NULL if @role.direct is true.
2165 * unsync pages for the same gfn. While it's possible
2167 * likelihood the guest has stopped using the unsync
2172 if (role.level > PG_LEVEL_4K && sp->unsync)
2178 /* unsync and write-flooding only apply to indirect SPs. */
2182 if (sp->unsync) {
2193 * SPs for a single gfn to be unsync.
2449 * so sp->unsync can be true or false. For higher level non-direct
2454 if (WARN_ON_ONCE(sp->unsync_children) || sp->unsync)
2583 if (sp->unsync)
2788 sp->unsync = 1;
2794 * Attempt to unsync any shadow pages that can be reached by the specified gfn,
2796 * were marked unsync (or if there is no shadow page), -EPERM if the SPTE must
2814 * The page is not write-tracked, mark existing shadow pages unsync
2815 * unless KVM is synchronizing an unsync SP (can_unsync = false). In
2817 * allowing shadow pages to become unsync (writable by the guest).
2823 if (sp->unsync)
2831 * run with mmu_lock held for read, not write, and the unsync
2842 * may have since marked the page unsync. A false
2844 * possible as clearing sp->unsync _must_ hold mmu_lock
2845 * for write, i.e. unsync cannot transition from 0->1
2848 if (READ_ONCE(sp->unsync))
2859 * We need to ensure that the marking of unsync pages is visible
2861 * kvm_mmu_sync_roots() checks the unsync flags without holding
2863 * before the page had been marked as unsync-ed, something like the
2880 * 2.3 Walking of unsync pages sees sp->unsync is
2888 * as unsync
2889 * (sp->unsync = true)
3967 * walk before the reads of sp->unsync/sp->unsync_children here.
3969 * Even if another CPU was marking the SP as unsync-ed simultaneously,
3987 if (sp->unsync || sp->unsync_children)
5582 * it can become unsync, then the guest page is not write-protected.
5790 if (sp->unsync) {
6474 /* SPs with level >PG_LEVEL_4K should never by unsync. */
6475 if (WARN_ON_ONCE(sp->unsync))