Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45287
b: refs/heads/master
c: e52de1b
h: refs/heads/master
i:
  45285: cbf5f26
  45283: eb7bc4a
  45279: 9fd85dd
v: v3
  • Loading branch information
Avi Kivity authored and Linus Torvalds committed Jan 6, 2007
1 parent 2cd0755 commit 53183e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37a7d8b046da6254718be1409140cd7bf3126f8f
refs/heads/master: e52de1b8cf85aa2ccaaa253b4397c6d6cc0d4897
12 changes: 9 additions & 3 deletions trunk/drivers/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,21 @@ static u64 vmcs_read64(unsigned long field)
#endif
}

static noinline void vmwrite_error(unsigned long field, unsigned long value)
{
printk(KERN_ERR "vmwrite error: reg %lx value %lx (err %d)\n",
field, value, vmcs_read32(VM_INSTRUCTION_ERROR));
dump_stack();
}

static void vmcs_writel(unsigned long field, unsigned long value)
{
u8 error;

asm volatile (ASM_VMX_VMWRITE_RAX_RDX "; setna %0"
: "=q"(error) : "a"(value), "d"(field) : "cc" );
if (error)
printk(KERN_ERR "vmwrite error: reg %lx value %lx (err %d)\n",
field, value, vmcs_read32(VM_INSTRUCTION_ERROR));
if (unlikely(error))
vmwrite_error(field, value);
}

static void vmcs_write16(unsigned long field, u16 value)
Expand Down

0 comments on commit 53183e0

Please sign in to comment.