target/i386/kvm: Remove unused workaround for kernel header typo
PATCH 1/1 target/i386/kvm: Remove unused workaround for kernel header typo
Commit 6f131f13e68d ("kvm: support -overcommit cpu-pm=on|off", 2018-06-22) introduced a workaround for a kernel header typo (KVM_X86_DISABLE_EXITS_HTL instead of KVM_X86_DISABLE_EXITS_HLT).
The problematic kernel header was fixed by commit 77d361b13c19 ("linux-headers: Update to kernel mainline commit b357bf602", 2018-06-22). The wrong name doesn't appear anywhere in the QEMU code.
Remove the unused typo workaround.
Signed-off-by Dov Murik <[email protected]>
--- target/i386/kvm/kvm.c | 4 ---- 1 file changed, 4 deletions(-)
target/i386/kvm/kvm.c +0 -4
@@ -2327,10 +2327,6 @@ int kvm_arch_init(MachineState *ms, KVMState *s)int disable_exits =kvm_check_extension (s,KVM_CAP_X86_DISABLE_EXITS );int ret; -/* Work around for kernel header with a typo. TODO: fix header and drop. */ -#if defined(KVM_X86_DISABLE_EXITS_HTL ) && !defined(KVM_X86_DISABLE_EXITS_HLT ) -#define KVM_X86_DISABLE_EXITS_HLT KVM_X86_DISABLE_EXITS_HTL -#endif if (disable_exits) { disable_exits &= (KVM_X86_DISABLE_EXITS_MWAIT | KVM_X86_DISABLE_EXITS_HLT |
Signature · 1 line
2.25.1