Re: [PATCH] KVM: x86: move steal time initialization to vcpu entry time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 15/10/2015 19:10, David Matlack wrote:
> > As reported at https://bugs.launchpad.net/qemu/+bug/1494350,
> > it is possible to have vcpu->arch.st.last_steal initialized
> > from a thread other than vcpu thread, say the iothread, via
> > KVM_SET_MSRS.
> >
> > Which can cause an overflow later (when subtracting from vcpu threads
> > sched_info.run_delay).
> >
> > To avoid that, move steal time accumulation to vcpu entry time,
> > before copying steal time data to guest.
> >
> > Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
> 
> Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>

Applied to kvm/queue.  Thanks Marcelo, and thanks David for the review.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux