[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2036397219.889906.1533806021412.JavaMail.zimbra@redhat.com>
Date: Thu, 9 Aug 2018 05:13:41 -0400 (EDT)
From: Pankaj Gupta <pagupta@...hat.com>
To: Zhang Yi <yi.z.zhang@...ux.intel.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-nvdimm@...ts.01.org, pbonzini@...hat.com,
dan j williams <dan.j.williams@...el.com>, jack@...e.cz,
hch@....de, yu c zhang <yu.c.zhang@...el.com>, linux-mm@...ck.org,
rkrcmar@...hat.com, yi z zhang <yi.z.zhang@...el.com>
Subject: Re: [PATCH V3 1/4] kvm: remove redundant reserved page check
>
> PageReserved() is already checked inside kvm_is_reserved_pfn(),
> remove it from kvm_set_pfn_dirty().
>
> Signed-off-by: Zhang Yi <yi.z.zhang@...ux.intel.com>
> Signed-off-by: Zhang Yu <yu.c.zhang@...ux.intel.com>
> ---
> virt/kvm/kvm_main.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 8b47507f..c44c406 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -1690,12 +1690,8 @@ EXPORT_SYMBOL_GPL(kvm_release_pfn_dirty);
>
> void kvm_set_pfn_dirty(kvm_pfn_t pfn)
> {
> - if (!kvm_is_reserved_pfn(pfn)) {
> - struct page *page = pfn_to_page(pfn);
> -
> - if (!PageReserved(page))
> - SetPageDirty(page);
> - }
> + if (!kvm_is_reserved_pfn(pfn))
> + SetPageDirty(pfn_to_page(pfn));
> }
> EXPORT_SYMBOL_GPL(kvm_set_pfn_dirty);
Acked-by: Pankaj Gupta <pagupta@...hat.com>
>
> --
> 2.7.4
>
>
Powered by blists - more mailing lists