[PATCH v7 1/5] export __get_user_pages_fast() function

2010-08-21 Thread Xiao Guangrong
This function is used by KVM to pin process's page in the atomic context. Define the 'weak' function to avoid other architecture not support it Acked-by: Nick Piggin npig...@suse.de Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- mm/util.c | 13 + 1 files changed,

[PATCH v7 3/5] KVM: MMU: introduce gfn_to_page_many_atomic() function

2010-08-21 Thread Xiao Guangrong
Introduce this function to get consecutive gfn's pages, it can reduce gup's overload, used by later patch Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- include/linux/kvm_host.h |3 +++ virt/kvm/kvm_main.c | 29 - 2 files changed, 31

[PATCH v7 4/5] KVM: MMU: prefetch ptes when intercepted guest #PF

2010-08-21 Thread Xiao Guangrong
Support prefetch ptes when intercept guest #PF, avoid to #PF by later access If we meet any failure in the prefetch path, we will exit it and not try other ptes to avoid become heavy path Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/mmu.c | 104

[PATCH v7 5/5] KVM: MMU: combine guest pte read between fetch and pte prefetch

2010-08-21 Thread Xiao Guangrong
Combine guest pte read between guest pte check in the fetch path and pte prefetch Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/paging_tmpl.h | 40 +--- 1 files changed, 21 insertions(+), 19 deletions(-) diff --git

[PATCH v7 2/5] KVM: MMU: introduce hva_to_pfn_atomic function

2010-08-21 Thread Xiao Guangrong
Introduce hva_to_pfn_atomic(), it's the fast path and can used in atomic context, the later patch will use it Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- include/linux/kvm_host.h |7 +++ virt/kvm/kvm_main.c | 30 +++--- 2 files changed,

[PATCH v7 2/5] KVM: MMU: introduce hva_to_pfn_atomic function

2010-08-21 Thread Xiao Guangrong
Introduce hva_to_pfn_atomic(), it's the fast path and can used in atomic context, the later patch will use it Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- include/linux/kvm_host.h |7 +++ virt/kvm/kvm_main.c | 30 +++--- 2 files changed,

Re: [KVM timekeeping 30/35] IOCTL for setting TSC rate

2010-08-21 Thread Arnd Bergmann
On Friday 20 August 2010 19:56:20 Glauber Costa wrote: @@ -675,6 +676,9 @@ struct kvm_clock_data { #define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2) /* Available with KVM_CAP_PPC_GET_PVINFO */ #define KVM_PPC_GET_PVINFO _IOW(KVMIO, 0xa1, struct

[PATCH] block: Make BSG detection more sane in hdev_open()

2010-08-21 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Greetings hch, tomo and Co, This patch changes the Linux BSG backstore detect logic in hdev_open() in order to determine when to actually set 'bs-sg = BDS_BSG;' by obtaining the BSG major from a SysFS attribute in /sys/class/bsg/$H:C:T:L/dev, instead

Re: [PATCH] block: Make BSG detection more sane in hdev_open()

2010-08-21 Thread Nicholas A. Bellinger
On Sat, 2010-08-21 at 16:01 -0700, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org Greetings hch, tomo and Co, This patch changes the Linux BSG backstore detect logic in hdev_open() in order to determine when to actually set 'bs-sg = BDS_BSG;' by obtaining the

Re: GRUB and support for Virtio

2010-08-21 Thread Daniel Bareiro
On Wednesday, 18 August 2010 21:45:56 +0300, Nikolai K. Bochev wrote: Strange, i did 2 clean installs of centos 5.5 on an ubuntu 9.10 host and it went flawless with virtio devices ( both disks and network ). It appears that Debian have the same problem. In the installation of both Debian Lenny

Re: KVM timekeeping and TSC virtualization

2010-08-21 Thread David S. Ahern
On 08/20/10 17:24, Zachary Amsden wrote: On 08/20/2010 03:26 AM, David S. Ahern wrote: On 08/20/10 02:07, Zachary Amsden wrote: This patch set implements full TSC virtualization, with both trapping and passthrough modes, and intelligent mode switching. As a result, TSC will never go

[PATCH] powerpc: remove fpscr use from [kvm_]cvt_{fd,df}

2010-08-21 Thread Andreas Schwab
Neither lfs nor stfs touch the fpscr, so remove the restore/save of it around them. Signed-off-by: Andreas Schwab sch...@linux-m68k.org --- arch/powerpc/include/asm/kvm_fpu.h |4 +- arch/powerpc/include/asm/system.h|4 +- arch/powerpc/kernel/align.c |4 +-