summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2014-03-01 03:17:58 +0000
committerneel <neel@FreeBSD.org>2014-03-01 03:17:58 +0000
commit4e6374765e21c44d489f2462699675f7d5f3667f (patch)
tree22228d63debc444bf53dde332100a6cc58b0467b /usr.bin
parent74725c830c962ae630f7495d398ce9c2e633204c (diff)
downloadFreeBSD-src-4e6374765e21c44d489f2462699675f7d5f3667f.zip
FreeBSD-src-4e6374765e21c44d489f2462699675f7d5f3667f.tar.gz
Fix a race between VMRUN() and vcpu_notify_event() due to 'vcpu->hostcpu'
being updated outside of the vcpu_lock(). The race is benign and could potentially result in a missed notification about a pending interrupt to a vcpu. The interrupt would not be lost but rather delayed until the next VM exit. The vcpu's hostcpu is now updated concurrently with the vcpu state change. When the vcpu transitions to the RUNNING state the hostcpu is set to 'curcpu'. It is set to 'NOCPU' in all other cases. Reviewed by: grehan
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud