1/*
2 * Copyright (c) 2012, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
--- 344 unchanged lines hidden (view full) ---
353
354DrainState
355BaseKvmCPU::drain()
356{
357 if (switchedOut())
358 return DrainState::Drained;
359
360 DPRINTF(Drain, "BaseKvmCPU::drain\n");
361 switch (_status) {
362 case Running:
363 // The base KVM code is normally ready when it is in the
364 // Running state, but the architecture specific code might be
365 // of a different opinion. This may happen when the CPU been
366 // notified of an event that hasn't been accepted by the vCPU
367 // yet.
368 if (!archIsDrained())
--- 1025 unchanged lines hidden ---
2 * Copyright (c) 2012, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software
--- 344 unchanged lines hidden (view full) ---
353
354DrainState
355BaseKvmCPU::drain()
356{
357 if (switchedOut())
358 return DrainState::Drained;
359
360 DPRINTF(Drain, "BaseKvmCPU::drain\n");
361 switch (_status) {
362 case Running:
363 // The base KVM code is normally ready when it is in the
364 // Running state, but the architecture specific code might be
365 // of a different opinion. This may happen when the CPU been
366 // notified of an event that hasn't been accepted by the vCPU
367 // yet.
368 if (!archIsDrained())
--- 1025 unchanged lines hidden ---