Re: [PATCH] KVM: Clean up vm creation and release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
> index 985d825..d8d1877 100644
> --- a/arch/s390/kvm/kvm-s390.c
> +++ b/arch/s390/kvm/kvm-s390.c
> @@ -164,24 +164,18 @@ long kvm_arch_vm_ioctl(struct file *filp,
>  	return r;
>  }
> 
> -struct kvm *kvm_arch_create_vm(void)
> +int kvm_arch_create_vm(struct kvm *kvm)

needs to be renamed to
       kvm_arch_init_vm

[...]

> --- a/include/linux/kvm_host.h
> +++ b/include/linux/kvm_host.h
> @@ -441,7 +441,19 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu);
> 
>  void kvm_free_physmem(struct kvm *kvm);
> 
> -struct  kvm *kvm_arch_create_vm(void);
> +#ifndef __KVM_HAVE_ARCH_VM_ALLOC
> +static inline struct kvm *kvm_arch_alloc_vm(void)
> +{
> +	return kzalloc(sizeof(struct kvm), GFP_KERNEL);

I have not checked kvm.git but on Linux head we need
#include <linux/slab.h>
for kzalloc.

Christian

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux