summaryrefslogtreecommitdiff
path: root/src/cpu/kvm/vm.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/kvm/vm.hh')
-rw-r--r--src/cpu/kvm/vm.hh11
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;