aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/kvm.h
diff options
context:
space:
mode:
authorChenyi Qiang <chenyi.qiang@intel.com>2020-11-06 17:03:13 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-04 05:27:21 -0500
commit15aad3be9adb3fb7fba84190a2ce57d66e8b51da (patch)
tree26e27923e0e83b4639ebb41ee3f8d777641dfa8f /include/uapi/linux/kvm.h
parentKVM: VMX: Convert vcpu_vmx.exit_reason to a union (diff)
downloadlinux-dev-15aad3be9adb3fb7fba84190a2ce57d66e8b51da.tar.xz
linux-dev-15aad3be9adb3fb7fba84190a2ce57d66e8b51da.zip
KVM: X86: Reset the vcpu->run->flags at the beginning of vcpu_run
Reset the vcpu->run->flags at the beginning of kvm_arch_vcpu_ioctl_run. It can avoid every thunk of code that needs to set the flag clear it, which increases the odds of missing a case and ending up with a flag in an undefined state. Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com> Message-Id: <20201106090315.18606-3-chenyi.qiang@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi/linux/kvm.h')
0 files changed, 0 insertions, 0 deletions