diff options
Diffstat (limited to 'src/cpu/kvm/base.cc')
-rw-r--r-- | src/cpu/kvm/base.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc index 6ea99ce4a..d0f7515de 100644 --- a/src/cpu/kvm/base.cc +++ b/src/cpu/kvm/base.cc @@ -1147,10 +1147,9 @@ BaseKvmCPU::doMMIOAccess(Addr paddr, void *data, int size, bool write) delete pkt; return clockPeriod() * ipr_delay; } else { - // Temporarily lock and migrate to the event queue of the - // VM. This queue is assumed to "own" all devices we need to - // access if running in multi-core mode. - EventQueue::ScopedMigration migrate(vm.eventQueue()); + // Temporarily lock and migrate to the device event queue to + // prevent races in multi-core mode. + EventQueue::ScopedMigration migrate(deviceEventQueue()); return dataPort.submitIO(pkt); } |