Re: [patch 40/41] x86/idt: Hide set_intr_gate()

From: Paolo Bonzini
Date: Fri Aug 25 2017 - 06:57:10 EST


On 25/08/2017 12:31, Thomas Gleixner wrote:
> set_intr_gate() is an internal function of the IDT code. The only user left
> is the KVM code which replaces the pagefault handler eventually.
>
> Provide an explicit update_intr_gate() function and make set_intr_gate()
> static. While at it replace the magic number 14 in the KVM code with the
> proper trap define.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>


Acked-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Thanks,

Paolo