]> Gentwo Git Trees - linux/.git/commit
KVM: x86: Implement test_cc() in C
authorPeter Zijlstra <peterz@infradead.org>
Fri, 1 Dec 2023 17:53:40 +0000 (18:53 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 18 Aug 2025 12:23:04 +0000 (14:23 +0200)
commit0cb6f1e436accba7882bb3115408d1474c1e14af
treec93a3d92703a588d93ad027af57407664f76d72a
parentc17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
KVM: x86: Implement test_cc() in C

Current test_cc() uses the fastop infrastructure to test flags using
SETcc instructions. However, int3_emulate_jcc() already fully
implements the flags->CC mapping, use that.

Removes a pile of gnarly asm.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Sean Christopherson <seanjc@google.com>
Link: https://lkml.kernel.org/r/20250714103439.637049932@infradead.org
arch/x86/include/asm/text-patching.h
arch/x86/kvm/emulate.c