diff options
author | Kyle Huey <me@kylehuey.com> | 2016-11-29 23:40:37 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-12-08 17:31:03 +0300 |
commit | 6a908b628cff81d3f1eb737327c8b726c8fdfd4e (patch) | |
tree | 8464b25c1de2854c34db51cb1f32ed76035d9695 /arch/x86/include/asm/kvm_host.h | |
parent | 57d1da871b85c3a79e070d5cfc5ccb554ed839c4 (diff) | |
download | linux-6a908b628cff81d3f1eb737327c8b726c8fdfd4e.tar.xz |
KVM: x86: Add a return value to kvm_emulate_cpuid
Once skipping the emulated instruction can potentially trigger an exit to
userspace (via KVM_GUESTDBG_SINGLESTEP) kvm_emulate_cpuid will need to
propagate a return value.
Signed-off-by: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 77cb3f93de2b..80bad5c372bf 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1134,7 +1134,7 @@ struct x86_emulate_ctxt; int kvm_fast_pio_out(struct kvm_vcpu *vcpu, int size, unsigned short port); int kvm_fast_pio_in(struct kvm_vcpu *vcpu, int size, unsigned short port); -void kvm_emulate_cpuid(struct kvm_vcpu *vcpu); +int kvm_emulate_cpuid(struct kvm_vcpu *vcpu); int kvm_emulate_halt(struct kvm_vcpu *vcpu); int kvm_vcpu_halt(struct kvm_vcpu *vcpu); int kvm_emulate_wbinvd(struct kvm_vcpu *vcpu); |