Re: How to know that vPMU is enabled or disabled?

2014-06-24 Thread Jidong Xiao
On Tue, Jun 24, 2014 at 4:38 PM, Paolo Bonzini wrote: > Il 24/06/2014 10:33, Jidong Xiao ha scritto: > >> I think I have figured out this. According to this patch (as well as >> the Intel SDM manual), it looks like pmu is exposed via the cpuid leaf >> 0xah. >> >> >> https://github.com/torvalds/lin

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexey Kardashevskiy
On 06/25/2014 07:54 AM, Benjamin Herrenschmidt wrote: > On Wed, 2014-06-25 at 00:33 +1000, Alexey Kardashevskiy wrote: >> >> I do not understand why @val is considered LE here and need to be >> converted >> to CPU. Really. I truly believe it should be cpu_to_le32(). > > No. Both are slightly wrong

[Bug 42980] BUG in gfn_to_pfn_prot

2014-06-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42980 xerofo...@gmail.com changed: What|Removed |Added CC||xerofo...@gmail.com --- Comment #22

Re: [PATCH 00/33] KVM: PPC: Fix IRQ race in magic page code

2014-06-24 Thread Scott Wood
On Wed, 2014-06-25 at 01:40 +0200, Alexander Graf wrote: > On 25.06.14 01:15, Scott Wood wrote: > > On Wed, 2014-06-25 at 00:41 +0200, Alexander Graf wrote: > >> On 24.06.14 20:53, Scott Wood wrote: > >>> The timer interrupt works, but I'm not fully convinced that it's a good > >> idea for things l

Re: [PATCH 00/33] KVM: PPC: Fix IRQ race in magic page code

2014-06-24 Thread Alexander Graf
On 25.06.14 01:15, Scott Wood wrote: On Wed, 2014-06-25 at 00:41 +0200, Alexander Graf wrote: On 24.06.14 20:53, Scott Wood wrote: On Sun, 2014-06-22 at 23:23 +0200, Alexander Graf wrote: Howdy, Ben reminded me a while back that we have a nasty race in our KVM PV code. We replace a few inst

Re: [PATCH 00/33] KVM: PPC: Fix IRQ race in magic page code

2014-06-24 Thread Scott Wood
On Wed, 2014-06-25 at 00:41 +0200, Alexander Graf wrote: > On 24.06.14 20:53, Scott Wood wrote: > > On Sun, 2014-06-22 at 23:23 +0200, Alexander Graf wrote: > >> Howdy, > >> > >> Ben reminded me a while back that we have a nasty race in our KVM PV code. > >> > >> We replace a few instructions with

Re: [PATCH v3 1/9] MIPS: KVM: Reformat code and comments

2014-06-24 Thread James Hogan
Hi Deng-Cheng, On Tuesday 24 June 2014 10:31:02 Deng-Cheng Zhu wrote: > diff --git a/arch/mips/kvm/kvm_mips.c b/arch/mips/kvm/kvm_mips.c > index cd5e4f5..821e7e8 100644 > --- a/arch/mips/kvm/kvm_mips.c > +++ b/arch/mips/kvm/kvm_mips.c > -#define VCPU_STAT(x) offsetof(struct kvm_vcpu, stat.x), KVM

Re: [PATCH 00/33] KVM: PPC: Fix IRQ race in magic page code

2014-06-24 Thread Alexander Graf
On 24.06.14 20:53, Scott Wood wrote: On Sun, 2014-06-22 at 23:23 +0200, Alexander Graf wrote: Howdy, Ben reminded me a while back that we have a nasty race in our KVM PV code. We replace a few instructions with longer streams of instructions to check whether it's necessary to trap out from it

Re: [PATCH v2 9/9] arm64: KVM: vgic: deal with GIC sub-page alignment

2014-06-24 Thread Peter Maydell
On 24 June 2014 20:28, Joel Schopp wrote: > > On 06/19/2014 04:21 AM, Marc Zyngier wrote: >> >> The GIC CPU interface is always 4k aligned. If the host is using >> 64k pages, it is critical to place the guest's GICC interface at the >> same relative alignment as the host's GICV. Failure to do so r

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Benjamin Herrenschmidt
On Wed, 2014-06-25 at 00:33 +1000, Alexey Kardashevskiy wrote: > > I do not understand why @val is considered LE here and need to be > converted > to CPU. Really. I truly believe it should be cpu_to_le32(). No. Both are slightly wrong semantically but le32_to_cpu() is less wrong :-) iowrite32 su

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Benjamin Herrenschmidt
On Tue, 2014-06-24 at 12:41 +0200, Alexander Graf wrote: > Is there actually any difference in generated code with this patch > applied and without? I would hope that iowrite..() is inlined and > cancels out the cpu_to_le..() calls that are also inlined? No, the former uses byteswapping asm, the

