Lines Matching refs:gen
446 static u64 generation_mmio_spte_mask(u64 gen) in generation_mmio_spte_mask() argument
450 WARN_ON(gen & ~MMIO_SPTE_GEN_MASK); in generation_mmio_spte_mask()
453 mask = (gen << MMIO_SPTE_GEN_LOW_SHIFT) & MMIO_SPTE_GEN_LOW_MASK; in generation_mmio_spte_mask()
454 mask |= (gen << MMIO_SPTE_GEN_HIGH_SHIFT) & MMIO_SPTE_GEN_HIGH_MASK; in generation_mmio_spte_mask()
460 u64 gen; in get_mmio_spte_generation() local
462 gen = (spte & MMIO_SPTE_GEN_LOW_MASK) >> MMIO_SPTE_GEN_LOW_SHIFT; in get_mmio_spte_generation()
463 gen |= (spte & MMIO_SPTE_GEN_HIGH_MASK) >> MMIO_SPTE_GEN_HIGH_SHIFT; in get_mmio_spte_generation()
464 return gen; in get_mmio_spte_generation()
470 u64 gen = kvm_vcpu_memslots(vcpu)->generation & MMIO_SPTE_GEN_MASK; in mark_mmio_spte() local
471 u64 mask = generation_mmio_spte_mask(gen); in mark_mmio_spte()
480 trace_mark_mmio_spte(sptep, gfn, access, gen); in mark_mmio_spte()
512 u64 kvm_gen, spte_gen, gen; in check_mmio_spte() local
514 gen = kvm_vcpu_memslots(vcpu)->generation; in check_mmio_spte()
515 if (unlikely(gen & KVM_MEMSLOT_GEN_UPDATE_IN_PROGRESS)) in check_mmio_spte()
518 kvm_gen = gen & MMIO_SPTE_GEN_MASK; in check_mmio_spte()
6135 void kvm_mmu_invalidate_mmio_sptes(struct kvm *kvm, u64 gen) in kvm_mmu_invalidate_mmio_sptes() argument
6137 WARN_ON(gen & KVM_MEMSLOT_GEN_UPDATE_IN_PROGRESS); in kvm_mmu_invalidate_mmio_sptes()
6139 gen &= MMIO_SPTE_GEN_MASK; in kvm_mmu_invalidate_mmio_sptes()
6148 gen &= ~((u64)KVM_ADDRESS_SPACE_NUM - 1); in kvm_mmu_invalidate_mmio_sptes()
6154 if (unlikely(gen == 0)) { in kvm_mmu_invalidate_mmio_sptes()