diff options
author | Andre Przywara <andre.przywara@amd.com> | 2010-12-21 05:12:02 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:31:00 -0500 |
commit | 51d8b66199e94284e7725a79eae4a38de4b80d54 (patch) | |
tree | 904e8c206d9d1d52eb673c235c08b7a612cce9b0 /arch/x86/include/asm/kvm_host.h | |
parent | db8fcefaa704ccb40b6dcd24e3b75bad3ce7dde3 (diff) |
KVM: cleanup emulate_instruction
emulate_instruction had many callers, but only one used all
parameters. One parameter was unused, another one is now
hidden by a wrapper function (required for a future addition
anyway), so most callers use now a shorter parameter list.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index cd4a990e8a12..de00b6026b76 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -634,8 +634,15 @@ enum emulation_result { | |||
634 | #define EMULTYPE_NO_DECODE (1 << 0) | 634 | #define EMULTYPE_NO_DECODE (1 << 0) |
635 | #define EMULTYPE_TRAP_UD (1 << 1) | 635 | #define EMULTYPE_TRAP_UD (1 << 1) |
636 | #define EMULTYPE_SKIP (1 << 2) | 636 | #define EMULTYPE_SKIP (1 << 2) |
637 | int emulate_instruction(struct kvm_vcpu *vcpu, | 637 | int x86_emulate_instruction(struct kvm_vcpu *vcpu, |
638 | unsigned long cr2, u16 error_code, int emulation_type); | 638 | unsigned long cr2, int emulation_type); |
639 | |||
640 | static inline int emulate_instruction(struct kvm_vcpu *vcpu, | ||
641 | int emulation_type) | ||
642 | { | ||
643 | return x86_emulate_instruction(vcpu, 0, emulation_type); | ||
644 | } | ||
645 | |||
639 | void realmode_lgdt(struct kvm_vcpu *vcpu, u16 size, unsigned long address); | 646 | void realmode_lgdt(struct kvm_vcpu *vcpu, u16 size, unsigned long address); |
640 | void realmode_lidt(struct kvm_vcpu *vcpu, u16 size, unsigned long address); | 647 | void realmode_lidt(struct kvm_vcpu *vcpu, u16 size, unsigned long address); |
641 | 648 | ||