Ingo Molnar wrote:
* Avi Kivity <[email protected]> wrote:Avi Kivity wrote:Testing shows wrmsr and rdtsc function normally. I'll try pinning the vcpus to cpus and see if that helps.It does.do we let the guest read the physical CPU's TSC? That would be trouble.
vmx (and svm) allow us to add an offset to the physical tsc. We set it on startup to -tsc (so that an rdtsc on boot would return 0), and massage it on vcpu migration so that guest rdtsc is monotonic.
The net effect is that tsc on a vcpu can experience large forward jumps and changes in rate, but no negative jumps.
-- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: "Glauber de Oliveira Costa" <[email protected]>
- Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- References:
- Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: Avi Kivity <[email protected]>
- Re: Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: Ingo Molnar <[email protected]>
- Re: Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: Avi Kivity <[email protected]>
- Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: Avi Kivity <[email protected]>
- Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: Avi Kivity <[email protected]>
- Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- From: Ingo Molnar <[email protected]>
- Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- Prev by Date: Re: [patch 17/20] non-reclaimable mlocked pages
- Next by Date: Re: [PATCH] adt7470: Support per-sensor alarm files
- Previous by thread: Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- Next by thread: Re: [kvm-devel] Guest kernel hangs in smp kvm for older kernels prior to tsc sync cleanup
- Index(es):