diff options
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 132c5100d4f4..31bf98427f4e 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -77,6 +77,7 @@ static u64 __read_mostly efer_reserved_bits = 0xfffffffffffffffeULL; | |||
77 | #define VM_STAT(x) offsetof(struct kvm, stat.x), KVM_STAT_VM | 77 | #define VM_STAT(x) offsetof(struct kvm, stat.x), KVM_STAT_VM |
78 | #define VCPU_STAT(x) offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU | 78 | #define VCPU_STAT(x) offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU |
79 | 79 | ||
80 | static void update_cr8_intercept(struct kvm_vcpu *vcpu); | ||
80 | static int kvm_dev_ioctl_get_supported_cpuid(struct kvm_cpuid2 *cpuid, | 81 | static int kvm_dev_ioctl_get_supported_cpuid(struct kvm_cpuid2 *cpuid, |
81 | struct kvm_cpuid_entry2 __user *entries); | 82 | struct kvm_cpuid_entry2 __user *entries); |
82 | 83 | ||
@@ -1629,6 +1630,7 @@ static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu, | |||
1629 | vcpu_load(vcpu); | 1630 | vcpu_load(vcpu); |
1630 | memcpy(vcpu->arch.apic->regs, s->regs, sizeof *s); | 1631 | memcpy(vcpu->arch.apic->regs, s->regs, sizeof *s); |
1631 | kvm_apic_post_state_restore(vcpu); | 1632 | kvm_apic_post_state_restore(vcpu); |
1633 | update_cr8_intercept(vcpu); | ||
1632 | vcpu_put(vcpu); | 1634 | vcpu_put(vcpu); |
1633 | 1635 | ||
1634 | return 0; | 1636 | return 0; |