]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/kvm/clock.c
kvmclock: run KVM_KVMCLOCK_CTRL ioctl in vcpu thread
authorYongji Xie <elohimes@gmail.com>
Wed, 11 Jul 2018 13:22:44 +0000 (21:22 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:09:13 +0000 (19:09 +0200)
commit4c3e250627bfa2ed272660d5376ac0f6ff458556
treea7ce7e47d77f97e57cfe98a1f7fb727b9ae4f3e6
parent5ee547bb78a8cb868d68e4b9122b0df5650ed8a7
kvmclock: run KVM_KVMCLOCK_CTRL ioctl in vcpu thread

According to KVM API Documentation, we should only
run vcpu ioctls from the same thread that was used
to create the vcpu. This patch makes KVM_KVMCLOCK_CTRL
ioctl consistent with the Documentation.

No functional change.

Signed-off-by: Yongji Xie <xieyongji@baidu.com>
Signed-off-by: Chai Wen <chaiwen@baidu.com>
Message-Id: <1531315364-2551-1-git-send-email-xieyongji@baidu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Yongji Xie <elohimes@gmail.com>
hw/i386/kvm/clock.c