From: Jack Lange Date: Wed, 4 Feb 2009 04:29:29 +0000 (-0600) Subject: changed to error output X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=bce4e326ef3e3e9f9a0bd2fd06254c0d8edb8437 changed to error output --- diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index 653643f..86424e9 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -462,7 +462,7 @@ int v3_is_svm_capable() { v3_cpuid(CPUID_FEATURE_IDS, &eax, &ebx, &ecx, &edx); - PrintDebug("CPUID_FEATURE_IDS_ecx=0x%p\n", (void *)ecx); + PrintDebug("CPUID_FEATURE_IDS_ecx=%p\n", (void *)ecx); if ((ecx & CPUID_FEATURE_IDS_ecx_svm_avail) == 0) { PrintDebug("SVM Not Available\n"); @@ -477,7 +477,7 @@ int v3_is_svm_capable() { v3_cpuid(CPUID_SVM_REV_AND_FEATURE_IDS, &eax, &ebx, &ecx, &edx); - PrintDebug("CPUID_FEATURE_IDS_edx=0x%p\n", (void *)edx); + PrintDebug("CPUID_FEATURE_IDS_edx=%p\n", (void *)edx); if ((edx & CPUID_SVM_REV_AND_FEATURE_IDS_edx_svml) == 0) { PrintDebug("SVM BIOS Disabled, not unlockable\n"); @@ -490,8 +490,11 @@ int v3_is_svm_capable() { PrintDebug("SVM is available and enabled.\n"); v3_cpuid(CPUID_SVM_REV_AND_FEATURE_IDS, &eax, &ebx, &ecx, &edx); - - PrintDebug("CPUID_FEATURE_IDS_edx=0x%p\n", (void *)edx); + PrintDebug("CPUID_FEATURE_IDS_eax=%p\n", (void *)eax); + PrintDebug("CPUID_FEATURE_IDS_ebx=%p\n", (void *)ebx); + PrintDebug("CPUID_FEATURE_IDS_ecx=%p\n", (void *)ecx); + PrintDebug("CPUID_FEATURE_IDS_edx=%p\n", (void *)edx); + if ((edx & CPUID_SVM_REV_AND_FEATURE_IDS_edx_np) == 0) { PrintDebug("SVM Nested Paging not supported\n"); diff --git a/palacios/src/palacios/svm_handler.c b/palacios/src/palacios/svm_handler.c index 893f49c..68bb240 100644 --- a/palacios/src/palacios/svm_handler.c +++ b/palacios/src/palacios/svm_handler.c @@ -387,39 +387,6 @@ int v3_handle_svm_exit(struct guest_info * info) { PrintError("io_info2 high = 0x%.8x\n", *(uint_t *)(((uchar_t *)&(guest_ctrl->exit_info2)) + 4)); - - if (info->mem_mode == PHYSICAL_MEM) { - if (guest_pa_to_host_va(info, guest_state->rip, &host_addr) == -1) { - PrintError("Could not translate guest_state->rip to host address\n"); - return -1; - } - } else if (info->mem_mode == VIRTUAL_MEM) { - if (guest_va_to_host_va(info, guest_state->rip, &host_addr) == -1) { - PrintError("Could not translate guest_state->rip to host address\n"); - return -1; - } - } else { - PrintError("Invalid memory mode\n"); - return -1; - } - - PrintError("Host Address of rip = 0x%p\n", (void *)host_addr); - - memset(buf, 0, 32); - - PrintError("Reading instruction stream in guest (addr=%p)\n", (void *)rip_addr); - - if (info->mem_mode == PHYSICAL_MEM) { - read_guest_pa_memory(info, rip_addr - 16, 32, buf); - } else { - read_guest_va_memory(info, rip_addr - 16, 32, buf); - } - - PrintDebug("16 bytes before Rip\n"); - PrintTraceMemDump(buf, 16); - PrintDebug("Rip onward\n"); - PrintTraceMemDump(buf+16, 16); - return -1; }