You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KVM has a set of functions (sync_regs, sync_regs_mut, clear_sync_dirty_regs, clear_sync_valid_regs, set_sync_dirty_regs and set_sync_valid_regs) that cause synchronisation of registers without the need to call get/set regs, this improves performance as it means that extra ioctls are not required to retrieve or set registers.
We should replace get/set regs with the appropriate sync functions
IIRC most of the MSHV exit types also copy the registers into userspace as part of the HV exit message, so we don't even need an ioctl at all in some cases.
Activity
danbugs commentedon Mar 26, 2025
MSHV has an equivalent API for this too now.
syntactically commentedon Mar 27, 2025
IIRC most of the MSHV exit types also copy the registers into userspace as part of the HV exit message, so we don't even need an ioctl at all in some cases.
ludfjig commentedon Sep 22, 2026
I implemented this and compared to main using
guest_calls/call/*benchmarks, but showed no perf improvement whatsoever. Closing this for now