domain create分析
来源:互联网 发布:魔兽2.43数据库 编辑:程序博客网 时间:2024/05/23 20:57
struct domain *domain_create(domid_t dom_id, unsigned int cpu)
分配一个struct domain空间,并初始化此空间
之后执行construct_dom0
int construct_dom0(struct domain *d,
unsigned long guest_start, unsigned long guest_size,
unsigned long image_start, unsigned long image_size,
unsigned long initrd_start, unsigned long initrd_size,
char *cmdline)
模拟器启动参数都保存在domain_addrs[]中,其中domain0的相关属性为:
附domain和domain_addrs的定义
struct domain
{
domid_t domain_id;
shared_info_t *shared_info; /* shared data area */
spinlock_t big_lock;
spinlock_t page_alloc_lock; /* protects all the following fields */
struct list_head page_list; /* linked list, of size tot_pages */
struct list_head xenpage_list; /* linked list, of size xenheap_pages */
unsigned int tot_pages; /* number of pages currently possesed */
unsigned int max_pages; /* maximum value for tot_pages */
unsigned int xenheap_pages; /* # pages allocated from Xen heap */
/* Scheduling. */
int shutdown_code; /* code value from OS (if DOMF_shutdown) */
void *sched_priv; /* scheduler-specific data */
struct domain *next_in_list;
struct domain *next_in_hashbucket;
struct list_head rangesets;
spinlock_t rangesets_lock;
/* Event channel information. */
struct evtchn *evtchn[NR_EVTCHN_BUCKETS];
spinlock_t evtchn_lock;
grant_table_t *grant_table;
/*
* Interrupt to event-channel mappings. Updates should be protected by the
* domain's event-channel spinlock. Read accesses can also synchronise on
* the lock, but races don't usually matter.
*/
#define NR_PIRQS 256 /* Put this somewhere sane! */
u16 pirq_to_evtchn[NR_PIRQS];
u32 pirq_mask[NR_PIRQS/32];
/* I/O capabilities (access to IRQs and memory-mapped I/O). */
struct rangeset *iomem_caps;
struct rangeset *irq_caps;
struct rangeset *dma_caps;
- domain create分析
- Glassfish create domain
- use weblogic wlst create domain
- use WLST to create weblogic domain automatically
- Create Gaussian Filter on Frequency Domain
- java.sql.SQLException: Cannot create com.bookstore.domain.TradeItem 异常
- domain
- domain
- Domain Object :基于业务行为的分析
- Domain Object:基于业务行为的分析
- xen创建guest domain流程分析
- Informatica powercenter8.6安装在win7上,create domain时,报错,infasetup.bat
- DAPM之八:stream domain触发过程分析
- xm create创建DomU源码分析
- xm create创建DomU深层代码分析
- xm create创建DomU深层代码分析
- create as & insert into 语句性能分析
- docker RunC Create 源码简单分析
- 在播放音乐时报PVMFErrNotSupported Prepare failed的解决方法
- 相关子查询中exists后select 加数字的理解
- Jstl 使用简介
- (zt)关于终端和控制台的一些解释
- BMP文件分析
- domain create分析
- pku 3737 UmBasketella
- SATA与PATA接口硬盘的区别
- 如何:将 System::String 转换为标准字符串
- 学习经典 Spring jdbc template
- usb otg
- Windows_Azure云存储,云计算,云服务简介
- 动态图层在ArcGIS 10中的一些改进
- IMP-00058: 遇到 ORACLE 错误 1691