Re: How to know that vPMU is enabled or disabled?

2014-06-24 Thread Paolo Bonzini
Il 24/06/2014 10:33, Jidong Xiao ha scritto: I think I have figured out this. According to this patch (as well as the Intel SDM manual), it looks like pmu is exposed via the cpuid leaf 0xah. https://github.com/torvalds/linux/commit/a6c06ed1a60aff77b27ba558c315c3fed4e35565 Therefore, in the gues

Re: [PATCH v2 9/9] arm64: KVM: vgic: deal with GIC sub-page alignment

2014-06-24 Thread Joel Schopp
On 06/19/2014 04:21 AM, Marc Zyngier wrote: The GIC CPU interface is always 4k aligned. If the host is using 64k pages, it is critical to place the guest's GICC interface at the same relative alignment as the host's GICV. Failure to do so results in an impossibility for the guest to deal with in

Re: [PATCH 00/33] KVM: PPC: Fix IRQ race in magic page code

2014-06-24 Thread Scott Wood
On Sun, 2014-06-22 at 23:23 +0200, Alexander Graf wrote: > Howdy, > > Ben reminded me a while back that we have a nasty race in our KVM PV code. > > We replace a few instructions with longer streams of instructions to check > whether it's necessary to trap out from it (like mtmsr, no need to trap

[PATCH v3 5/9] MIPS: KVM: Rename files to remove the prefix "kvm_" and "kvm_mips_"

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu Since all the files are in arch/mips/kvm/, there's no need of the prefixes "kvm_" and "kvm_mips_". Signed-off-by: Deng-Cheng Zhu --- arch/mips/kvm/Makefile| 8 arch/mips/kvm/{kvm_cb.c => callback.c}| 0 arch/mips/kvm/{kvm_mi

[PATCH v3 7/9] MIPS: KVM: Fix memory leak on VCPU

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu kvm_arch_vcpu_free() is called in 2 code paths: 1) kvm_vm_ioctl() kvm_vm_ioctl_create_vcpu() kvm_arch_vcpu_destroy() kvm_arch_vcpu_free() 2) kvm_put_kvm() kvm_destroy_vm() kvm_arch_destroy_vm() kvm_mips_free_v

[PATCH v3 2/9] MIPS: KVM: Use KVM internal logger

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu Replace printks with kvm_[err|info|debug]. Signed-off-by: Deng-Cheng Zhu --- Changes: v3 - v2: o Change the use of kvm_[err|info|debug]. arch/mips/kvm/kvm_mips.c | 23 - arch/mips/kvm/kvm_mips_emul.c | 107 - arch/mi

[PATCH v3 6/9] MIPS: KVM: Restore correct value for WIRED at TLB uninit

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu At TLB initialization, the commpage TLB entry is reserved on top of the existing WIRED entries (the number not necessarily be 0). Signed-off-by: Deng-Cheng Zhu --- arch/mips/kvm/mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kvm/mips.c

[PATCH v3 9/9] MIPS: KVM: Remove dead code of TLB index error in kvm_mips_emul_tlbwr()

2014-06-24 Thread Deng-Cheng Zhu
From: James Hogan It's impossible to fall into the error handling of the TLB index after being masked by (KVM_MIPS_GUEST_TLB_SIZE - 1). Remove the dead code. Signed-off-by: James Hogan Signed-off-by: Deng-Cheng Zhu --- arch/mips/kvm/emulate.c | 5 - 1 file changed, 5 deletions(-) diff --

[PATCH v3 3/9] MIPS: KVM: Simplify functions by removing redundancy

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu No logic changes inside. Signed-off-by: Deng-Cheng Zhu --- Changes: v3 - v2: o Add err removal in kvm_arch_commit_memory_region(). o Revert the changes to kvm_arch_vm_ioctl(). arch/mips/include/asm/kvm_host.h | 2 +- arch/mips/kvm/kvm_mips.c | 18 --

