Skip to content

Commit 5dabc87

Browse files
trueptolemybonzini
authored andcommitted
target/i386/kvm: Drop workaround for KVM_X86_DISABLE_EXITS_HTL typo
The KVM_X86_DISABLE_EXITS_HTL typo has been fixed in commit 77d361b ("linux-headers: Update to kernel mainline commit b357bf602"). Drop the related workaround. Signed-off-by: Zhao Liu <[email protected]> Reviewed-by: Zide Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 86e032b commit 5dabc87

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

target/i386/kvm/kvm.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,10 +3100,7 @@ static int kvm_vm_set_tss_addr(KVMState *s, uint64_t tss_base)
31003100
static int kvm_vm_enable_disable_exits(KVMState *s)
31013101
{
31023102
int disable_exits = kvm_check_extension(s, KVM_CAP_X86_DISABLE_EXITS);
3103-
/* Work around for kernel header with a typo. TODO: fix header and drop. */
3104-
#if defined(KVM_X86_DISABLE_EXITS_HTL) && !defined(KVM_X86_DISABLE_EXITS_HLT)
3105-
#define KVM_X86_DISABLE_EXITS_HLT KVM_X86_DISABLE_EXITS_HTL
3106-
#endif
3103+
31073104
if (disable_exits) {
31083105
disable_exits &= (KVM_X86_DISABLE_EXITS_MWAIT |
31093106
KVM_X86_DISABLE_EXITS_HLT |

0 commit comments

Comments
 (0)