login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
12
Re: [PATCH 6/6] KVM MMU: optimize synchronization shadow pages
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Xiao Guangrong
Subject:
Re: [PATCH 6/6] KVM MMU: optimize synchronization shadow pages
Date: Monday, April 12, 2010 - 4:14 am
Avi Kivity wrote:
quoted text
> On 04/12/2010 11:06 AM, Xiao Guangrong wrote: >> - chain all unsync shadow pages then we can fetch them quickly >> - flush local/remote tlb after all shadow page synced >> >> Signed-off-by: Xiao Guangrong<xiaoguangrong@cn.fujitsu.com> >> --- >> arch/x86/include/asm/kvm_host.h | 1 + >> arch/x86/kvm/mmu.c | 82 >> ++++++++++++++++++--------------------- >> 2 files changed, 39 insertions(+), 44 deletions(-) >> >> diff --git a/arch/x86/include/asm/kvm_host.h >> b/arch/x86/include/asm/kvm_host.h >> index d463bc6..ae543fb 100644 >> --- a/arch/x86/include/asm/kvm_host.h >> +++ b/arch/x86/include/asm/kvm_host.h >> @@ -207,6 +207,7 @@ struct kvm_mmu_page { >> #define MMU_PAGE_UNSYNC 0x2 >> unsigned int flags; >> unsigned int unsync_children; >> + struct list_head unsync_link; >> union { >> u64 *parent_pte; /* !multimapped */ >> struct hlist_head parent_ptes; /* multimapped, kvm_pte_chain */ >> diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c >> index 18eceb2..fcb6299 100644 >> --- a/arch/x86/kvm/mmu.c >> +++ b/arch/x86/kvm/mmu.c >> @@ -177,6 +177,8 @@ typedef int (*mmu_parent_walk_fn) (struct >> kvm_mmu_page *sp, u64 *spte); >> static struct kmem_cache *pte_chain_cache; >> static struct kmem_cache *rmap_desc_cache; >> static struct kmem_cache *mmu_page_header_cache; >> +static struct list_head unsync_mmu_page_list = >> + LIST_HEAD_INIT(unsync_mmu_page_list); >> >> > > Does this really need to be global? Should be per guest. >
Ah... this patch need more cooking, i'll improve it... thanks for you point it out. Xiao --
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/6] KVM MMU: remove unused struct
, Xiao Guangrong
, (Mon Apr 12, 12:59 am)
[PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its callin ...
, Xiao Guangrong
, (Mon Apr 12, 1:01 am)
[PATCH 3/6] KVM MMU: optimize/cleanup for marking parent u ...
, Xiao Guangrong
, (Mon Apr 12, 1:02 am)
[PATCH 4/6] KVM MMU: optimize for writing cr4
, Xiao Guangrong
, (Mon Apr 12, 1:03 am)
[PATCH 5/6] KVM MMU: reduce kvm_mmu_page size
, Xiao Guangrong
, (Mon Apr 12, 1:05 am)
[PATCH 6/6] KVM MMU: optimize synchronization shadow pages
, Xiao Guangrong
, (Mon Apr 12, 1:06 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Avi Kivity
, (Mon Apr 12, 1:24 am)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Avi Kivity
, (Mon Apr 12, 1:32 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4
, Avi Kivity
, (Mon Apr 12, 1:34 am)
Re: [PATCH 5/6] KVM MMU: reduce kvm_mmu_page size
, Avi Kivity
, (Mon Apr 12, 1:36 am)
Re: [PATCH 6/6] KVM MMU: optimize synchronization shadow pages
, Avi Kivity
, (Mon Apr 12, 1:43 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Xiao Guangrong
, (Mon Apr 12, 1:53 am)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Xiao Guangrong
, (Mon Apr 12, 1:55 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Avi Kivity
, (Mon Apr 12, 2:08 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Xiao Guangrong
, (Mon Apr 12, 2:22 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Avi Kivity
, (Mon Apr 12, 3:25 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4
, Xiao Guangrong
, (Mon Apr 12, 3:42 am)
Re: [PATCH 5/6] KVM MMU: reduce kvm_mmu_page size
, Xiao Guangrong
, (Mon Apr 12, 4:11 am)
Re: [PATCH 6/6] KVM MMU: optimize synchronization shadow pages
, Xiao Guangrong
, (Mon Apr 12, 4:14 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4
, Avi Kivity
, (Mon Apr 12, 4:22 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Xiao Guangrong
, (Mon Apr 12, 5:22 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Avi Kivity
, (Mon Apr 12, 5:49 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Marcelo Tosatti
, (Mon Apr 12, 10:10 am)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Marcelo Tosatti
, (Mon Apr 12, 10:12 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Xiao Guangrong
, (Mon Apr 12, 6:34 pm)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Xiao Guangrong
, (Mon Apr 12, 6:53 pm)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4
, Xiao Guangrong
, (Mon Apr 12, 8:07 pm)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4
, Avi Kivity
, (Mon Apr 12, 11:42 pm)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Avi Kivity
, (Tue Apr 13, 4:58 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Marcelo Tosatti
, (Tue Apr 13, 7:59 am)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Marcelo Tosatti
, (Tue Apr 13, 8:01 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Xiao Guangrong
, (Tue Apr 13, 7:14 pm)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Xiao Guangrong
, (Tue Apr 13, 8:23 pm)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Xiao Guangrong
, (Tue Apr 13, 8:58 pm)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ...
, Marcelo Tosatti
, (Wed Apr 14, 9:31 am)
Re: [PATCH 3/6] KVM MMU: optimize/cleanup for marking pare ...
, Marcelo Tosatti
, (Wed Apr 14, 9:35 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate