diff options
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/kvm/vm.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu/kvm/vm.hh b/src/cpu/kvm/vm.hh index df2e4119a..e122bbf86 100644 --- a/src/cpu/kvm/vm.hh +++ b/src/cpu/kvm/vm.hh @@ -351,6 +351,15 @@ class KvmVM : public SimObject * Is in-kernel IRQ chip emulation enabled? */ bool hasKernelIRQChip() const { return _hasKernelIRQChip; } + + /** + * Tell the VM and VCPUs to use an in-kernel IRQ chip for + * interrupt delivery. + * + * @note This is set automatically if the IRQ chip is created + * using the KvmVM::createIRQChip() API. + */ + void enableKernelIRQChip() { _hasKernelIRQChip = true; } /** @} */ struct MemSlot |