lkml.org 
[lkml]   [2023]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH V6 04/14] x86/sev: optimize system vector processing invoked from #HV exception
From
On 5/16/2023 6:23 PM, Peter Zijlstra wrote:
>> - panic("Unexpected vector %d\n", vector);
>> - unreachable();
>> + if (!(sysvec_table[pending_events.vector - FIRST_SYSTEM_VECTOR])) {
>> + WARN(1, "system vector entry 0x%x is NULL\n",
>> + pending_events.vector);
>> + } else {
>> + (*sysvec_table[pending_events.vector - FIRST_SYSTEM_VECTOR])(regs);
>> }
>> } else {
>> common_interrupt(regs, pending_events.vector);
> But your code replace direct calls with an indirect call. Now AFAIK,
> this SNP shit came with Zen3, and Zen3 still uses retpolines for
> indirect calls.
>
> Can you connect the dots?


The title is no exact and will update in the next version. Thanks.

\
 
 \ /
  Last update: 2023-05-17 15:29    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog