Lines Matching defs:kvm

8 #include <linux/kvm.h>
34 rc = kvmppc_xive_set_xive(vcpu->kvm, irq, server, priority);
36 rc = kvmppc_xics_set_xive(vcpu->kvm, irq, server, priority);
57 rc = kvmppc_xive_get_xive(vcpu->kvm, irq, &server, &priority);
59 rc = kvmppc_xics_get_xive(vcpu->kvm, irq, &server, &priority);
84 rc = kvmppc_xive_int_off(vcpu->kvm, irq);
86 rc = kvmppc_xics_int_off(vcpu->kvm, irq);
106 rc = kvmppc_xive_int_on(vcpu->kvm, irq);
108 rc = kvmppc_xics_int_on(vcpu->kvm, irq);
142 static int rtas_token_undefine(struct kvm *kvm, char *name)
146 lockdep_assert_held(&kvm->arch.rtas_token_lock);
148 list_for_each_entry_safe(d, tmp, &kvm->arch.rtas_tokens, list) {
160 static int rtas_token_define(struct kvm *kvm, char *name, u64 token)
167 lockdep_assert_held(&kvm->arch.rtas_token_lock);
169 list_for_each_entry(d, &kvm->arch.rtas_tokens, list) {
193 list_add_tail(&d->list, &kvm->arch.rtas_tokens);
198 int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp)
206 mutex_lock(&kvm->arch.rtas_token_lock);
209 rc = rtas_token_define(kvm, args.name, args.token);
211 rc = rtas_token_undefine(kvm, args.name);
213 mutex_unlock(&kvm->arch.rtas_token_lock);
232 vcpu->srcu_idx = srcu_read_lock(&vcpu->kvm->srcu);
233 rc = kvm_read_guest(vcpu->kvm, args_phys, &args, sizeof(args));
234 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->srcu_idx);
258 mutex_lock(&vcpu->kvm->arch.rtas_token_lock);
261 list_for_each_entry(d, &vcpu->kvm->arch.rtas_tokens, list) {
269 mutex_unlock(&vcpu->kvm->arch.rtas_token_lock);
273 rc = kvm_write_guest(vcpu->kvm, args_phys, &args, sizeof(args));
299 void kvmppc_rtas_tokens_free(struct kvm *kvm)
303 list_for_each_entry_safe(d, tmp, &kvm->arch.rtas_tokens, list) {