[PATCH v3 4/9] MIPS: KVM: Remove unneeded volatile

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu The keyword volatile for idx in the TLB functions is unnecessary. Signed-off-by: Deng-Cheng Zhu --- arch/mips/kvm/kvm_tlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kvm/kvm_tlb.c b/arch/mips/kvm/kvm_tlb.c index 29a5bdb..bbcd822 1006

[PATCH v3 8/9] MIPS: KVM: Skip memory cleaning in kvm_mips_commpage_init()

2014-06-24 Thread Deng-Cheng Zhu
From: Deng-Cheng Zhu The commpage is allocated using kzalloc(), so there's no need of cleaning the memory of the kvm_mips_commpage struct and its internal mips_coproc. Signed-off-by: Deng-Cheng Zhu --- arch/mips/kvm/commpage.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/kvm

[PATCH v3 0/9] MIPS: KVM: Bugfixes and cleanups

2014-06-24 Thread Deng-Cheng Zhu
The patches are pretty straightforward. Changes: v3 - v2: o In patch #2, change the use of kvm_[err|info|debug]. o In patch #3, add err removal in kvm_arch_commit_memory_region(). o In patch #3, revert the changes to kvm_arch_vm_ioctl(). o In patch #7, drop the merge of kvm_arch_vcpu_free() and po

[PATCH 3.10 29/52] MIPS: KVM: Allocate at least 16KB for exception handlers

2014-06-24 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 7006e2dfda9adfa40251093604db76d7e44263b3 upstream. Each MIPS KVM guest has its own copy of the KVM exception vector. This contains the TLB refill exception handler at offset

Re: [PATCH 4/4] kvm: Implement PEBS virtualization

2014-06-24 Thread Marcelo Tosatti
On Sun, Jun 22, 2014 at 09:02:25PM +0200, Andi Kleen wrote: > > First, it's not sufficient to pin the debug store area, you also > > have to pin the guest page tables that are used to map the debug > > store. But even if you do that, as soon as the guest fork()s, it > > will create a new pgd which

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexey Kardashevskiy
On 06/25/2014 12:43 AM, Alex Williamson wrote: > On Wed, 2014-06-25 at 00:33 +1000, Alexey Kardashevskiy wrote: >> On 06/25/2014 12:21 AM, Alex Williamson wrote: >>> On Tue, 2014-06-24 at 15:22 +0200, Alexander Graf wrote: On 24.06.14 15:01, Alexey Kardashevskiy wrote: > On 06/24/2014 10:5

[PATCH 3.14 38/68] MIPS: KVM: Allocate at least 16KB for exception handlers

2014-06-24 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 7006e2dfda9adfa40251093604db76d7e44263b3 upstream. Each MIPS KVM guest has its own copy of the KVM exception vector. This contains the TLB refill exception handler at offset

Re: Coupling between KVM_IRQFD and KVM_SET_GSI_ROUTING?

2014-06-24 Thread Eric Auger
On 06/24/2014 05:47 PM, Alexander Graf wrote: > > On 24.06.14 17:05, Eric Auger wrote: >> On 06/24/2014 12:40 PM, Alexander Graf wrote: >>> On 24.06.14 11:47, Paul Mackerras wrote: On Mon, Jun 23, 2014 at 06:47:51PM +0200, Alexander Graf wrote: > On 17.06.14 13:39, Eric Auger wrote: >> >>

Re: [Qemu-devel] [PATCH 1/2] docs: update ivshmem device spec

2014-06-24 Thread Eric Blake
On 06/20/2014 06:15 AM, David Marchand wrote: > Add some notes on the parts needed to use ivshmem devices: more specifically, > explain the purpose of an ivshmem server and the basic concept to use the > ivshmem devices in guests. > > Signed-off-by: David Marchand > --- > docs/specs/ivshmem_devi

[PATCH 3.15 25/61] MIPS: KVM: Allocate at least 16KB for exception handlers

2014-06-24 Thread Greg Kroah-Hartman
3.15-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 7006e2dfda9adfa40251093604db76d7e44263b3 upstream. Each MIPS KVM guest has its own copy of the KVM exception vector. This contains the TLB refill exception handler at offset

Re: Coupling between KVM_IRQFD and KVM_SET_GSI_ROUTING?

