Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[linux-block.git] / include / linux / kvm_host.h
index 109b18e2789c4afc88d6104941e38e4097e90dcc..8ada23756b0ec223b86eaa94945d070e3e7e9a16 100644 (file)
@@ -324,7 +324,7 @@ struct kvm_vcpu {
 #endif
        int cpu;
        int vcpu_id; /* id given by userspace at creation */
-       int vcpu_idx; /* index in kvm->vcpus array */
+       int vcpu_idx; /* index into kvm->vcpu_array */
        int ____srcu_idx; /* Don't use this directly.  You've been warned. */
 #ifdef CONFIG_PROVE_RCU
        int srcu_depth;
@@ -1353,7 +1353,7 @@ void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu);
 bool kvm_vcpu_wake_up(struct kvm_vcpu *vcpu);
 void kvm_vcpu_kick(struct kvm_vcpu *vcpu);
 int kvm_vcpu_yield_to(struct kvm_vcpu *target);
-void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu, bool usermode_vcpu_not_eligible);
+void kvm_vcpu_on_spin(struct kvm_vcpu *vcpu, bool yield_to_kernel_mode);
 
 void kvm_flush_remote_tlbs(struct kvm *kvm);
 
@@ -1461,7 +1461,7 @@ int kvm_arch_create_vm_debugfs(struct kvm *kvm);
  */
 static inline struct kvm *kvm_arch_alloc_vm(void)
 {
-       return kzalloc(sizeof(struct kvm), GFP_KERNEL);
+       return kzalloc(sizeof(struct kvm), GFP_KERNEL_ACCOUNT);
 }
 #endif