mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-27 23:15:00 +00:00
hv: remove unused MACROs
MISRA-C states that redundant macros reduce the maintainability of code. In some cases, we would like to keep the current unused macros for code completeness, such as cpu registers. These macros might be used later. This patch removes some unused macros that is not critical for code completeness. v1 -> v2: * Keep TRUSTY_VERSION in trusty.c. Yadong will cook another patch which will utilize TRUSTY_VERSION. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -66,11 +66,6 @@
|
||||
(HOST_GDT_RING0_CPU_TSS_SEL + \
|
||||
(HOST_GDT_RING0_TSS_SELECTORS * X64_TSS_DESC_SIZE))
|
||||
|
||||
/* Defined position of Interrupt Stack Tables */
|
||||
#define MACHINE_CHECK_IST (0x1)
|
||||
#define DOUBLE_FAULT_IST (0x2)
|
||||
#define STACK_FAULT_IST (0x3)
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
#include <types.h>
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
|
||||
#define ACRN_VCPU_MMIO_COMPLETE (0U)
|
||||
|
||||
/* Size of various elements within the VCPU structure */
|
||||
#define REG_SIZE 8
|
||||
|
||||
/* Number of GPRs saved / restored for guest in VCPU structure */
|
||||
#define NUM_GPRS 16U
|
||||
#define GUEST_STATE_AREA_SIZE 512
|
||||
|
||||
@@ -18,7 +18,6 @@ enum vm_privilege_level {
|
||||
VM_PRIVILEGE_LEVEL_LOW
|
||||
};
|
||||
|
||||
#define MAX_VM_NAME_LEN 16
|
||||
#define INVALID_VM_ID 0xffffU
|
||||
|
||||
struct vm_hw_info {
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#ifndef INTR_LAPIC_H
|
||||
#define INTR_LAPIC_H
|
||||
|
||||
#define DEBUG_LAPIC 0
|
||||
|
||||
/* intr_lapic_icr_delivery_mode */
|
||||
#define INTR_LAPIC_ICR_FIXED 0x0U
|
||||
#define INTR_LAPIC_ICR_LP 0x1U
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
/* Trusty EPT rebase gpa: 511G */
|
||||
#define TRUSTY_EPT_REBASE_GPA (511UL * 1024UL * 1024UL * 1024UL)
|
||||
#define TRUSTY_MEMORY_SIZE 0x01000000
|
||||
|
||||
#define NON_TRUSTY_PDPT_ENTRIES 511U
|
||||
|
||||
|
||||
Reference in New Issue
Block a user