lkml.org 
[lkml]   [2022]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v5 092/104] KVM: TDX: Handle TDX PV HLT hypercall
On Fri, Mar 04, 2022, isaku.yamahata@intel.com wrote:
> From: Isaku Yamahata <isaku.yamahata@intel.com>
>
> Wire up TDX PV HLT hypercall to the KVM backend function.
>
> When the guest issues HLT, the hypercall instruction can be the right after
> CLI instruction. Atomically unmask virtual interrupt and issue HLT
> hypercall. The virtual interrupts can arrive right after CLI instruction
> before switching back to VMM. In such a case, the VMM should return to the
> guest without losing the interrupt. Check if interrupts arrived before the
> TDX module switching to VMM. And return to the guest in such cases.

Pretty sure you mean STI, not CLI.

\
 
 \ /
  Last update: 2022-04-07 17:32    [W:1.624 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site