Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 784aa3d7 authored by Alexander Graf's avatar Alexander Graf
Browse files

KVM: Rename and add argument to check_extension



In preparation to make the check_extension function available to VM scope
we add a struct kvm * argument to the function header and rename the function
accordingly. It will still be called from the /dev/kvm fd, but with a NULL
argument for struct kvm *.

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 9678cdaa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
	}
}

int kvm_dev_ioctl_check_extension(long ext)
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
{
	int r;
	switch (ext) {
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ void kvm_arch_check_processor_compat(void *rtn)
	*(int *)rtn = 0;
}

int kvm_dev_ioctl_check_extension(long ext)
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
{

	int r;
+1 −1
Original line number Diff line number Diff line
@@ -885,7 +885,7 @@ int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf)
	return VM_FAULT_SIGBUS;
}

int kvm_dev_ioctl_check_extension(long ext)
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
{
	int r;

+1 −1
Original line number Diff line number Diff line
@@ -391,7 +391,7 @@ void kvm_arch_sync_events(struct kvm *kvm)
{
}

int kvm_dev_ioctl_check_extension(long ext)
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
{
	int r;
	/* FIXME!!
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ long kvm_arch_dev_ioctl(struct file *filp,
	return -EINVAL;
}

int kvm_dev_ioctl_check_extension(long ext)
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
{
	int r;

Loading