[PATCH v3 59/75] x86/sev-es: Handle MONITOR/MONITORX Events

2020-04-28 Thread Joerg Roedel
From: Tom Lendacky Implement a handler for #VC exceptions caused by MONITOR and MONITORX instructions. Signed-off-by: Tom Lendacky [ jroe...@suse.de: Adapt to #VC handling infrastructure ] Co-developed-by: Joerg Roedel Signed-off-by: Joerg Roedel --- arch/x86/kernel/sev-es.c | 19 +++

Re: [PATCH v3 59/75] x86/sev-es: Handle MONITOR/MONITORX Events

2020-05-19 Thread Sean Christopherson
On Tue, Apr 28, 2020 at 05:17:09PM +0200, Joerg Roedel wrote: > From: Tom Lendacky > > Implement a handler for #VC exceptions caused by MONITOR and MONITORX > instructions. > > Signed-off-by: Tom Lendacky > [ jroe...@suse.de: Adapt to #VC handling infrastructure ] > Co-developed-by: Joerg Roede

Re: [PATCH v3 59/75] x86/sev-es: Handle MONITOR/MONITORX Events

2020-06-11 Thread Joerg Roedel
On Tue, May 19, 2020 at 11:38:45PM -0700, Sean Christopherson wrote: > On Tue, Apr 28, 2020 at 05:17:09PM +0200, Joerg Roedel wrote: > > +static enum es_result vc_handle_monitor(struct ghcb *ghcb, > > + struct es_em_ctxt *ctxt) > > +{ > > + phys_addr_t monitor_pa

Re: [PATCH v3 59/75] x86/sev-es: Handle MONITOR/MONITORX Events

2020-06-11 Thread Sean Christopherson
On Thu, Jun 11, 2020 at 03:10:45PM +0200, Joerg Roedel wrote: > On Tue, May 19, 2020 at 11:38:45PM -0700, Sean Christopherson wrote: > > On Tue, Apr 28, 2020 at 05:17:09PM +0200, Joerg Roedel wrote: > > > +static enum es_result vc_handle_monitor(struct ghcb *ghcb, > > > +

Re: [PATCH v3 59/75] x86/sev-es: Handle MONITOR/MONITORX Events

2020-06-11 Thread Tom Lendacky
On 6/11/20 12:13 PM, Sean Christopherson wrote: On Thu, Jun 11, 2020 at 03:10:45PM +0200, Joerg Roedel wrote: On Tue, May 19, 2020 at 11:38:45PM -0700, Sean Christopherson wrote: On Tue, Apr 28, 2020 at 05:17:09PM +0200, Joerg Roedel wrote: +static enum es_result vc_handle_monitor(struct gh

Re: [PATCH v3 59/75] x86/sev-es: Handle MONITOR/MONITORX Events

2020-06-12 Thread Joerg Roedel
On Thu, Jun 11, 2020 at 02:33:12PM -0500, Tom Lendacky wrote: > I don't think there is any guarantee that MONITOR/MWAIT would work within a > guest (I'd have to dig some more on that to get a definitive answer, but > probably not necessary to do). As you say, if KVM emulates it as a NOP, > there's