acrn-hypervisor/hypervisor/include/arch/x86/guest/mptable.h
Xiangyang Wu 99586e32cc HV:treewide:rename vm data structure
For data structure types "struct vm", its name is identical
with variable name in the same scope. This is a MISRA C  violation.

Naming convention rule:If the data structure type is used by multi
modules, its corresponding logic resource is exposed to external
components (such as SOS, UOS), and its name meaning is simplistic
(such as vcpu, vm), its name needs prefix "acrn_".

The following udpates are made:
struct vm *vm-->struct acrn_vm *vm

Tracked-On: #861

Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
2018-11-05 15:35:49 +08:00

32 lines
714 B
C

/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/************************************************************************
*
* FILE NAME
*
* mptable.h
*
* DESCRIPTION
*
* This file defines API and extern variable for VM mptable info
*
************************************************************************/
/**********************************/
/* EXTERNAL VARIABLES */
/**********************************/
#ifndef MPTABLE_H
#define MPTABLE_H
struct mptable_info;
extern struct mptable_info mptable_vm1;
extern struct mptable_info mptable_vm2;
int mptable_build(struct acrn_vm *vm);
#endif /* MPTABLE_H */