sim, kvm: make KvmVM a System parameter
Review Request #3785 - Created Jan. 17, 2017 and submitted
| Information | |
|---|---|
| Curtis Dunham | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
sim, kvm: make KvmVM a System parameter
A KVM VM is typically a child of the System object already, but for
solving future issues with configuration graph resolution, the most
logical way to keep track of this object is for it to be an actual
parameter of the System object.Change-Id: I965ded22203ff8667db9ca02de0042ff1c772220
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Is there any way you can remove the #if USE_KVM from the system.cc file? I don't have any suggestions off the top of my head, though.
Ship It!
-
src/sim/system.cc (Diff revision 1) -
It seems we don't need #if here, p->kvm_vm will be nullptr in case there is no initialization from python. Right?
-
src/sim/system.cc (Diff revision 1) -
Sorry, I should have been more specific. I meant by not conditioning System.kvm_vm by USE_KVM in System.py and have it be nullptr if KVM is not present we can get rid of some #if USE_KVM in the C++ code.
Ship It!