2014-06-24 Thread Alexander Graf
On 24.06.14 17:05, Eric Auger wrote: On 06/24/2014 12:40 PM, Alexander Graf wrote: On 24.06.14 11:47, Paul Mackerras wrote: On Mon, Jun 23, 2014 at 06:47:51PM +0200, Alexander Graf wrote: On 17.06.14 13:39, Eric Auger wrote: Hello, I have a question related to KVM_IRQFD and KVM_SET_GSI_RO

Re: New improvements on KVM

2014-06-24 Thread Brian Jackson
On 6/23/2014 10:09 PM, Oscar Garcia wrote: Hello, I am planning to study a phd for the next year, and I would like to spend part on my time studying KVM code in order to suggest new improvements. I know that this mail list is used by experts related to KVM, I would like to ask you, what impro

Re: Coupling between KVM_IRQFD and KVM_SET_GSI_ROUTING?

2014-06-24 Thread Eric Auger
On 06/24/2014 12:40 PM, Alexander Graf wrote: > > On 24.06.14 11:47, Paul Mackerras wrote: >> On Mon, Jun 23, 2014 at 06:47:51PM +0200, Alexander Graf wrote: >>> On 17.06.14 13:39, Eric Auger wrote: Hello, I have a question related to KVM_IRQFD and KVM_SET_GSI_ROUTING ioctl r

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alex Williamson
On Wed, 2014-06-25 at 00:33 +1000, Alexey Kardashevskiy wrote: > On 06/25/2014 12:21 AM, Alex Williamson wrote: > > On Tue, 2014-06-24 at 15:22 +0200, Alexander Graf wrote: > >> On 24.06.14 15:01, Alexey Kardashevskiy wrote: > >>> On 06/24/2014 10:52 PM, Alexander Graf wrote: > On 24.06.14 14:

RE: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread David Laight
From: Alexey Kardashevskiy ... > >> So IMHO we should either create new, generic iowrite helpers that don't > >> do any endian swapping at all or do iowrite32(cpu_to_le32(val)) calls. > > > > I'm one of those people for whom iowrite32(le32_to_cpu(val)) makes sense > > > I do not understand why @v

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexey Kardashevskiy
On 06/25/2014 12:21 AM, Alex Williamson wrote: > On Tue, 2014-06-24 at 15:22 +0200, Alexander Graf wrote: >> On 24.06.14 15:01, Alexey Kardashevskiy wrote: >>> On 06/24/2014 10:52 PM, Alexander Graf wrote: On 24.06.14 14:50, Alexey Kardashevskiy wrote: > On 06/24/2014 08:41 PM, Alexander G

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alex Williamson
On Tue, 2014-06-24 at 15:22 +0200, Alexander Graf wrote: > On 24.06.14 15:01, Alexey Kardashevskiy wrote: > > On 06/24/2014 10:52 PM, Alexander Graf wrote: > >> On 24.06.14 14:50, Alexey Kardashevskiy wrote: > >>> On 06/24/2014 08:41 PM, Alexander Graf wrote: > On 24.06.14 12:11, Alexey Kardas

Re: [PATCH] KVM: PPC: Book3E: Unlock mmu_lock when setting caching atttribute

2014-06-24 Thread Alexander Graf
On 18.06.14 17:45, Mihai Caraman wrote: The patch 08c9a188d0d0fc0f0c5e17d89a06bb59c493110f kvm: powerpc: use caching attributes as per linux pte do not handle properly the error case, letting mmu_lock locked. The lock will further generate a RCU stall from kvmppc_e500_emul_tlbwe() caller

[PATCH v3 6/7] KVM: PPC: Book3S HV: Fix ABIv2 on LE

