* (kein Betreff)
@ 2005-03-23 14:18 manitu
0 siblings, 0 replies; 7+ messages in thread
From: manitu @ 2005-03-23 14:18 UTC (permalink / raw)
To: linux-kernel
unsubscribe
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Kein Betreff]
@ 2017-07-26 5:59 Lars Reichardt
0 siblings, 0 replies; 7+ messages in thread
From: Lars Reichardt @ 2017-07-26 5:59 UTC (permalink / raw)
To: linux-kernel
unsubscribe linux-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Kein Betreff]
@ 2017-07-24 20:34 Lars Reichardt
0 siblings, 0 replies; 7+ messages in thread
From: Lars Reichardt @ 2017-07-24 20:34 UTC (permalink / raw)
To: linux-kernel
unsubscribe linux-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 0/7 v5] KVM: support for 1gb pages
@ 2009-07-27 14:30 Joerg Roedel
2009-07-27 14:30 ` [PATCH 6/7] kvm/mmu: enable gbpages by increasing nr of pagesizes Joerg Roedel
0 siblings, 1 reply; 7+ messages in thread
From: Joerg Roedel @ 2009-07-27 14:30 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: linux-kernel, kvm
Hello,
this is the latest version of the changes to KVM MMU code to support 1gb
pages. Pages with a size of 1gb are a feature of all Fam10h AMD CPUs
and this patch set makes them available for guests and allows to map the
nested page table with 1gb pages.
Changes to the previous version of this patch set:
* fixed a bug in the pte reserved bit checking code which
disallowed 1gb ptes (thanks Marcelo)
* included a working version of 1gb page support for shadow
paging (again, thanks to Marcelo who found the bug in the
original patch)
* rebased patches to the latest avi/master branch
I also gathered some new performance data for this code. The following
table contains the data. The configrations are all named as
<1gb pages enabled in guest>-<host backing size>. The numbers below are
the average of the elapsed time of 3 kernel compiles in a guest with 3GB
memory and 4 vpcus on an Istanbul based machine. The make jobs ran with
-j8. All measurements were done with nested paging enabled.
Configuration Elapsed Time Percent
------------------------------------------------------------
no1gbpages-4kb 139.81 100%
no1gbpages-1gb 129.89 92.9%
1gbpages-4kb 137.09 98.0%
1gbpages-1gb 129.42 92.6%
the biggest benefit is gained using 1gb pages for the nested page table.
The performance improvement compared to 4kb backing size with nested
paging is between 7% and 7.5%. Using 1gb pages in a guest with a 4kb
backing size on the host gives around 2% performance improvement.
Please review and/or consider to apply these patches.
Thanks,
Joerg
Diffstat:
arch/x86/include/asm/kvm_host.h | 5 +-
arch/x86/kvm/mmu.c | 242 ++++++++++++++++++++++++---------------
arch/x86/kvm/paging_tmpl.h | 97 ++++++++--------
arch/x86/kvm/svm.c | 6 +
arch/x86/kvm/vmx.c | 6 +
arch/x86/kvm/x86.c | 3 +-
6 files changed, 214 insertions(+), 145 deletions(-)
Shortlog:
Joerg Roedel (7):
kvm/mmu: make rmap code aware of mapping levels
kvm/mmu: rename is_largepage_backed to mapping_level
kvm/mmu: make direct mapping paths aware of mapping levels
kvm/mmu: make page walker aware of mapping levels
kvm/mmu: shadow support for 1gb pages
kvm/mmu: enable gbpages by increasing nr of pagesizes
kvm x86: report 1GB page support to userspace
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 6/7] kvm/mmu: enable gbpages by increasing nr of pagesizes
2009-07-27 14:30 [PATCH 0/7 v5] KVM: support for 1gb pages Joerg Roedel
@ 2009-07-27 14:30 ` Joerg Roedel
2009-07-27 14:35 ` (kein Betreff) Jens Regel
0 siblings, 1 reply; 7+ messages in thread
From: Joerg Roedel @ 2009-07-27 14:30 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: linux-kernel, kvm, Joerg Roedel
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
arch/x86/include/asm/kvm_host.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index c9fb2bc..3315efa 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -55,7 +55,7 @@
#define UNMAPPED_GVA (~(gpa_t)0)
/* KVM Hugepage definitions for x86 */
-#define KVM_NR_PAGE_SIZES 2
+#define KVM_NR_PAGE_SIZES 3
#define KVM_HPAGE_SHIFT(x) (PAGE_SHIFT + (((x) - 1) * 9))
#define KVM_HPAGE_SIZE(x) (1UL << KVM_HPAGE_SHIFT(x))
#define KVM_HPAGE_MASK(x) (~(KVM_HPAGE_SIZE(x) - 1))
--
1.6.3.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* (kein Betreff)
@ 2006-12-04 8:35 Christian Zehring
0 siblings, 0 replies; 7+ messages in thread
From: Christian Zehring @ 2006-12-04 8:35 UTC (permalink / raw)
To: linux-kernel
help
^ permalink raw reply [flat|nested] 7+ messages in thread
* (kein Betreff)
@ 2005-01-06 8:38 Harald Mehlem
0 siblings, 0 replies; 7+ messages in thread
From: Harald Mehlem @ 2005-01-06 8:38 UTC (permalink / raw)
To: linux-kernel
unsubscribe linux-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Kein Betreff]
@ 2003-12-05 11:51 listen
0 siblings, 0 replies; 7+ messages in thread
From: listen @ 2003-12-05 11:51 UTC (permalink / raw)
To: linux-kernel
auth 48343ef4 subscribe linux-kernel listen@koetting-online.de
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-07-26 5:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-23 14:18 (kein Betreff) manitu
-- strict thread matches above, loose matches on Subject: below --
2017-07-26 5:59 [Kein Betreff] Lars Reichardt
2017-07-24 20:34 Lars Reichardt
2009-07-27 14:30 [PATCH 0/7 v5] KVM: support for 1gb pages Joerg Roedel
2009-07-27 14:30 ` [PATCH 6/7] kvm/mmu: enable gbpages by increasing nr of pagesizes Joerg Roedel
2009-07-27 14:35 ` (kein Betreff) Jens Regel
2006-12-04 8:35 Christian Zehring
2005-01-06 8:38 Harald Mehlem
2003-12-05 11:51 [Kein Betreff] listen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).