Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361505
b: refs/heads/master
c: c300aa6
h: refs/heads/master
i:
  361503: 4852eaf
v: v3
  • Loading branch information
Andy Honig authored and Marcelo Tosatti committed Mar 19, 2013
1 parent a24ce81 commit cc7907e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c09664bb44184b3846e8c5254db4eae4b932682a
refs/heads/master: c300aa64ddf57d9c5d9c898a64b36877345dd4a9
5 changes: 5 additions & 0 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,11 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
/* ...but clean it before doing the actual write */
vcpu->arch.time_offset = data & ~(PAGE_MASK | 1);

/* Check that the address is 32-byte aligned. */
if (vcpu->arch.time_offset &
(sizeof(struct pvclock_vcpu_time_info) - 1))
break;

vcpu->arch.time_page =
gfn_to_page(vcpu->kvm, data >> PAGE_SHIFT);

Expand Down

0 comments on commit cc7907e

Please sign in to comment.