2014-06-24 Thread Alexander Graf
For code that doesn't live in modules we can just branch to the real function names, giving us compatibility with ABIv1 and ABIv2. Do this for the compiled-in code of HV KVM. Signed-off-by: Alexander Graf --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 16 1 file changed, 8 inser

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexander Graf
On 24.06.14 15:01, Alexey Kardashevskiy wrote: On 06/24/2014 10:52 PM, Alexander Graf wrote: On 24.06.14 14:50, Alexey Kardashevskiy wrote: On 06/24/2014 08:41 PM, Alexander Graf wrote: On 24.06.14 12:11, Alexey Kardashevskiy wrote: On 06/21/2014 09:12 AM, Benjamin Herrenschmidt wrote: On T

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexey Kardashevskiy
On 06/24/2014 10:52 PM, Alexander Graf wrote: > > On 24.06.14 14:50, Alexey Kardashevskiy wrote: >> On 06/24/2014 08:41 PM, Alexander Graf wrote: >>> On 24.06.14 12:11, Alexey Kardashevskiy wrote: On 06/21/2014 09:12 AM, Benjamin Herrenschmidt wrote: > On Thu, 2014-06-19 at 21:21 -0600, A

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexander Graf
On 24.06.14 14:50, Alexey Kardashevskiy wrote: On 06/24/2014 08:41 PM, Alexander Graf wrote: On 24.06.14 12:11, Alexey Kardashevskiy wrote: On 06/21/2014 09:12 AM, Benjamin Herrenschmidt wrote: On Thu, 2014-06-19 at 21:21 -0600, Alex Williamson wrote: Working on big endian being an accident

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexey Kardashevskiy
On 06/24/2014 08:41 PM, Alexander Graf wrote: > > On 24.06.14 12:11, Alexey Kardashevskiy wrote: >> On 06/21/2014 09:12 AM, Benjamin Herrenschmidt wrote: >>> On Thu, 2014-06-19 at 21:21 -0600, Alex Williamson wrote: >>> Working on big endian being an accident may be a matter of perspective >>

Re: [PATCH v4] KVM: PPC: e500mc: Enhance tlb invalidation condition on vcpu schedule

2014-06-24 Thread Alexander Graf
On 18.06.14 09:15, Mihai Caraman wrote: On vcpu schedule, the condition checked for tlb pollution is too loose. The tlb entries of a vcpu become polluted (vs stale) only when a different vcpu within the same logical partition runs in-between. Optimize the tlb invalidation condition keeping last_

Re: [PATCH 04/11] qspinlock: Extract out the exchange of tail code word

2014-06-24 Thread Peter Zijlstra
On Wed, Jun 18, 2014 at 01:37:45PM +0200, Paolo Bonzini wrote: > However, I *do* agree with you that it's simpler to just squash this patch > into 01/11. So I explicitly broke out these optimizations into separate patches so that we can see them independently and agree they're idempotent wrt the s

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexander Graf
On 24.06.14 12:11, Alexey Kardashevskiy wrote: On 06/21/2014 09:12 AM, Benjamin Herrenschmidt wrote: On Thu, 2014-06-19 at 21:21 -0600, Alex Williamson wrote: Working on big endian being an accident may be a matter of perspective :-) The comment remains that this patch doesn't actually f

Re: Coupling between KVM_IRQFD and KVM_SET_GSI_ROUTING?

2014-06-24 Thread Alexander Graf
On 24.06.14 11:47, Paul Mackerras wrote: On Mon, Jun 23, 2014 at 06:47:51PM +0200, Alexander Graf wrote: On 17.06.14 13:39, Eric Auger wrote: Hello, I have a question related to KVM_IRQFD and KVM_SET_GSI_ROUTING ioctl relationship. When reading the KVM API documentation I do not understand t

Re: [PATCH 2/2] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

2014-06-24 Thread Marc Zyngier
On 24/06/14 11:23, Will Deacon wrote: > On Wed, May 07, 2014 at 03:55:57PM +0100, Christoffer Dall wrote: >> On Wed, May 07, 2014 at 10:00:21AM +0100, Marc Zyngier wrote: >>> On Tue, May 06 2014 at 7:04:48 pm BST, Christoffer Dall >>> wrote: On Tue, Mar 25, 2014 at 05:08:14PM -0500, Kim Phi

Re: [PATCH 2/2] ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping

2014-06-24 Thread Will Deacon
On Wed, May 07, 2014 at 03:55:57PM +0100, Christoffer Dall wrote: > On Wed, May 07, 2014 at 10:00:21AM +0100, Marc Zyngier wrote: > > On Tue, May 06 2014 at 7:04:48 pm BST, Christoffer Dall > > wrote: > > > On Tue, Mar 25, 2014 at 05:08:14PM -0500, Kim Phillips wrote: > > >> Use the correct memo

Re: [PATCH 03/11] qspinlock: Add pending bit

