[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/9] target-i386: do not special case TSC writeback
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 2/9] target-i386: do not special case TSC writeback |
Date: |
Mon, 20 Jan 2014 15:44:04 +0100 |
From: Fernando Luis Vázquez Cao <address@hidden>
Newer kernels are capable of synchronizing TSC values of multiple VCPUs
on writeback, but we were excluding the power up case, which is not needed
anymore.
Signed-off-by: Fernando Luis Vazquez Cao <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Fernando Luis Vázquez Cao <address@hidden>
---
target-i386/kvm.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 01ebca2..312a46b 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -1151,15 +1151,7 @@ static int kvm_put_msrs(X86CPU *cpu, int level)
}
#endif
if (level == KVM_PUT_FULL_STATE) {
- /*
- * KVM is yet unable to synchronize TSC values of multiple VCPUs on
- * writeback. Until this is fixed, we only write the offset to SMP
- * guests after migration, desynchronizing the VCPUs, but avoiding
- * huge jump-backs that would occur without any writeback at all.
- */
- if (smp_cpus == 1 || env->tsc != 0) {
- kvm_msr_entry_set(&msrs[n++], MSR_IA32_TSC, env->tsc);
- }
+ kvm_msr_entry_set(&msrs[n++], MSR_IA32_TSC, env->tsc);
}
/*
* The following MSRs have side effects on the guest or are too heavy
--
1.8.3.1
- [Qemu-devel] [PULL 0/8] KVM uq/master changes for 2014-01-20, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 1/9] target-i386: Intel MPX, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 4/9] roms: Flush icache when writing roms to guest memory, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 2/9] target-i386: do not special case TSC writeback,
Paolo Bonzini <=
- [Qemu-devel] [PULL 3/9] target-i386: clear guest TSC on reset, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 7/9] KVM: Retry KVM_CREATE_VM on EINTR, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 5/9] kvm: x86: Separately write feature control MSR on reset, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 8/9] KVM: fix addr type for KVM_IOEVENTFD, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 6/9] mempath prefault: fix off-by-one error, Paolo Bonzini, 2014/01/20
- [Qemu-devel] [PULL 9/9] kvm: always update the MPX model specific register, Paolo Bonzini, 2014/01/20
- Re: [Qemu-devel] [PULL 0/8] KVM uq/master changes for 2014-01-20, Paolo Bonzini, 2014/01/20