diff options
-rw-r--r-- | drivers/kvm/kvm_main.c | 1 | ||||
-rw-r--r-- | include/linux/kvm.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 69d9ab4e7cb4..20947462f401 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -1378,6 +1378,7 @@ int kvm_hypercall(struct kvm_vcpu *vcpu, struct kvm_run *run) | |||
1378 | } | 1378 | } |
1379 | switch (nr) { | 1379 | switch (nr) { |
1380 | default: | 1380 | default: |
1381 | run->hypercall.nr = nr; | ||
1381 | run->hypercall.args[0] = a0; | 1382 | run->hypercall.args[0] = a0; |
1382 | run->hypercall.args[1] = a1; | 1383 | run->hypercall.args[1] = a1; |
1383 | run->hypercall.args[2] = a2; | 1384 | run->hypercall.args[2] = a2; |
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 8db01a91e1a7..91a446f450b8 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -99,6 +99,7 @@ struct kvm_run { | |||
99 | } mmio; | 99 | } mmio; |
100 | /* KVM_EXIT_HYPERCALL */ | 100 | /* KVM_EXIT_HYPERCALL */ |
101 | struct { | 101 | struct { |
102 | __u64 nr; | ||
102 | __u64 args[6]; | 103 | __u64 args[6]; |
103 | __u64 ret; | 104 | __u64 ret; |
104 | __u32 longmode; | 105 | __u32 longmode; |