KVM: x86: Introduce KVM_GET_SREGS2 / KVM_SET_SREGS2
This is a new version of KVM_GET_SREGS / KVM_SET_SREGS. It has the following changes: * Has flags for future extensions * Has vcpu's PDPTRs, allowing to save/restore them on migration. * Lacks obsolete interrupt bitmap (done now via KVM_SET_VCPU_EVENTS) New capability, KVM_CAP_SREGS2 is added to signal the userspace of this ioctl. Signed-off-by:Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20210607090203.133058-8-mlevitsk@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- Documentation/virt/kvm/api.rst 48 additions, 0 deletionsDocumentation/virt/kvm/api.rst
- arch/x86/include/uapi/asm/kvm.h 13 additions, 0 deletionsarch/x86/include/uapi/asm/kvm.h
- arch/x86/kvm/kvm_cache_regs.h 5 additions, 0 deletionsarch/x86/kvm/kvm_cache_regs.h
- arch/x86/kvm/x86.c 115 additions, 27 deletionsarch/x86/kvm/x86.c
- include/uapi/linux/kvm.h 4 additions, 0 deletionsinclude/uapi/linux/kvm.h
Loading
Please register or sign in to comment