Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compile error in vmcs.c.
Commentout ddb command that I couldn't fix its compile error.
  • Loading branch information
masami256 committed Jul 3, 2012
1 parent c258bc4 commit ae6f116
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sys/platform/pc64/vmm/intel/vmcs.c
Expand Up @@ -33,11 +33,11 @@

#include <sys/param.h>
#include <sys/systm.h>
#include <sys/pcpu.h>

#include <vm/vm.h>
#include <vm/pmap.h>

#include <machine/thread.h>
#include <machine/segments.h>
#include <machine/pmap.h>

Expand Down Expand Up @@ -406,7 +406,7 @@ vmcs_set_defaults(struct vmcs *vmcs,
if ((error = vmwrite(VMCS_HOST_FS_BASE, 0)) != 0)
goto done;

if ((error = vmwrite(VMCS_HOST_IDTR_BASE, r_idt.rd_base)) != 0)
if ((error = vmwrite(VMCS_HOST_IDTR_BASE, r_idt_arr[mycpuid].rd_base)) != 0)
goto done;

/* instruction pointer */
Expand Down Expand Up @@ -458,13 +458,13 @@ vmcs_read(uint32_t encoding)

#ifdef DDB
extern int vmxon_enabled[];

#if 0
DB_SHOW_COMMAND(vmcs, db_show_vmcs)
{
uint64_t cur_vmcs, val;
uint32_t exit;

if (!vmxon_enabled[curcpu]) {
if (!vmxon_enabled[mycpuid]) {
db_printf("VMX not enabled\n");
return;
}
Expand Down Expand Up @@ -545,3 +545,4 @@ DB_SHOW_COMMAND(vmcs, db_show_vmcs)
db_printf("VM-instruction error: %#lx\n", vmcs_instruction_error());
}
#endif
#endif

0 comments on commit ae6f116

Please sign in to comment.