KVM: x86: Remove unused X86EMUL_MODE_HOST define
Sean Christopherson
maintainerPATCH 1/1 KVM: x86: Remove unused X86EMUL_MODE_HOST define
Drop the emulator's X86EMUL_MODE_HOST #defines, as they have never been used by KVM (they were likely copy+pasted from Xen's emulator).
No functional change intended.
Fixes 6aa8b732ca01 ("[PATCH] kvm: userspace interface")
Signed-off-by Sean Christopherson <[email protected]>
--- arch/x86/kvm/kvm_emulate.h | 7 ------- 1 file changed, 7 deletions(-)
arch/x86/kvm/kvm_emulate.h +0 -7
@@ -520,13 +520,6 @@ enum x86_intercept { nr_x86_intercepts }; -/* Host execution mode. */ -#if defined(CONFIG_X86_32 ) -#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT32 -#elif defined(CONFIG_X86_64 ) -#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT64 -#endif -int x86_decode_insn (struct x86_emulate_ctxt *ctxt,void *insn,int insn_len,int emulation_type);bool x86_page_table_writing_insn (struct x86_emulate_ctxt *ctxt);#define EMULATION_FAILED -1
base-commit: a9512a611bd030088f13477258d1f8103cceaa40
Signature · 1 line
2.54.0.631.ge1b05301d1-goog
Quoted 4 lines · Sean Christopherson
Drop the emulator's
X86EMUL_MODE_HOST#defines, as they have never been used by KVM (they were likely copy+pasted from Xen's emulator).No functional change intended.
Applied to kvm-x86 misc, thanks!
[1/1] KVM: x86: Remove unused X86EMUL_MODE_HOST define
https://github.com/kvm-x86/linux/commit/5aeb1e35a421