modularization: move vMTRR code to guest directory
MTRR emulation belongs to virtual CPU component. - rename mtrr.c to vmtrr.c and move it to arch/x86/guest - rename mtrr.h to vmtrr.h and move it to include/arch/x86/guest Tracked-On: #1842 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
e066774a1c
commit
6bbd0129c3
|
@ -795,10 +795,10 @@ WARN_LOGFILE =
|
|||
INPUT = custom-doxygen/mainpage.md \
|
||||
../hypervisor/include/arch/x86/guest/guest.h \
|
||||
../hypervisor/include/arch/x86/mmu.h \
|
||||
../hypervisor/include/arch/x86/mtrr.h \
|
||||
../hypervisor/include/arch/x86/pgtable.h \
|
||||
../hypervisor/include/arch/x86/vtd.h \
|
||||
../hypervisor/include/arch/x86/irq.h \
|
||||
../hypervisor/include/arch/x86/guest/vmtrr.h \
|
||||
../hypervisor/include/arch/x86/guest/vlapic.h \
|
||||
../hypervisor/include/arch/x86/guest/vioapic.h \
|
||||
../hypervisor/include/arch/x86/guest/vpic.h \
|
||||
|
|
|
@ -154,7 +154,6 @@ C_SRCS += arch/x86/vmx.c
|
|||
C_SRCS += arch/x86/assign.c
|
||||
C_SRCS += arch/x86/trusty.c
|
||||
C_SRCS += arch/x86/cpu_state_tbl.c
|
||||
C_SRCS += arch/x86/mtrr.c
|
||||
C_SRCS += arch/x86/pm.c
|
||||
S_SRCS += arch/x86/wakeup.S
|
||||
C_SRCS += arch/x86/static_checks.c
|
||||
|
@ -163,6 +162,7 @@ C_SRCS += arch/x86/guest/vcpuid.c
|
|||
C_SRCS += arch/x86/guest/vcpu.c
|
||||
C_SRCS += arch/x86/guest/vm.c
|
||||
C_SRCS += arch/x86/guest/vlapic.c
|
||||
C_SRCS += arch/x86/guest/vmtrr.c
|
||||
C_SRCS += arch/x86/guest/guest.c
|
||||
C_SRCS += arch/x86/guest/vmcall.c
|
||||
C_SRCS += arch/x86/guest/vmsr.c
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
/**
|
||||
* @file mtrr.h
|
||||
* @file vmtrr.h
|
||||
*
|
||||
* @brief MTRR Virtualization
|
||||
*/
|
||||
#ifndef MTRR_H
|
||||
#define MTRR_H
|
||||
#ifndef VMTRR_H
|
||||
#define VMTRR_H
|
||||
/**
|
||||
* @brief MTRR Virtualization
|
||||
*
|
||||
|
@ -83,4 +83,4 @@ void init_mtrr(struct acrn_vcpu *vcpu);
|
|||
/**
|
||||
* @}
|
||||
*/
|
||||
#endif /* MTRR_H */
|
||||
#endif /* VMTRR_H */
|
|
@ -16,7 +16,7 @@
|
|||
#include <msr.h>
|
||||
#include <io.h>
|
||||
#include <ioreq.h>
|
||||
#include <mtrr.h>
|
||||
#include <vmtrr.h>
|
||||
#include <timer.h>
|
||||
#include <vlapic.h>
|
||||
#include <vcpu.h>
|
||||
|
|
Loading…
Reference in New Issue