diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-06-01 19:44:17 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-06-01 19:44:17 +0100 |
commit | dbfd6effe0e0a620ef0bdbbc9620e43dac622e83 (patch) | |
tree | 77532a2f926f958e731ada4000f5a928833a0e75 /src/cpu/kvm/vm.hh | |
parent | 8e7c0575dc000fdc5b09114f012942b9e52eb303 (diff) | |
download | gem5-dbfd6effe0e0a620ef0bdbbc9620e43dac622e83.tar.xz |
kvm, arm, dev: Add an in-kernel GIC implementation
This changeset adds a GIC implementation that uses the kernel's
built-in support for simulating the interrupt controller. Since there
is currently no support for state transfer between gem5 and the
kernel, the device model does not support serialization and CPU
switching (which would require switching to a gem5-simulated GIC).
Diffstat (limited to 'src/cpu/kvm/vm.hh')
-rw-r--r-- | src/cpu/kvm/vm.hh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cpu/kvm/vm.hh b/src/cpu/kvm/vm.hh index 4710f2447..d21fc2660 100644 --- a/src/cpu/kvm/vm.hh +++ b/src/cpu/kvm/vm.hh @@ -1,6 +1,6 @@ /* * Copyright 2014 Google, Inc. - * Copyright (c) 2012 ARM Limited + * Copyright (c) 2012, 2015 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -386,6 +386,15 @@ class KvmVM : public SimObject */ void freeMemSlot(const MemSlot slot); + /** + * Create an in-kernel device model. + * + * @param type Device type (KVM_DEV_TYPE_xxx) + * @param flags Creation flags (KVM_CREATE_DEVICE_xxx) + * @return Device file descriptor + */ + int createDevice(uint32_t type, uint32_t flags = 0); + /** Global KVM interface */ Kvm kvm; |