]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Hoist kvm_dirty_regs check out of sync_regs()
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 2 Jul 2021 22:04:29 +0000 (15:04 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 13:36:37 +0000 (09:36 -0400)
commit89ed6aba9052dad3945b304a54e92b5ddbe024fa
tree86831cae9f16f2c59ce896c97d29442e7f951cc1
parentfd4b3811f0aed18da919daf37781eecca88a6421
KVM: x86: Hoist kvm_dirty_regs check out of sync_regs()

Move the kvm_dirty_regs vs. KVM_SYNC_X86_VALID_FIELDS check out of
sync_regs() and into its sole caller, kvm_arch_vcpu_ioctl_run().  This
allows a future patch to allow synchronizing select state for protected
VMs.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <889017a8d31cea46472e0c64b234ef5919278ed9.1625186503.git.isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c