X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_config.c;h=5e0defc3558cc5c8bc29edee698002ea0349defb;hb=623de2de1c4a31c29975867343b7a78962094fee;hp=40671608ef9df923e524e3ed5fbfd41a6742f183;hpb=e0519b6111165e0d99987d7f852875366c41bfd9;p=palacios-OLD.git diff --git a/palacios/src/palacios/vmm_config.c b/palacios/src/palacios/vmm_config.c index 4067160..5e0defc 100644 --- a/palacios/src/palacios/vmm_config.c +++ b/palacios/src/palacios/vmm_config.c @@ -24,6 +24,7 @@ #include #include #include +#include #include @@ -37,6 +38,7 @@ #include #include #include +#include @@ -84,6 +86,9 @@ int v3_config_guest(struct guest_info * info, struct v3_vm_config * config_ptr) v3_init_shadow_map(info); + v3_init_hypercall_map(info); + + if (v3_cpu_type == V3_SVM_REV3_CPU) { info->shdw_pg_mode = NESTED_PAGING; } else { @@ -166,7 +171,7 @@ static int setup_memory_map(struct guest_info * info, struct v3_vm_config * conf // v3_add_shadow_mem(info, 0x0, 0x9ffff, (addr_t)V3_AllocPages(160)); - if (0) { + if (1) { v3_add_shadow_mem(info, 0xa0000, 0xbffff, 0xa0000); } else { v3_hook_write_mem(info, 0xa0000, 0xbffff, 0xa0000, passthrough_mem_write, NULL); @@ -219,6 +224,7 @@ static int setup_devices(struct guest_info * info, struct v3_vm_config * config_ struct vm_device * bochs_debug = v3_create_bochs_debug(); struct vm_device * os_debug = v3_create_os_debug(); struct vm_device * apic = v3_create_apic(); + struct vm_device * ioapic = v3_create_io_apic(apic); //struct vm_device * serial = v3_create_serial(); struct vm_device * generic = NULL; @@ -249,6 +255,7 @@ static int setup_devices(struct guest_info * info, struct v3_vm_config * config_ v3_attach_device(info, os_debug); v3_attach_device(info, apic); + v3_attach_device(info, ioapic); if (use_ramdisk) { v3_attach_device(info, ramdisk);