Thread (97 messages) 97 messages, 6 authors, 2025-11-19

Re: [PATCH v3 23/25] KVM: TDX: Use guard() to acquire kvm->lock in tdx_vm_ioctl()

From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Date: 2025-10-21 00:10:08
Also in: kvm, kvm-riscv, kvmarm, linux-arm-kernel, linux-coco, linux-mips, linux-riscv, lkml, loongarch

On Thu, 2025-10-16 at 17:32 -0700, Sean Christopherson wrote:
Use guard() in tdx_vm_ioctl() to tidy up the code a small amount, but more
importantly to minimize the diff of a future change, which will use
guard-like semantics to acquire and release multiple locks.

No functional change intended.
There is a tiny functional change. In the default case it no longer re-copies
the struct back to userspace.
Signed-off-by: Sean Christopherson <seanjc@google.com>
---
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help