mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
HV: prototyping non-static function
Includes header file of non-static function, and declare the in-file use function static. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#include <hypervisor.h>
|
||||
#include <reboot.h>
|
||||
|
||||
int warm_reboot(void)
|
||||
{
|
||||
|
@@ -44,7 +44,7 @@ static uint64_t find_next_table(uint32_t table_offset, void *table_base)
|
||||
return sub_table_addr;
|
||||
}
|
||||
|
||||
void free_ept_mem(void *pml4_addr)
|
||||
static void free_ept_mem(void *pml4_addr)
|
||||
{
|
||||
void *pdpt_addr;
|
||||
void *pde_addr;
|
||||
|
@@ -189,7 +189,8 @@ static void pm1ab_io_write(__unused struct vm_io_handler *hdlr,
|
||||
io_write(v, addr, width);
|
||||
}
|
||||
|
||||
void register_gas_io_handler(struct vm *vm, struct acpi_generic_address *gas)
|
||||
static void
|
||||
register_gas_io_handler(struct vm *vm, struct acpi_generic_address *gas)
|
||||
{
|
||||
uint8_t io_len[5] = {0, 1, 2, 4, 8};
|
||||
struct vm_io_range gas_io;
|
||||
|
@@ -62,7 +62,7 @@ static inline const char *pinstate_str(bool asserted)
|
||||
return (asserted) ? "asserted" : "deasserted";
|
||||
}
|
||||
|
||||
struct vioapic *
|
||||
static struct vioapic *
|
||||
vm_ioapic(struct vm *vm)
|
||||
{
|
||||
return (struct vioapic *)vm->arch_vm.virt_ioapic;
|
||||
|
@@ -35,6 +35,7 @@
|
||||
#include "instr_emul.h"
|
||||
|
||||
#include "vlapic_priv.h"
|
||||
#include "vlapic.h"
|
||||
|
||||
#define VLAPIC_VERBOS 0
|
||||
#define PRIO(x) ((x) >> 4)
|
||||
@@ -1709,7 +1710,7 @@ vlapic_enabled(struct vlapic *vlapic)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
vlapic_set_tmr(struct vlapic *vlapic, uint32_t vector, bool level)
|
||||
{
|
||||
struct lapic_regs *lapic;
|
||||
@@ -1739,7 +1740,7 @@ vlapic_apicv_batch_set_tmr(struct vlapic *vlapic)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
vlapic_apicv_set_tmr(struct vlapic *vlapic, uint32_t vector, bool level)
|
||||
{
|
||||
if (vlapic->ops.apicv_set_tmr != NULL) {
|
||||
|
@@ -51,7 +51,7 @@ static void enable_msr_interception(uint8_t *bitmap, uint32_t msr)
|
||||
}
|
||||
|
||||
/* not used now just leave it for some cases it may be used as API*/
|
||||
void disable_msr_interception(uint8_t *bitmap, uint32_t msr)
|
||||
static void disable_msr_interception(uint8_t *bitmap, uint32_t msr)
|
||||
{
|
||||
uint8_t *read_map;
|
||||
uint8_t *write_map;
|
||||
|
@@ -929,7 +929,7 @@ static void vpic_elc_io_write(__unused struct vm_io_handler *hdlr,
|
||||
}
|
||||
}
|
||||
|
||||
void vpic_register_io_handler(struct vm *vm)
|
||||
static void vpic_register_io_handler(struct vm *vm)
|
||||
{
|
||||
struct vm_io_range master_range = {
|
||||
.flags = IO_ATTR_RW,
|
||||
|
@@ -407,7 +407,7 @@ void setup_ioapic_irq(void)
|
||||
ASSERT(nr_gsi <= NR_MAX_GSI, "GSI table overflow");
|
||||
}
|
||||
|
||||
void dump_ioapic(void)
|
||||
static void dump_ioapic(void)
|
||||
{
|
||||
uint32_t irq;
|
||||
|
||||
@@ -457,7 +457,7 @@ void resume_ioapic(void)
|
||||
}
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
void get_rte_info(struct ioapic_rte *rte, bool *mask, bool *irr,
|
||||
static void get_rte_info(struct ioapic_rte *rte, bool *mask, bool *irr,
|
||||
bool *phys, uint32_t *delmode, bool *level, uint32_t *vector, uint32_t *dest)
|
||||
{
|
||||
*mask = ((rte->lo_32 & IOAPIC_RTE_INTMASK) == IOAPIC_RTE_INTMSET);
|
||||
|
@@ -398,7 +398,7 @@ void dispatch_exception(struct intr_excp_ctx *ctx)
|
||||
cpu_dead(pcpu_id);
|
||||
}
|
||||
|
||||
void handle_spurious_interrupt(uint32_t vector)
|
||||
static void handle_spurious_interrupt(uint32_t vector)
|
||||
{
|
||||
send_lapic_eoi();
|
||||
|
||||
|
@@ -61,7 +61,7 @@ void setup_notification(void)
|
||||
dev_to_vector(notification_node));
|
||||
}
|
||||
|
||||
void cleanup_notification(void)
|
||||
static void cleanup_notification(void)
|
||||
{
|
||||
if (notification_node != NULL)
|
||||
unregister_handler_common(notification_node);
|
||||
|
@@ -246,7 +246,7 @@ void exec_vmwrite64(unsigned int field_full, uint64_t value)
|
||||
asm volatile ("movw %%cs, %%ax" : "=a"(sel)); \
|
||||
}
|
||||
|
||||
uint32_t get_cs_access_rights(void)
|
||||
static uint32_t get_cs_access_rights(void)
|
||||
{
|
||||
uint32_t usable_ar;
|
||||
uint16_t sel_value;
|
||||
|
Reference in New Issue
Block a user