[PATCH kvm-unit-tests v2] x86: cmpxchg8b: new 32-bit only testcase

2015-02-13 Thread Paolo Bonzini
This is similar to emulator.c, that does not run on 32-bit systems. This bug happens (due to kvm_mmu_page_fault's call to the emulator) during Windows 7 boot. Reported-by: Erik Rull erik.r...@rdsoftware.de Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- v1-v2: go through

stand-alone kvmtool

2015-02-13 Thread Andre Przywara
Hi, as I found it increasingly inconvenient to use kvmtool[1] as part of a Linux repository, I decided to give it a go and make it a stand-alone project. So I filtered all the respective commits, adjusted the paths in there (while keeping authorship and commit date, of course) and then added the

Re: stand-alone kvmtool

2015-02-13 Thread Claudio Fontana
Hello Andre, On 13.02.2015 11:39, Andre Przywara wrote: Hi, as I found it increasingly inconvenient to use kvmtool[1] as part of a Linux repository, I decided to give it a go and make it a stand-alone project. So I filtered all the respective commits, adjusted the paths in there (while

Re: stand-alone kvmtool

2015-02-13 Thread Andre Przywara
Ciao Claudio, On 13/02/15 14:30, Claudio Fontana wrote: Hello Andre, On 13.02.2015 11:39, Andre Przywara wrote: Hi, as I found it increasingly inconvenient to use kvmtool[1] as part of a Linux repository, I decided to give it a go and make it a stand-alone project. So I filtered all the

Re: [PATCH V4] x86 spinlock: Fix memory corruption on completing completions

2015-02-13 Thread Oleg Nesterov
On 02/13, Oleg Nesterov wrote: On 02/13, Raghavendra K T wrote: @@ -772,7 +773,8 @@ __visible void kvm_lock_spinning(struct arch_spinlock *lock, __ticket_t want) * check again make sure it didn't become free while * we weren't looking. */ - if

Re: VFIO iommu page size masking

2015-02-13 Thread Alex Williamson
On Fri, 2015-02-13 at 03:41 +0100, Alexander Graf wrote: Hi Alex, While trying to get VFIO-PCI working on AArch64 (with 64k page size), I stumbled over the following piece of code: static unsigned long vfio_pgsize_bitmap(struct vfio_iommu *iommu) { struct vfio_domain *domain;

[PATCH] vhost: support upto 509 memory regions

2015-02-13 Thread Igor Mammedov
since commit 1d4e7e3 kvm: x86: increase user memory slots to 509 it became possible to use a bigger amount of memory slots, which is used by memory hotplug for registering hotplugged memory. However QEMU aborts if it's used with more than ~60 pc-dimm devices and vhost-net since host kernel in

Re: [PATCH V4] x86 spinlock: Fix memory corruption on completing completions

2015-02-13 Thread Oleg Nesterov
On 02/13, Raghavendra K T wrote: @@ -164,7 +161,7 @@ static inline int arch_spin_is_locked(arch_spinlock_t *lock) { struct __raw_tickets tmp = READ_ONCE(lock-tickets); - return tmp.tail != tmp.head; + return tmp.tail != (tmp.head ~TICKET_SLOWPATH_FLAG); } Well, this can

Re: stand-alone kvmtool

2015-02-13 Thread Claudio Fontana
On 13.02.2015 15:40, Andre Przywara wrote: Ciao Claudio, On 13/02/15 14:30, Claudio Fontana wrote: Hello Andre, On 13.02.2015 11:39, Andre Przywara wrote: Hi, as I found it increasingly inconvenient to use kvmtool[1] as part of a Linux repository, I decided to give it a go and make it a

Re: [PATCH v4 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

2015-02-13 Thread Luis R. Rodriguez
On Tue, Feb 10, 2015 at 05:23:29PM -0800, David Rientjes wrote: On Tue, 10 Feb 2015, Luis R. Rodriguez wrote: From: Luis R. Rodriguez mcg...@suse.com This lets you build a kernel which can support xen dom0 or xen guests by just using: make xenconfig on both x86 and arm64

Re: [PATCH] ARM: KVM: Fix size check in __coherent_cache_guest_page

2015-02-13 Thread Paolo Bonzini
On 13/02/2015 05:57, Christoffer Dall wrote: On Sat, Feb 07, 2015 at 10:21:20PM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com The check is supposed to catch page-unaligned sizes, not the inverse. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Thanks, applied.

Re: [PATCH v4 2/2] x86, arm, platform, xen, kconfig: add xen defconfig helper

2015-02-13 Thread David Rientjes
On Fri, 13 Feb 2015, Luis R. Rodriguez wrote: David, since I'm making some Kconfig changes to Xen I think I should fold this into that series with the modifications required last so as to avoid other commits and have this go in clean after all the changes, and have this go through you with