From: Jim Mattson Date: Tue, 24 Feb 2026 00:54:39 +0000 (-0800) Subject: KVM: x86: SVM: Remove vmcb_is_dirty() X-Git-Tag: ceph-for-7.1-rc4~208^2~4^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66b207f175f1cd52b083c4d90d03cc1c15b8ae6a;p=ceph-client.git KVM: x86: SVM: Remove vmcb_is_dirty() 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 Link: https://patch.msgid.link/20260224005500.1471972-2-jmattson@google.com Signed-off-by: Sean Christopherson --- diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index 995c8de3f660..c53068848628 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -433,11 +433,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);