diff options
author | Vadim Rozenfeld <vrozenfe@redhat.com> | 2014-01-23 11:12:52 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-01-23 22:00:04 +0400 |
commit | b94b64c9a79a322802f13f44e9690a7b6a22710e (patch) | |
tree | 50c7546a192d38e1e59bdae9b7cb8d6ecbff9733 /arch/x86 | |
parent | c760f5e29d92adf5184589f1e616a4be146fb57c (diff) | |
download | linux-b94b64c9a79a322802f13f44e9690a7b6a22710e.tar.xz |
KVM: x86: mark hyper-v hypercall page as dirty
Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 0c76f7cfdb32..0fa9c84e36cb 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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: { |