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

Commit 519ef353 authored by Jeff Dike's avatar Jeff Dike Committed by Avi Kivity
Browse files

KVM: add hypercall nr to kvm_run



Add the hypercall number to kvm_run and initialize it.  This changes the ABI,
but as this particular ABI was unusable before this no users are affected.

Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 1c3d14fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1378,6 +1378,7 @@ int kvm_hypercall(struct kvm_vcpu *vcpu, struct kvm_run *run)
	}
	switch (nr) {
	default:
		run->hypercall.nr = nr;
		run->hypercall.args[0] = a0;
		run->hypercall.args[1] = a1;
		run->hypercall.args[2] = a2;
+1 −0
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ struct kvm_run {
		} mmio;
		/* KVM_EXIT_HYPERCALL */
		struct {
			__u64 nr;
			__u64 args[6];
			__u64 ret;
			__u32 longmode;