Skip to contentSkip to conversation

KVM: release bad page on MSR_KVM_SYSTEM_TIME

PATCH Applied Marcelo Tosatti 2 participants 2 messages Feb 25, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: release bad page on MSR_KVM_SYSTEM_TIME

Subject says it all.

arch/x86/kvm/x86.c +3 -1
index e1aa6c9..ff7ef12 100644
@@ -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/vse0120000070mrt/direct/01/

Applied
#1 lore raw
Quoted 2 lines · Marcelo Tosatti

Subject says it all.

Applied, thanks.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/