[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yk76Yd2VTmONGA8H@google.com>
Date: Thu, 7 Apr 2022 14:51:13 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: isaku.yamahata@...el.com
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
isaku.yamahata@...il.com, Paolo Bonzini <pbonzini@...hat.com>,
Jim Mattson <jmattson@...gle.com>, erdemaktas@...gle.com,
Connor Kuehl <ckuehl@...hat.com>
Subject: Re: [RFC PATCH v5 092/104] KVM: TDX: Handle TDX PV HLT hypercall
On Fri, Mar 04, 2022, isaku.yamahata@...el.com wrote:
> From: Isaku Yamahata <isaku.yamahata@...el.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.
Powered by blists - more mailing lists