X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_config.c;h=7ec24c62af302811dd77de12a786e5a00bf6318c;hb=82b8b87c344fcd1eab22e3f3be5ad54cbb3f8f68;hp=5bfe537350a43e5a4deef2bba5f550eabd602ac7;hpb=e23a867d9dcecc70fc76adc0f89404dbc50e5b78;p=palacios.git diff --git a/palacios/src/palacios/vmm_config.c b/palacios/src/palacios/vmm_config.c index 5bfe537..7ec24c6 100644 --- a/palacios/src/palacios/vmm_config.c +++ b/palacios/src/palacios/vmm_config.c @@ -97,12 +97,14 @@ int v3_pre_config_guest(struct guest_info * info, struct v3_vm_config * config_p info->shdw_pg_mode = SHADOW_PAGING; } +#ifdef CONFIG_PROFILE_VMM if (config_ptr->enable_profiling) { info->enable_profiler = 1; v3_init_profiler(info); } else { info->enable_profiler = 0; } +#endif if (config_ptr->schedule_freq == 0) { // set the schedule frequency to 100 HZ @@ -176,14 +178,20 @@ static int setup_memory_map(struct guest_info * info, struct v3_vm_config * conf /* layout vgabios */ { + extern uint8_t v3_vgabios_start[]; + extern uint8_t v3_vgabios_end[]; + addr_t vgabios_dst = v3_get_shadow_addr(&(info->mem_map.base_region), VGABIOS_START); - memcpy(V3_VAddr((void *)vgabios_dst), config_ptr->vgabios, config_ptr->vgabios_size); + memcpy(V3_VAddr((void *)vgabios_dst), v3_vgabios_start, v3_vgabios_end - v3_vgabios_start); } /* layout rombios */ { + extern uint8_t v3_rombios_start[]; + extern uint8_t v3_rombios_end[]; + addr_t rombios_dst = v3_get_shadow_addr(&(info->mem_map.base_region), ROMBIOS_START); - memcpy(V3_VAddr((void *)rombios_dst), config_ptr->rombios, config_ptr->rombios_size); + memcpy(V3_VAddr((void *)rombios_dst), v3_rombios_start, v3_rombios_end - v3_rombios_start); } #ifdef CRAY_XT @@ -226,10 +234,12 @@ static int setup_devices(struct guest_info * info, struct v3_vm_config * config_ v3_create_device(info, "PIIX3", "PCI"); + v3_create_device(info, "LNX_VIRTIO_SYM", "PCI"); v3_create_device(info, "LNX_VIRTIO_BLK", "PCI"); v3_create_device(info, "LNX_VIRTIO_BALLOON", "PCI"); v3_create_device(info, "SYM_SWAP", "LNX_VIRTIO_BLK"); + v3_create_device(info, "IDE", &ide_config); } else { v3_create_device(info, "IDE", NULL);