现在的位置: 首页 > 综合 > 正文

vbox 重要结构

2017年12月16日 ⁄ 综合 ⁄ 共 761字 ⁄ 字号 评论关闭

\include\VBox\vmm\vm.h

//Per virtual CPU data

typedef struct VMCPU {...}VMCPU;

 

/** This is the VM structure.
 *
 * It contains (nearly?) all the VM data which have to be available in all
 * contexts. Even if it contains all the data the idea is to use APIs not
 * to modify all the members all around the place. Therefore we make use of
 * unions to hide everything which isn't local to the current source module.
 * This means we'll have to pay a little bit of attention when adding new
 * members to structures in the unions and make sure to keep the padding sizes
 * up to date.
 *
 * Run tstVMStructSize after update!
 */

typedef struct VM {...}VM;

 

src\VBox\VMM\include\HWACCMInternal.h

/**
 * HWACCM VM Instance data.
 * Changes to this must checked against the padding of the cfgm union in VM!
 */
typedef struct HWACCM{..}HWACCM;

/**
 * HWACCM VMCPU Instance data.
 */
typedef struct HWACCMCPU{..}HWACCMCPU;

【上篇】
【下篇】

抱歉!评论已关闭.