mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 19:00:16 +00:00
HV: refine is_lapic_pt
- Do not refer vm_configs[] directly in vm module; Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -244,10 +244,7 @@ uint16_t get_vm_pcpu_nums(const struct acrn_vm_config *vm_config);
|
||||
void vrtc_init(struct acrn_vm *vm);
|
||||
#endif
|
||||
|
||||
static inline bool is_lapic_pt(const struct acrn_vm *vm)
|
||||
{
|
||||
return ((vm_configs[vm->vm_id].guest_flags & LAPIC_PASSTHROUGH) != 0U);
|
||||
}
|
||||
bool is_lapic_pt(const struct acrn_vm *vm);
|
||||
|
||||
#endif /* !ASSEMBLER */
|
||||
|
||||
|
Reference in New Issue
Block a user