Subject says it all.
Signed-off-by: Marcelo Tosatti [EMAIL PROTECTED]
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index e1aa6c9..ff7ef12 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -595,8 +595,10 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64
data)
gfn_to_page(vcpu-kvm, data PAGE_SHIFT);
up_read(current-mm-mmap_sem);
- if (is_error_page(vcpu-arch.time_page))
+ if (is_error_page(vcpu-arch.time_page)) {
+ kvm_release_page_clean(vcpu-arch.time_page);
vcpu-arch.time_page = NULL;
+ }
kvm_write_guest_time(vcpu);
break;
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel