lkml.org 
[lkml]   [2023]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RESEND v9 31/36] x86/traps: Export external_interrupt() for handling IRQ in IRQ induced VM exits
    Date
    Export external_interrupt() for handling IRQ in IRQ induced VM exits.

    Tested-by: Shan Kang <shan.kang@intel.com>
    Signed-off-by: Xin Li <xin3.li@intel.com>
    ---
    arch/x86/kernel/traps.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
    index 90fdfcccee7a..6143ad56008e 100644
    --- a/arch/x86/kernel/traps.c
    +++ b/arch/x86/kernel/traps.c
    @@ -1560,6 +1560,11 @@ int external_interrupt(struct pt_regs *regs)
    return 0;
    }

    +#if IS_ENABLED(CONFIG_KVM_INTEL)
    +/* For KVM VMX to handle IRQs in IRQ induced VM exits. */
    +EXPORT_SYMBOL_GPL(external_interrupt);
    +#endif
    +
    #endif /* CONFIG_X86_64 */

    void __init trap_init(void)
    --
    2.34.1
    \
     
     \ /
      Last update: 2023-08-01 11:09    [W:8.567 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site