summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/kvm
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-07-22 23:21:21 +0000
committergVisor bot <gvisor-bot@google.com>2019-07-22 23:21:21 +0000
commit88d2090454461e5ef762de803fd96d6412faa254 (patch)
tree9ba80b5a6ba404cfc2d40782c36243c64ad7e971 /pkg/sentry/platform/kvm
parent19c15720f7c7b13efa97c2458df95a5ff3fea2dc (diff)
parentd706922d788a1bbc9f1c917af1a08ca86488aab0 (diff)
Merge d706922d (automated)
Diffstat (limited to 'pkg/sentry/platform/kvm')
-rw-r--r--pkg/sentry/platform/kvm/machine.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/platform/kvm/machine.go b/pkg/sentry/platform/kvm/machine.go
index 679087e25..cc6c138b2 100644
--- a/pkg/sentry/platform/kvm/machine.go
+++ b/pkg/sentry/platform/kvm/machine.go
@@ -388,7 +388,10 @@ func (m *machine) Get() *vCPU {
func (m *machine) Put(c *vCPU) {
c.unlock()
runtime.UnlockOSThread()
+
+ m.mu.RLock()
m.available.Signal()
+ m.mu.RUnlock()
}
// newDirtySet returns a new dirty set.