Hi, I am preparing a patch that enables gem5 to run VMs like a hypervisor. I might be able to help if you want to do that... However, as andreas noted it is not possible to simulate different ISAs....
Sent from my iPad On Jun 6, 2013, at 12:03 PM, Andreas Sandberg <[email protected]> wrote: > Hi Mazen, > > On 06/06/2013 08:47 AM, Mazen Ezzeddine wrote: >> >> I am new to Gem5, please advise me about the following issues. Note that I >> am running x86_64 GNU-Linux. >> >> * >> >> Suppose that we are running a guest VM, say ARM_Linux, emulated >> using Gem5. Does the guest OS running inside the VM execute in >> privileged or user mode. > > gem5 itself will execute as a normal user-space application, while the guest > system (ARM Linux in your case) will run in a simulated privileged mode. From > the guest system's point of view, there should be no difference between > executing in gem5 and on real hardware. > > There is currently some work to enable gem5 to use the KVM (hardware > virtualization) infrastructure in Linux to enable faster simulation, which > slightly changes this. However, that shouldn't affect what the guest sees. > >> * >> >> Using Gem5, can I execute *simultaneously* two different VMs (ex. >> ARM_Linux and x86_Linux) on the same host platform. Note that I am >> not concerned about performance of the VMs being executed. > > It is currently not possible to simulate two CPUs of different ISAs using the > same gem5 binary. In practice, that means that you can't simulate a > heterogeneous system with shared memory (e.g., x86+ARM) or even separate > systems with different CPUs in the same simulator instance. That's a > limitation in the way gem5 is currently structured and there is no easy fix. > > //Andreas > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
