Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1372493 > unrolled thread

Re: [patch] remove unnecessary code in hyperv.c

Started byRadim Krčmář <rkrcmar@redhat.com>
First post2016-04-06 14:40 +0200
Last post2016-04-06 14:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [patch] remove unnecessary code in hyperv.c Radim Krčmář <rkrcmar@redhat.com> - 2016-04-06 14:40 +0200

#1372493 — Re: [patch] remove unnecessary code in hyperv.c

FromRadim Krčmář <rkrcmar@redhat.com>
Date2016-04-06 14:40 +0200
SubjectRe: [patch] remove unnecessary code in hyperv.c
Message-ID<rkUUy-3Mo-33@gated-at.bofh.it>
2016-04-06 10:21+0800, rhett rhett:
> 8499907b52c9cebf3c1a4aaa63b84bd9c3c1ff3d
>  arch/x86/kvm/hyperv.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c
> index 01bd7b7..e831032 100644
> --- a/arch/x86/kvm/hyperv.c
> +++ b/arch/x86/kvm/hyperv.c
> @@ -807,7 +807,6 @@ static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32
> msr, u64 data,
>   gfn << HV_X64_MSR_TSC_REFERENCE_ADDRESS_SHIFT,
>   &tsc_ref, sizeof(tsc_ref)))
>   return 1;
> - mark_page_dirty(kvm, gfn);
>   break;
>   }
>   case HV_X64_MSR_CRASH_P0 ... HV_X64_MSR_CRASH_P4:
> 
> 
> i think the mark_page_dirty is unnecessary, because the page had been mark
> as dirty inside the
> kvm_write_guest routinue.

Yes, good catch.

>                           so ,  can this patch be accepted ?

An acceptable patch needs to follow Documentation/SubmittingPatches,
would you like to make the submission?

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web