This patch set adds KVM_CAP_SYNC_REGS functionality for x86. Changes from v2 <https://patchwork.kernel.org/patch/10161941/> - v3 splits v2 changes into two separate patches, moving SYNC_REGS_SIZE_BYTES #define change to its own patch. - Refactors kvm_arch_vcpu_ioctl_set_{regs,sregs} to avoid redundant calls to both vcpu_load and vcpu_put in their usage by sync regs code. Please see the individual patches for details. Ken Hofsass (2): KVM: x86: add SYNC_REGS_SIZE_BYTES #define. KVM: x86: KVM_CAP_SYNC_REGS Documentation/virtual/kvm/api.txt | 42 ++++++++++++++- arch/x86/include/uapi/asm/kvm.h | 20 ++++++- arch/x86/kvm/x86.c | 108 ++++++++++++++++++++++++++++++++------ include/uapi/linux/kvm.h | 6 ++- 4 files changed, 158 insertions(+), 18 deletions(-) -- 2.16.0.rc1.238.g530d649a79-goog