Thread (40 messages) 40 messages, 8 authors, 2024-11-20

Re: [PATCH v1 4/5] KVM: Introduce KVM_EXIT_COCO exit type

From: Sean Christopherson <seanjc@google.com>
Date: 2024-10-28 18:20:23
Also in: kvm, lkml

On Fri, Sep 13, 2024, Dionna Amalie Glaze wrote:
We can extend the ccp driver to, on extended guest request, lock the
command buffer, get the REPORTED_TCB, complete the request, unlock the
command buffer, and return both the response and the REPORTED_TCB at
the time of the request. 
Holding a lock across an exit to userspace seems wildly unsafe.

Can you explain the race that you are trying to close, with the exact "bad" sequence
of events laid out in chronological order, and an explanation of why the race can't
be sovled in userspace?  I read through your previous comment[*] (which I assume
is the race you want to close?), but I couldn't quite piece together exactly what's
broken.

[*] https://lore.kernel.org/all/CAAH4kHb03Una2kcvyC3W=1ZfANBWF_7a7zsSmWhr_r9g3rCDZw@mail.gmail.com (local)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help