[Bug 76331] New: kernel BUG at drivers/iommu/intel-iommu.c:844!

2014-05-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=76331 Bug ID: 76331 Summary: kernel BUG at drivers/iommu/intel-iommu.c:844! Product: Virtualization Version: unspecified Kernel Version: 3.14.4 Hardware: x86-64 OS: Linux

Re: [GIT PULL 0/1] KVM: s390: Fix for 3.15

2014-05-16 Thread Paolo Bonzini
Il 15/05/2014 11:02, Christian Borntraeger ha scritto: Paolo, here is a fix for kvm/master targetting 3.15 The following changes since commit 5367742ad5321dd38058420adb4750ed9c7ead1e: Merge tag 'signed-for-3.15' of git://github.com/agraf/linux-2.6 into kvm-master (2014-05-13 18:15:16 +0200)

invalid opcode: 0000 in guest after migration

2014-05-16 Thread Nikola Ciprich
Hi, on one of my clusters running qemu-kvm-1.6.1 on 3.10.22 x86_64 I noticed that after some time, migration of guest to other (same) node causes guest to go nuts... I get invalid opcode: [#1] PREEMPT SMP error, with long backtrace, ending with Fixing recursive fault but reboot is needed! s

Re: [PATCH v1 RFC 0/6] KVM: s390: cpu model implementation

2014-05-16 Thread Christian Borntraeger
On 13/05/14 16:58, Michael Mueller wrote: > The proposed patch set implements S390 cpu model support in kvm. A cpu > model is defined by a triple comprizing the cpu type , the cpu facility > set and instruction blocking control. A consumer requests a feasible > combination of that that triple befor

Re: [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Alexander Graf
On 13.05.14 16:58, Michael Mueller wrote: The patch introduces facilities and cpu_ids per virtual machine. Different virtual machines may want to expose different facilities and cpu ids to the guest, so let's make them per-vm instead of global. In addition this patch renames all ocurrences of *

Re: [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-16 Thread Alexander Graf
On 13.05.14 16:58, Michael Mueller wrote: This patch enables cpu model support in kvm/s390 via the vm attribute interface. During KVM initialization, the host properties cpuid, IBC value and the facility list are stored in the architecture specific cpu model structure. During vcpu setup, these

[GIT PULL 02/12] KVM: s390: Improve is_valid_psw()

2014-05-16 Thread Christian Borntraeger
From: Thomas Huth As a program status word is also invalid (and thus generates an specification exception) if the instruction address is not even, we should test this in is_valid_psw(), too. This patch also exports the function so that it becomes available for other parts of the S390 KVM code as

[GIT PULL 08/12] KVM: s390: decoder of SIE intercepted instructions

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin This patch adds a new decoder of SIE intercepted instructions. The decoder implemented as a macro and potentially can be used in both kernelspace and userspace. Note that this simplified instruction decoder is only intended to be used with the subset of instructions that

[GIT PULL 12/12] KVM: s390: split SIE state guest prefix field

2014-05-16 Thread Christian Borntraeger
From: Michael Mueller This patch splits the SIE state guest prefix at offset 4 into a prefix bit field. Additionally it provides the access functions: - kvm_s390_get_prefix() - kvm_s390_set_prefix() to access the prefix per vcpu. Signed-off-by: Michael Mueller Reviewed-by: Cornelia Huck Ac

[GIT PULL 05/12] KVM: s390: Improved MVPG partial execution handler

2014-05-16 Thread Christian Borntraeger
From: Thomas Huth Use the new helper function kvm_arch_fault_in_page() for faulting-in the guest pages and only inject addressing errors when we've really hit a bad address (and return other error codes to userspace instead). Signed-off-by: Thomas Huth Reviewed-by: Christian Borntraeger Review

[GIT PULL 11/12] s390/sclp: add sclp_get_ibc function

2014-05-16 Thread Christian Borntraeger
From: Michael Mueller The patch adds functionality to retrieve the IBC configuration by means of function sclp_get_ibc(). Signed-off-by: Michael Mueller Acked-by: Cornelia Huck Acked-by: Heiko Carstens Acked-by: Christian Borntraeger --- arch/s390/include/asm/sclp.h | 1 + drivers/s390/c

[GIT PULL 01/12] KVM: s390: correct locking for s390_enable_skey

2014-05-16 Thread Christian Borntraeger
From: Martin Schwidefsky Use the mm semaphore to serialize multiple invocations of s390_enable_skey. The second CPU faulting on a storage key operation needs to wait for the completion of the page table update. Taking the mm semaphore writable has the positive side-effect that it prevents any hos

[GIT PULL 10/12] KVM: s390: interpretive execution of SIGP EXTERNAL CALL

2014-05-16 Thread Christian Borntraeger
From: David Hildenbrand If the sigp interpretation facility is installed, most SIGP EXTERNAL CALL operations will be interpreted instead of intercepted. A partial execution interception will occurr at the sending cpu only if the target cpu is in the wait state ("W" bit in the cpuflags set). Instr

[GIT PULL 03/12] KVM: s390: Avoid endless loops of specification exceptions

2014-05-16 Thread Christian Borntraeger
From: Thomas Huth If the new PSW for program interrupts is invalid, the VM ends up in an endless loop of specification exceptions. Since there is not much left we can do in this case, we should better drop to userspace instead so that the crash can be reported to the user. Signed-off-by: Thomas

[GIT PULL 07/12] KVM: s390: Use trace tables from sie.h.

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin Use the symbolic translation tables from sie.h for decoding diag, sigp and sie exit codes. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- arch/s390/kvm/trace.h | 32 +---

[GIT PULL 09/12] KVM: s390: Use intercept_insn decoder in trace event

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin The current trace definition doesn't work very well with the perf tool. Perf shows a "insn_to_mnemonic not found" message. Let's handle the decoding completely in a parseable format. Signed-off-by: Alexander Yarygin Acked-by: Christian Borntraeger Reviewed-by: Cornelia

[GIT PULL 00/12] KVM: s390: features and fixes for 3.16

2014-05-16 Thread Christian Borntraeger
-20140516 for you to fetch changes up to fda902cb8347da121025c4079b9e87748228a27e: KVM: s390: split SIE state guest prefix field (2014-05-16 14:57:31 +0200) 1. Correct locking for lazy storage key handling A test loop with multiple

[GIT PULL 06/12] KVM: s390: add sie exit reasons tables

2014-05-16 Thread Christian Borntraeger
From: Alexander Yarygin This patch defines tables of reasons for exiting from SIE mode in a new sie.h header file. Tables contain SIE intercepted codes, intercepted instructions and program interruptions codes. Signed-off-by: Alexander Yarygin Reviewed-by: Cornelia Huck Signed-off-by: Christia

[GIT PULL 04/12] KVM: s390: Introduce helper function for faulting-in a guest page

2014-05-16 Thread Christian Borntraeger
From: Thomas Huth Rework the function kvm_arch_fault_in_sync() to become a proper helper function for faulting-in a guest page. Now it takes the guest address as a parameter and does not ignore the possible error code from gmap_fault() anymore (which could cause undetected error conditions before

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 13:55:41 +0200 Alexander Graf wrote: > > On 13.05.14 16:58, Michael Mueller wrote: > > The patch introduces facilities and cpu_ids per virtual machine. > > Different virtual machines may want to expose different facilities and > > cpu ids to the guest, so let's make them per-

Re: [PATCH v1 RFC 0/6] KVM: s390: cpu model implementation

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 13:32:09 +0200 Christian Borntraeger wrote: > On 13/05/14 16:58, Michael Mueller wrote: > > The proposed patch set implements S390 cpu model support in kvm. A cpu > > model is defined by a triple comprizing the cpu type , the cpu facility > > set and instruction blocking contr

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Alexander Graf
On 16.05.14 16:46, Michael Mueller wrote: On Fri, 16 May 2014 13:55:41 +0200 Alexander Graf wrote: On 13.05.14 16:58, Michael Mueller wrote: The patch introduces facilities and cpu_ids per virtual machine. Different virtual machines may want to expose different facilities and cpu ids to the

Re: [PATCH v2] PCI: Introduce new device binding path using pci_dev.driver_override

2014-05-16 Thread Konrad Rzeszutek Wilk
On Fri, May 16, 2014 at 10:48:00AM -0400, Konrad Rzeszutek Wilk wrote: > On Fri, May 9, 2014 at 12:50 PM, Alex Williamson > wrote: > > > The driver_override field allows us to specify the driver for a device > > ... > > > ... > > > Signed-off-by: Alex Williamson > > Cc: Greg Kroah-Hartman > >

[PATCH v2] kvmclock: Ensure time in migration never goes backward

2014-05-16 Thread Alexander Graf
When we migrate we ask the kernel about its current belief on what the guest time would be. However, I've seen cases where the kvmclock guest structure indicates a time more recent than the kvm returned time. To make sure we never go backwards, calculate what the guest would have seen as time at t

[GIT PULL] KVM fixes for 3.15-rc6

2014-05-16 Thread Paolo Bonzini
Linus, The following changes since commit 89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd: Linux 3.15-rc4 (2014-05-04 18:14:42 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to a4e91d04b86504f145cc5f766c26093

Re: [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 14:08:24 +0200 Alexander Graf wrote: > > On 13.05.14 16:58, Michael Mueller wrote: > > This patch enables cpu model support in kvm/s390 via the vm attribute > > interface. > > > > During KVM initialization, the host properties cpuid, IBC value and the > > facility list are st

Re: [Qemu-devel] vfio - bind failure : user space recovery

2014-05-16 Thread Alex Williamson
[cc+ kvm] (kvm is the proper list for non-QEMU related vfio) On Fri, 2014-05-16 at 08:01 -0700, Saptarshi Sen wrote: > I am using a driver from user-space using vfio. > During intensive testing, when my application crashes. > I try to re-run the same, when I get a bind-failure. > Error code, is E

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 16:49:37 +0200 Alexander Graf wrote: > > On 16.05.14 16:46, Michael Mueller wrote: > > On Fri, 16 May 2014 13:55:41 +0200 > > Alexander Graf wrote: > > > >> On 13.05.14 16:58, Michael Mueller wrote: > >>> The patch introduces facilities and cpu_ids per virtual machine. > >>>

[Bug 76331] kernel BUG at drivers/iommu/intel-iommu.c:844!

2014-05-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=76331 Alex Williamson changed: What|Removed |Added CC||alex.william...@redhat.com --- Comment

USB and Windows guests

2014-05-16 Thread ckonstanski
Using app-emulation/qemu-2.0.0 from Gentoo portage. I'm a little fuzzy on whether qemu and kvm are the same thing. If they're not, kindly inform me and I'll be on my way. Also I don't know if this list is strictly for kernelspace issues or if userspace may also be discussed. And I can't be sure

[PATCH] x86: fix page fault tracing when KVM guest support enabled

2014-05-16 Thread Dave Hansen
From: Dave Hansen I noticed on some of my systems that page fault tracing doesn't work: cd /sys/kernel/debug/tracing echo 1 > events/exceptions/enable cat trace; # nothing shows up I eventually traced it down to CONFIG_KVM_GUEST. At least in a KVM VM, enabling

[Bug 76331] kernel BUG at drivers/iommu/intel-iommu.c:844!

2014-05-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=76331 --- Comment #2 from Matt --- Hi Alex, # dmesg | grep ecap [0.057396] dmar: IOMMU 0: reg_base_addr fbfff000 ver 1:0 cap c9008010e60262 ecap f020fa [0.057403] dmar: IOMMU 1: reg_base_addr fbffe000 ver 1:0 cap c9078010ef0462 ecap f020fe [ 1

Re: [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-16 Thread Alexander Graf
On 16.05.14 17:39, Michael Mueller wrote: On Fri, 16 May 2014 14:08:24 +0200 Alexander Graf wrote: On 13.05.14 16:58, Michael Mueller wrote: This patch enables cpu model support in kvm/s390 via the vm attribute interface. During KVM initialization, the host properties cpuid, IBC value and t

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Alexander Graf
On 16.05.14 18:09, Michael Mueller wrote: On Fri, 16 May 2014 16:49:37 +0200 Alexander Graf wrote: On 16.05.14 16:46, Michael Mueller wrote: On Fri, 16 May 2014 13:55:41 +0200 Alexander Graf wrote: On 13.05.14 16:58, Michael Mueller wrote: The patch introduces facilities and cpu_ids per

Re: [PATCH] x86: fix page fault tracing when KVM guest support enabled

2014-05-16 Thread Steven Rostedt
On Fri, 16 May 2014 12:45:15 -0700 Dave Hansen wrote: > > Steven had an alternative to this which has zero overhead when > tracing is off where this includes the standard noops even when > tracing is disabled. I'm unconvinced that the extra complexity > of his apporach: > > http://lkml.ke

Re: [PATCH] x86: fix page fault tracing when KVM guest support enabled

2014-05-16 Thread H. Peter Anvin
On 05/16/2014 12:45 PM, Dave Hansen wrote: > From: Dave Hansen > > I noticed on some of my systems that page fault tracing doesn't > work: > > cd /sys/kernel/debug/tracing > echo 1 > events/exceptions/enable > cat trace; > # nothing shows up > > I eventually traced it do

Re: [PATCH] x86: fix page fault tracing when KVM guest support enabled

2014-05-16 Thread Paolo Bonzini
Il 16/05/2014 22:53, H. Peter Anvin ha scritto: On 05/16/2014 12:45 PM, Dave Hansen wrote: From: Dave Hansen I noticed on some of my systems that page fault tracing doesn't work: cd /sys/kernel/debug/tracing echo 1 > events/exceptions/enable cat trace; # nothin

Re: [PATCH] x86: fix page fault tracing when KVM guest support enabled

2014-05-16 Thread Dave Hansen
On 05/16/2014 02:01 PM, Paolo Bonzini wrote: > Yes, of course. Dave, ok to only have it in 3.16? Sure, it's been broken for a long time, so it's no hurry to get fixed. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majo

Re: [PATCH v5 2/4] live migration support for initial write protect of VM

2014-05-16 Thread Mario Smarduch
Hi Christoffer, few more comments >>> struct vgic_distvgic; >>> + /* Marks start of migration, used to handle 2nd stage page faults >>> +* during migration, prevent installing huge pages and split huge pages >>> +* to small pages. >>> +*/ >> >> commenting style >> >> thi

Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-16 Thread Paolo Bonzini
Il 15/05/2014 18:51, Paolo Bonzini ha scritto: During task switch, all of CS.DPL, CS.RPL, SS.DPL must match (in addition to all the other requirements) and will be the new CPL. So far this worked by carefully setting the CS selector and flag before doing the s/flag/EFLAGS/ task switch; howev

Re: [PATCH] KVM: PPC: Book3S PR: Rework SLB switching code

2014-05-16 Thread Paul Mackerras
On Thu, May 15, 2014 at 02:43:53PM +0200, Alexander Graf wrote: > On LPAR guest systems Linux enables the shadow SLB to indicate to the > hypervisor a number of SLB entries that always have to be available. > > Today we go through this shadow SLB and disable all ESID's valid bits. > However, pHyp

Re: [PATCH] KVM: PPC: Book3S PR: Use SLB entry 0

2014-05-16 Thread Paul Mackerras
On Thu, May 15, 2014 at 02:43:51PM +0200, Alexander Graf wrote: > We didn't make use of SLB entry 0 because ... of no good reason. SLB entry 0 > will always be used by the Linux linear SLB entry, so the fact that slbia > does not invalidate it doesn't matter as we overwrite SLB 0 on exit anyway. >

Re: [PATCH 6/6] KVM: PPC: Book3S PR: Expose TM registers

2014-05-16 Thread Paul Mackerras
On Tue, Apr 29, 2014 at 06:17:42PM +0200, Alexander Graf wrote: > POWER8 introduces transactional memory which brings along a number of new > registers and MSR bits. > > Implementing all of those is a pretty big headache, so for now let's at least > emulate enough to make Linux's context switching