mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] KVM: x86: Remove unused X86EMUL_MODE_HOST define
@ 2026-05-20 14:42 Sean Christopherson
  2026-05-27 18:10 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Christopherson @ 2026-05-20 14:42 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel

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 <seanjc@google.com>
---
 arch/x86/kvm/kvm_emulate.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/x86/kvm/kvm_emulate.h b/arch/x86/kvm/kvm_emulate.h
index 0abff36d0994..09d3154efa35 100644
--- a/arch/x86/kvm/kvm_emulate.h
+++ b/arch/x86/kvm/kvm_emulate.h
@@ -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
-- 
2.54.0.631.ge1b05301d1-goog


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: x86: Remove unused X86EMUL_MODE_HOST define
  2026-05-20 14:42 [PATCH] KVM: x86: Remove unused X86EMUL_MODE_HOST define Sean Christopherson
@ 2026-05-27 18:10 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2026-05-27 18:10 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel

On Wed, 20 May 2026 07:42:43 -0700, Sean Christopherson wrote:
> 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

--
https://github.com/kvm-x86/linux/tree/next

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-27 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-20 14:42 [PATCH] KVM: x86: Remove unused X86EMUL_MODE_HOST define Sean Christopherson
2026-05-27 18:10 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®