cpu-kvm: Fix missing includes
"struct kvm_*" are declared in linux/kvm.h, and were not being included nor forward declared in the header file were it was being used. Change-Id: I511bad19882450f8ecdd6b5efb687026d0fd94ca Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/46321 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
cc8a1138c7
commit
9ccd814418
@@ -55,6 +55,13 @@
|
||||
/** Signal to use to trigger exits from KVM */
|
||||
#define KVM_KICK_SIGNAL SIGRTMIN
|
||||
|
||||
struct kvm_coalesced_mmio_ring;
|
||||
struct kvm_fpu;
|
||||
struct kvm_interrupt;
|
||||
struct kvm_regs;
|
||||
struct kvm_run;
|
||||
struct kvm_sregs;
|
||||
|
||||
// forward declarations
|
||||
class ThreadContext;
|
||||
struct BaseKvmCPUParams;
|
||||
|
||||
@@ -44,6 +44,11 @@
|
||||
#include "base/addr_range.hh"
|
||||
#include "sim/sim_object.hh"
|
||||
|
||||
struct kvm_cpuid_entry2;
|
||||
struct kvm_cpuid2;
|
||||
struct kvm_msr_list;
|
||||
struct kvm_vcpu_init;
|
||||
|
||||
// forward declarations
|
||||
struct KvmVMParams;
|
||||
class BaseKvmCPU;
|
||||
|
||||
@@ -29,10 +29,19 @@
|
||||
#ifndef __CPU_KVM_X86_CPU_HH__
|
||||
#define __CPU_KVM_X86_CPU_HH__
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "cpu/kvm/base.hh"
|
||||
#include "cpu/kvm/vm.hh"
|
||||
#include "params/X86KvmCPU.hh"
|
||||
|
||||
struct kvm_debugregs;
|
||||
struct kvm_msr_entry;
|
||||
struct kvm_msrs;
|
||||
struct kvm_vcpu_events;
|
||||
struct kvm_xcrs;
|
||||
struct kvm_xsave;
|
||||
|
||||
/**
|
||||
* x86 implementation of a KVM-based hardware virtualized CPU.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user