VDSO pvclock may increase host cpu consumption, is this a problem?

2014-03-29 Thread Zhanghailiang
Hi, I found when Guest is idle, VDSO pvclock may increase host consumption. We can calcutate as follow, Correct me if I am wrong. (Host)250 * update_pvclock_gtod = 1500 * gettimeofday(Guest) In Host, VDSO pvclock introduce a notifier chain, pvclock_gtod_chain in timekeeping.c. It consume

[GIT PULL] PPC Book3S HV updates for 3.15

2014-03-29 Thread Paul Mackerras
Paolo, The following changes since commit e724f080f5dd03881bc6d378750c37f7374cae7e: KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE (2014-03-13 10:47:01 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git

Re: [PATCH] arm: KVM: fix possible misalignment of PGDs and bounce page

2014-03-29 Thread Marc Zyngier
On 2014-03-28 19:37, Christoffer Dall wrote: On Fri, Mar 28, 2014 at 10:25:19AM -0400, Mark Salter wrote: The kvm/mmu code shared by arm and arm64 uses kalloc() to allocate a bounce page (if hypervisor init code crosses page boundary) and hypervisor PGDs. The problem is that kalloc() does not

Re: [PATCH v3] KVM: Specify byte order for KVM_EXIT_MMIO

2014-03-29 Thread Paolo Bonzini
Il 28/01/2014 17:28, Christoffer Dall ha scritto: The KVM API documentation is not clear about the semantics of the data field on the mmio struct on the kvm_run struct. This has become problematic when supporting ARM guests on big-endian host systems with guests of both endianness types,

Re: VDSO pvclock may increase host cpu consumption, is this a problem?

2014-03-29 Thread Marcelo Tosatti
On Sat, Mar 29, 2014 at 08:47:27AM +, Zhanghailiang wrote: Hi, I found when Guest is idle, VDSO pvclock may increase host consumption. We can calcutate as follow, Correct me if I am wrong. (Host)250 * update_pvclock_gtod = 1500 * gettimeofday(Guest) In Host, VDSO pvclock introduce a

Re: [GIT PULL] PPC Book3S HV updates for 3.15

2014-03-29 Thread Paolo Bonzini
Il 29/03/2014 11:31, Paul Mackerras ha scritto: Paolo, The following changes since commit e724f080f5dd03881bc6d378750c37f7374cae7e: KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE (2014-03-13 10:47:01 +0100) are available in the git repository at:

Oprofile doesn't work well in Guest with VPMU

2014-03-29 Thread Wang Hui
Hi I was using oprofile to measuring hardware events in Guest, I have turn on the cpu host-passthrough mode, but it seems that oprofile can get only one sample.I added some debug info and found that problem is with the perf_event's sample_period. host's workflow is: set counter MSR: set

[GIT PULL] PPC Book3S HV updates for 3.15

2014-03-29 Thread Paul Mackerras
Paolo, The following changes since commit e724f080f5dd03881bc6d378750c37f7374cae7e: KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE (2014-03-13 10:47:01 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git

Re: [PATCH v3] KVM: Specify byte order for KVM_EXIT_MMIO

2014-03-29 Thread Paolo Bonzini
Il 28/01/2014 17:28, Christoffer Dall ha scritto: The KVM API documentation is not clear about the semantics of the data field on the mmio struct on the kvm_run struct. This has become problematic when supporting ARM guests on big-endian host systems with guests of both endianness types,

Re: [GIT PULL] PPC Book3S HV updates for 3.15

2014-03-29 Thread Paolo Bonzini
Il 29/03/2014 11:31, Paul Mackerras ha scritto: Paolo, The following changes since commit e724f080f5dd03881bc6d378750c37f7374cae7e: KVM: PPC: Book3S HV: Fix register usage when loading/saving VRSAVE (2014-03-13 10:47:01 +0100) are available in the git repository at: