diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4ff0c271f12..d0764a25804 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -5533,7 +5533,15 @@ int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu) | |||
5533 | 5533 | ||
5534 | int kvm_arch_hardware_enable(void *garbage) | 5534 | int kvm_arch_hardware_enable(void *garbage) |
5535 | { | 5535 | { |
5536 | struct kvm *kvm; | ||
5537 | struct kvm_vcpu *vcpu; | ||
5538 | int i; | ||
5539 | |||
5536 | kvm_shared_msr_cpu_online(); | 5540 | kvm_shared_msr_cpu_online(); |
5541 | list_for_each_entry(kvm, &vm_list, vm_list) | ||
5542 | kvm_for_each_vcpu(i, vcpu, kvm) | ||
5543 | if (vcpu->cpu == smp_processor_id()) | ||
5544 | kvm_request_guest_time_update(vcpu); | ||
5537 | return kvm_x86_ops->hardware_enable(garbage); | 5545 | return kvm_x86_ops->hardware_enable(garbage); |
5538 | } | 5546 | } |
5539 | 5547 | ||