Re: [stable] patchkvm-svm-fix-tsc-offset-adjustment-when-running-nested.patch added to2.6.31-stable tree

From: Greg KH
Date: Mon Oct 12 2009 - 10:59:57 EST


On Mon, Oct 12, 2009 at 11:41:51AM +0200, Joerg Roedel wrote:
> All the nested stuff was moved into its own sub-struct in 2.6.32. Here
> is a version that works with 2.6.31.3:
>
> >From 4505a73070f341674e0d22a8c9ee51b2beeb843e Mon Sep 17 00:00:00 2001
> From: Joerg Roedel <joerg.roedel@xxxxxxx>
> Date: Mon, 12 Oct 2009 11:19:07 +0200
> Subject: [PATCH 1/2] KVM: SVM: Fix tsc offset adjustment when running nested
>
> When svm_vcpu_load is called while the vcpu is running in
> guest mode the tsc adjustment made there is lost on the next
> emulated #vmexit. This causes the tsc running backwards in
> the guest. This patch fixes the issue by also adjusting the
> tsc_offset in the emulated hsave area so that it will not
> get lost.
>
> Signed-off-by: Joerg Roedel <joerg.roedel@xxxxxxx>

Thanks, but Marcelo just said we should drop the original patch.

Marcelo, if you want this one in instead, please let me know.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/