KVM: x86: mark hyper-v hypercall page as dirty
authorVadim Rozenfeld <vrozenfe@redhat.com>
Thu, 23 Jan 2014 07:12:52 +0000 (18:12 +1100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2014 18:00:04 +0000 (19:00 +0100)
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c

index 0c76f7c..0fa9c84 100644 (file)
@@ -1840,6 +1840,7 @@ static int set_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data)
                if (__copy_to_user((void __user *)addr, instructions, 4))
                        return 1;
                kvm->arch.hv_hypercall = data;
+               mark_page_dirty(kvm, gfn);
                break;
        }
        case HV_X64_MSR_REFERENCE_TSC: {