]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 259737, 262646:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 May 2014 04:33:24 +0000 (04:33 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 May 2014 04:33:24 +0000 (04:33 +0000)
commit6add7a16dbebfb6d7f61be8edb10b966f48c5fb5
treec325b0c1bd8da28081e6b2811566135735b388c8
parent796dafb5eb47597d82a39c3e66d392a6f3ed940c
MFC 259737, 262646:
Fix a couple of issues with vcpu state:
- Add a parameter to 'vcpu_set_state()' to enforce that the vcpu is in the
  IDLE state before the requested state transition. This guarantees that
  there is exactly one ioctl() operating on a vcpu at any point in time and
  prevents unintended state transitions.
- Fix a race between VMRUN() and vcpu_notify_event() due to 'vcpu->hostcpu'
  being updated outside of the vcpu_lock().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/include/vmm.h
sys/amd64/vmm/vmm.c
sys/amd64/vmm/vmm_dev.c
usr.sbin/bhyve/bhyverun.c