[PATCH v5 01/10] KVM: x86: SVM: Remove vmcb_is_dirty()
From: Jim Mattson
Date: Mon Feb 23 2026 - 19:55:55 EST
After commit dd26d1b5d6ed ("KVM: nSVM: Cache all used fields from VMCB12"),
vmcb_is_dirty() has no callers. Remove the function.
Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx>
---
arch/x86/kvm/svm/svm.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h
index 0bb93879abfe..8f9e6a39659c 100644
--- a/arch/x86/kvm/svm/svm.h
+++ b/arch/x86/kvm/svm/svm.h
@@ -434,11 +434,6 @@ static inline void vmcb_mark_dirty(struct vmcb *vmcb, int bit)
vmcb->control.clean &= ~(1 << bit);
}
-static inline bool vmcb_is_dirty(struct vmcb *vmcb, int bit)
-{
- return !test_bit(bit, (unsigned long *)&vmcb->control.clean);
-}
-
static inline bool vmcb12_is_dirty(struct vmcb_ctrl_area_cached *control, int bit)
{
return !test_bit(bit, (unsigned long *)&control->clean);
--
2.53.0.371.g1d285c8824-goog