Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48037
b: refs/heads/master
c: 5481034
h: refs/heads/master
i:
  48035: 2aa08d2
v: v3
  • Loading branch information
Dor Laor authored and Linus Torvalds committed Feb 12, 2007
1 parent 3fd9b15 commit 444c278
Show file tree
Hide file tree
Showing 3 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: d92899a0014aa795c21d3cf726ef5ff7684399f4
refs/heads/master: 54810342f1372afdaf6cb9a6aea0c35df187db12
3 changes: 3 additions & 0 deletions trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,9 @@ static int kvm_dev_ioctl_run(struct kvm *kvm, struct kvm_run *kvm_run)
if (!vcpu)
return -ENOENT;

/* re-sync apic's tpr */
vcpu->cr8 = kvm_run->cr8;

if (kvm_run->emulated) {
kvm_arch_ops->skip_emulated_instruction(vcpu);
kvm_run->emulated = 0;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ struct kvm_run {
__u8 ready_for_interrupt_injection;
__u8 if_flag;
__u16 padding2;

/* in (pre_kvm_run), out (post_kvm_run) */
__u64 cr8;
__u64 apic_base;

Expand Down

0 comments on commit 444c278

Please sign in to comment.