Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80640
b: refs/heads/master
c: eae5ecb
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent 4ec94cc commit b76704c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: b4c6abfef400c0f74d9b86a149a6719706cfdbbc
refs/heads/master: eae5ecb5b9043812968fae7ad9d74bf5e7a50245
4 changes: 3 additions & 1 deletion trunk/drivers/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ static void __vcpu_clear(void *arg)

static void vcpu_clear(struct vcpu_vmx *vmx)
{
if (vmx->vcpu.cpu != raw_smp_processor_id() && vmx->vcpu.cpu != -1)
if (vmx->vcpu.cpu == -1)
return;
if (vmx->vcpu.cpu != raw_smp_processor_id())
smp_call_function_single(vmx->vcpu.cpu, __vcpu_clear,
vmx, 0, 1);
else
Expand Down

0 comments on commit b76704c

Please sign in to comment.