mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv:Move several inline APIs from vm.h to *.c
-- move vm_pic() from vm.h to vpic.c since it is
only used in vpic.c
-- move vm_ioapic() from vm.h to vioapic.c
change vioapic_reset(struct acrn_vioapic *vioapic) -->
vioapic_reset(struct acrn_vm *vm)
then vm_vioapic() is only used in vioapic.c
-- move vm_vuart() from vm.h to vuart.c,
now this api is used in vuart.c and shell.c
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -60,7 +60,7 @@ struct acrn_vioapic {
|
||||
};
|
||||
|
||||
void vioapic_init(struct acrn_vm *vm);
|
||||
void vioapic_reset(struct acrn_vioapic *vioapic);
|
||||
void vioapic_reset(struct acrn_vm *vm);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -272,24 +272,6 @@ static inline struct acrn_vcpu *get_primary_vcpu(struct acrn_vm *vm)
|
||||
return target_vcpu;
|
||||
}
|
||||
|
||||
static inline struct acrn_vuart*
|
||||
vm_vuart(struct acrn_vm *vm)
|
||||
{
|
||||
return &(vm->vuart);
|
||||
}
|
||||
|
||||
static inline struct acrn_vpic *
|
||||
vm_pic(const struct acrn_vm *vm)
|
||||
{
|
||||
return (struct acrn_vpic *)&(vm->arch_vm.vpic);
|
||||
}
|
||||
|
||||
static inline struct acrn_vioapic *
|
||||
vm_ioapic(const struct acrn_vm *vm)
|
||||
{
|
||||
return (struct acrn_vioapic *)&(vm->arch_vm.vioapic);
|
||||
}
|
||||
|
||||
int32_t shutdown_vm(struct acrn_vm *vm);
|
||||
void pause_vm(struct acrn_vm *vm);
|
||||
void resume_vm(struct acrn_vm *vm);
|
||||
|
||||
Reference in New Issue
Block a user