login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
2
Re: [PATCH 3/3] KVM: MMU: mark page dirty only when page is really written
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Xiao Guangrong
Subject:
Re: [PATCH 3/3] KVM: MMU: mark page dirty only when page is really written
Date: Monday, August 2, 2010 - 12:51 am
Avi Kivity wrote:
quoted text
> On 07/27/2010 06:35 AM, Xiao Guangrong wrote: >> Mark page dirty only when this page is really written, it's more exacter, >> and also can fix dirty page marking in speculation path >> >> Signed-off-by: Xiao Guangrong<xiaoguangrong@cn.fujitsu.com> >> --- >> arch/x86/kvm/mmu.c | 47 >> ++++++++++++++++++++++++++++------------------- >> 1 files changed, 28 insertions(+), 19 deletions(-) >> >> diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c >> index dd6c192..bcc2173 100644 >> --- a/arch/x86/kvm/mmu.c >> +++ b/arch/x86/kvm/mmu.c >> @@ -311,24 +311,42 @@ static bool spte_bits_lost(u64 spte) >> if (!is_shadow_present_pte(spte)) >> return false; >> >> - if (spte& shadow_accessed_mask) >> + if (spte& shadow_accessed_mask&& >> + (!is_writable_pte(spte) || spte& shadow_dirty_mask)) >> return false; >> > > Please add parentheses around bitwise operators to reduce confusion. > The rest looks good. >
OK, will do it in the new version, thanks. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/3] KVM: MMU: using kvm_set_pfn_accessed() instead ...
, Xiao Guangrong
, (Mon Jul 26, 8:31 pm)
[PATCH 2/3] KVM: MMU: move bits lost judgement into a sepa ...
, Xiao Guangrong
, (Mon Jul 26, 8:33 pm)
[PATCH 3/3] KVM: MMU: mark page dirty only when page is re ...
, Xiao Guangrong
, (Mon Jul 26, 8:35 pm)
Re: [PATCH 2/3] KVM: MMU: move bits lost judgement into a ...
, Avi Kivity
, (Mon Aug 2, 12:41 am)
Re: [PATCH 2/3] KVM: MMU: move bits lost judgement into a ...
, Xiao Guangrong
, (Mon Aug 2, 12:50 am)
Re: [PATCH 3/3] KVM: MMU: mark page dirty only when page i ...
, Avi Kivity
, (Mon Aug 2, 12:50 am)
Re: [PATCH 3/3] KVM: MMU: mark page dirty only when page i ...
, Xiao Guangrong
, (Mon Aug 2, 12:51 am)
[PATCH v2 1/3] KVM: MMU: using kvm_set_pfn_accessed() inst ...
, Xiao Guangrong
, (Mon Aug 2, 1:12 am)
[PATCH v2 2/3] KVM: MMU: move bits lost judgement into a s ...
, Xiao Guangrong
, (Mon Aug 2, 1:14 am)
[PATCH v2 3/3] KVM: MMU: mark page dirty only when page is ...
, Xiao Guangrong
, (Mon Aug 2, 1:15 am)
Re: [PATCH v2 1/3] KVM: MMU: using kvm_set_pfn_accessed() ...
, Avi Kivity
, (Mon Aug 2, 2:53 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Nick Piggin
Re: dealing with barriers (was Re: [PATCH] firewire: fw-core: enforce write order ...
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Linux Kernel Mailing List
bnx2x: Moving includes
Colocation donated by:
Syndicate