2014-06-24 Thread Peter Zijlstra
On Tue, Jun 17, 2014 at 05:07:29PM -0400, Konrad Rzeszutek Wilk wrote: > > We are trying to make the fastpath as simple as possible as it may be > > inlined. The complexity of the queue spinlock is in the slowpath. > > Sure, but then it shouldn't be called slowpath anymore as it is not > slow. It

Re: [PATCH 03/11] qspinlock: Add pending bit

2014-06-24 Thread Peter Zijlstra
On Tue, Jun 17, 2014 at 07:23:44PM -0400, Konrad Rzeszutek Wilk wrote: > > Actually in my v11 patch, I subdivided the slowpath into a slowpath for > > the pending code and slowerpath for actual queuing. Perhaps, we could > > use quickpath and slowpath instead. Anyway, it is a minor detail that we

Re: [PATCH] vfio: Fix endianness handling for emulated BARs

2014-06-24 Thread Alexey Kardashevskiy
On 06/21/2014 09:12 AM, Benjamin Herrenschmidt wrote: > On Thu, 2014-06-19 at 21:21 -0600, Alex Williamson wrote: > >> Working on big endian being an accident may be a matter of perspective > > :-) > >> The comment remains that this patch doesn't actually fix anything except >> the overhead on

vhost on mmio platform devices

2014-06-24 Thread GAUGUEY Rémy 228890
Hi, I'm currently trying to make vhost-net work on ARM cortexA15 Arndale board. As irqfd is not yet upstream, I've used irqfd and irq routing patches recently posted on kvmarm list. So far I can properly generate irqs to the guest using vgic and irq-routing , but as far as I can see virtio regi

[Bug 67751] Stack trace with suspicious RCU usage, when starting ovs-switchd

2014-06-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=67751 --- Comment #5 from Kashyap Chamarthy --- I just saw this again when I attempt to restart OpenvSwitch with Kernel -- 3.16.0-0.rc1.git1.1.fc21.x86_64 - [ 9695.079715] [ 9695.080492] === [ 9695.08255

Re: Coupling between KVM_IRQFD and KVM_SET_GSI_ROUTING?

2014-06-24 Thread Paul Mackerras
On Mon, Jun 23, 2014 at 06:47:51PM +0200, Alexander Graf wrote: > > On 17.06.14 13:39, Eric Auger wrote: > >Hello, > > > >I have a question related to KVM_IRQFD and KVM_SET_GSI_ROUTING ioctl > >relationship. > > > >When reading the KVM API documentation I do not understand there is any > >dependen

Re: How to know that vPMU is enabled or disabled?

2014-06-24 Thread Jidong Xiao
On Mon, Jun 23, 2014 at 1:41 PM, Jidong Xiao wrote: > Hi, All, > > I am using a virtual machine in a cloud environment, which means I am > in control of the Guest OS, but have no access to the Host OS. Is > there a simple way to know whether or not the vPMU is enabled or > disabled? Or, is there s

Re: [PATCH v3 -next 0/9] CMA: generalize CMA reserved area management code

2014-06-24 Thread Joonsoo Kim
On Wed, Jun 18, 2014 at 01:51:44PM -0700, Andrew Morton wrote: > On Tue, 17 Jun 2014 10:25:07 +0900 Joonsoo Kim wrote: > > > > >v2: > > > > - Although this patchset looks very different with v1, the end result, > > > > that is, mm/cma.c is same with v1's one. So I carry Ack to patch 6-7. > >

[PATCH] KVM: x86: fix TSC matching

2014-06-24 Thread Tomasz Grabiec
I've observed kvmclock being marked as unstable on a modern single-socket system with a stable TSC and qemu-1.6.2 or qemu-2.0.0. The culprit was failure in TSC matching because of overflow of kvm_arch::nr_vcpus_matched_tsc in case there were multiple TSC writes in a single synchronization cycle.

Re: [PATCH] powerpc/kvm: Fix build break with CONFIG_KVM_BOOK3S_64_HV=y

2014-06-24 Thread Michael Ellerman
On Tue, 2014-06-24 at 15:51 +0900, Joonsoo Kim wrote: > On Tue, Jun 24, 2014 at 04:36:47PM +1000, Michael Ellerman wrote: > > Commit e58e263 "PPC, KVM, CMA: use general CMA reserved area management > > framework" in next-20140624 removed arch/powerpc/kvm/book3s_hv_cma.c bu