Messages in this thread | | | Date | Thu, 8 Dec 2022 22:21:34 +0800 | Subject | Re: [RFC PATCH V2 16/18] x86/sev: Initialize #HV doorbell and handle interrupt requests | From | Tianyu Lan <> |
| |
On 12/7/2022 10:13 PM, Gupta, Pankaj wrote: >> +#endif >> +} >> + >> static __always_inline void native_irq_disable(void) >> { >> asm volatile("cli": : :"memory"); >> @@ -43,6 +59,9 @@ static __always_inline void native_irq_disable(void) >> static __always_inline void native_irq_enable(void) >> { >> asm volatile("sti": : :"memory"); >> +#ifdef CONFIG_AMD_MEM_ENCRYPT >> + check_hv_pending(NULL); > > Just trying to understand when regs will be NULL?
check_hv_pending() will be divided into two functions.
The one handles #hv event in the #HV exception code path. The other one handles pending irq event in the irq re-enable code path。 In this version, the "regs = NULL" for check_hv_pending() is used in the irq re-enable code path.
| |