lkml.org 
[lkml]   [2020]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 41/62] x86/sev-es: Handle MSR events
From
Date
On 2/11/20 5:52 AM, Joerg Roedel wrote:
> Implement a handler for #VC exceptions caused by RDMSR/WRMSR
> instructions.

As a general comment on all of these event handlers: Why do we bother
having the hypercalls in the interrupt handler as opposed to just
calling them directly. What you have is:

wrmsr()
-> #VC exception
hcall()

But we could make our rd/wrmsr() wrappers just do:

if (running_on_sev_es())
hcall(HCALL_MSR_WHATEVER...)
else
wrmsr()

and then we don't have any of the nastiness of exception handling.

\
 
 \ /
  Last update: 2020-02-13 16:45    [W:0.192 / U:1.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site