Lines Matching defs:new
610 /* replace previous exception with a new one in a hope
6569 #define CMPXCHG_TYPE(t, ptr, old, new) \
6570 (cmpxchg((t *)(ptr), *(t *)(old), *(t *)(new)) == *(t *)(old))
6573 # define CMPXCHG64(ptr, old, new) CMPXCHG_TYPE(u64, ptr, old, new)
6575 # define CMPXCHG64(ptr, old, new) \
6576 (cmpxchg64((u64 *)(ptr), *(u64 *)(old), *(u64 *)(new)) == *(u64 *)(old))
6582 const void *new,
6622 exchanged = CMPXCHG_TYPE(u8, kaddr, old, new);
6625 exchanged = CMPXCHG_TYPE(u16, kaddr, old, new);
6628 exchanged = CMPXCHG_TYPE(u32, kaddr, old, new);
6631 exchanged = CMPXCHG64(kaddr, old, new);
6642 kvm_page_track_write(vcpu, gpa, new, bytes);
6649 return emulator_write_emulated(ctxt, addr, new, bytes, exception);
7456 * rflags is the old, "raw" value of the flags. The new value has
7865 khz = freq->new;
7929 * new frequency before any guests proceed.
7969 if (freq->old < freq->new && send_ipi) {
7973 * the new frequency, otherwise we risk the guest sees
7992 if (val == CPUFREQ_PRECHANGE && freq->old > freq->new)
7994 if (val == CPUFREQ_POSTCHANGE && freq->old < freq->new)
8536 * serviced prior to recognizing any new events in order to
8564 /* try to inject new event if pending */
8958 unsigned long old, new, expected;
8966 expected = new = old;
8968 __clear_bit(bit, &new);
8970 __set_bit(bit, &new);
8971 if (new == old)
8973 old = cmpxchg(&kvm->arch.apicv_inhibit_reasons, expected, new);
8976 if (!!old == !!new)
10818 * the new memslot is successful.
10909 struct kvm_memory_slot *new,
10916 if ((change != KVM_MR_FLAGS_ONLY) || (new->flags & KVM_MEM_READONLY))
10937 !(new->flags & KVM_MEM_LOG_DIRTY_PAGES))
10938 kvm_mmu_zap_collapsible_sptes(kvm, new);
10946 * For KVM_MR_CREATE and KVM_MR_MOVE, once the new slot is visible
10948 * properties of the new slot and do not need to be updated here.
10968 if (new->flags & KVM_MEM_LOG_DIRTY_PAGES) {
10970 kvm_x86_ops.slot_enable_log_dirty(kvm, new);
10984 kvm_mmu_slot_remove_write_access(kvm, new, level);
10988 kvm_x86_ops.slot_disable_log_dirty(kvm, new);
10995 const struct kvm_memory_slot *new,
11005 kvm_mmu_slot_apply_flags(kvm, old, (struct kvm_memory_slot *) new, change);