Re: [PATCH 13/16] PSCI: Add initial support for PSCIv0.2 functions

2014-05-27 Thread Shawn Guo
On Sun, May 25, 2014 at 08:18:59PM +0200, Christoffer Dall wrote: diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index c4ae171..b93e34a 100644 --- a/arch/arm/include/asm/psci.h +++ b/arch/arm/include/asm/psci.h @@ -29,16 +29,19 @@ struct psci_operations { int

Re: [PATCH 13/16] PSCI: Add initial support for PSCIv0.2 functions

2014-05-27 Thread Christoffer Dall
On Tue, May 27, 2014 at 03:44:55PM +0800, Shawn Guo wrote: On Sun, May 25, 2014 at 08:18:59PM +0200, Christoffer Dall wrote: diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index c4ae171..b93e34a 100644 --- a/arch/arm/include/asm/psci.h +++

[PATCH] arm: Fix compile warning for psci

2014-05-27 Thread Christoffer Dall
Commit e71246a23acbc89e9cb4ebf1558d60e65733479f changes psci_init from a function returning a void to an int, but does not change the non CONFIG_ARM_PSCI implementation to return a value, which causes a compile warning. Just return 0. Cc: Ashwin Chaugule ashwin.chaug...@linaro.org Cc: Shawn Guo

Re: [Qemu-devel] KVM call agenda for 2014-05-27

2014-05-27 Thread Michael Mueller
On Mon, 26 May 2014 14:00:20 +0200 Christian Borntraeger borntrae...@de.ibm.com wrote: On 21/05/14 23:43, Juan Quintela wrote: Hi Please, send any topic that you are interested in covering. (mostly) Michael Mueller - CPU models on s390 and other

Re: [PATCH kvm-unit-tests 00/18] lib/x86 TLC, extending tests for both 32- and 64-bits, and SMAP tests

2014-05-27 Thread Paolo Bonzini
Il 28/04/2014 17:22, Paolo Bonzini ha scritto: This series is structured as follows: - patches 1 to 8 cleanup lib/x86/, remove gratuitous differences between 32-bit and 64-bit, and unify code that is duplicated in various ways - patches 9 to 12 port some eventinj tests so that they run as

Re: [PATCH kvm-unit-tests] x86: test mov DR with ignored mod bits

2014-05-27 Thread Paolo Bonzini
Il 26/05/2014 23:06, Nadav Amit ha scritto: Tests whether the emulator ignores the mod bits on mov DR instruction. The test performs regular mov to DR0 and reads back the data using custom mov from DR0 while mod bits are set to zero. The expected result is obviously the value which was written

Re: [PATCH 13/16] PSCI: Add initial support for PSCIv0.2 functions

2014-05-27 Thread Paolo Bonzini
Il 27/05/2014 11:18, Christoffer Dall ha scritto: On Tue, May 27, 2014 at 03:44:55PM +0800, Shawn Guo wrote: On Sun, May 25, 2014 at 08:18:59PM +0200, Christoffer Dall wrote: diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index c4ae171..b93e34a 100644 ---

Re: [PATCH 13/16] PSCI: Add initial support for PSCIv0.2 functions

2014-05-27 Thread Christoffer Dall
On Tue, May 27, 2014 at 11:27:10AM +0200, Paolo Bonzini wrote: Il 27/05/2014 11:18, Christoffer Dall ha scritto: On Tue, May 27, 2014 at 03:44:55PM +0800, Shawn Guo wrote: On Sun, May 25, 2014 at 08:18:59PM +0200, Christoffer Dall wrote: diff --git a/arch/arm/include/asm/psci.h

Re: [PATCH 13/16] PSCI: Add initial support for PSCIv0.2 functions

2014-05-27 Thread Paolo Bonzini
Il 27/05/2014 11:46, Christoffer Dall ha scritto: Not sure I see why that makes a difference for a one-line fix patch, but ok. You want a new pull request with just this patch or a new pull request instead of the existing one containing all the PSCI patches + this fixup patch? I prefer this

[PATCH] kvmtool: virtio: pass trapped vcpu to IO accessors

2014-05-27 Thread Marc Zyngier
The recent introduction of bi-endianness on arm/arm64 had the odd effect of breaking virtio-pci support on these platforms, as the device endian field defaults to being VIRTIO_ENDIAN_HOST, which is the wrong thing to have on a bi-endian capable architecture. The fix is to check for the endianness

KVM call minutes for 2014-05-27

2014-05-27 Thread Juan Quintela
CPU models on s390 -- (If you look at call for agenda, you can see that there was a pdf for helping understand the problem) - new features only appears on new processors (manchine models). Old models gets exactly the same facilities independently of the Host that they are

[PATCH kvm-unit-tests] x86: access: test pde.13

2014-05-27 Thread Paolo Bonzini
A bit that is only reserved for large pages. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- x86/access.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/x86/access.c b/x86/access.c index e49a892..02b20ca 100644 --- a/x86/access.c +++ b/x86/access.c

Re: [PATCH v6 1/4] add ARMv7 HYP API to flush VM TLBs without address param

2014-05-27 Thread Christoffer Dall
On Thu, May 15, 2014 at 11:27:28AM -0700, Mario Smarduch wrote: Patch adds HYP interface for global VM TLB invalidation without address parameter. Added ARM version of kvm_flush_remote_tlbs(), made generic one weak. nit: made the generic implementation a weak symbol. -- To unsubscribe from

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

2014-05-27 Thread Christoffer Dall
On Thu, May 15, 2014 at 11:27:29AM -0700, Mario Smarduch wrote: Patch adds memslot support for initial write protection and split up of huge pages I lost track of where we are with these patches, but I see a lot of issues in this patch that I believe I already commented on (but I may not have

Re: [PATCH v6 3/4] live migration support for VM dirty log management

2014-05-27 Thread Christoffer Dall
On Thu, May 15, 2014 at 11:27:30AM -0700, Mario Smarduch wrote: This patch adds support for keeping track of VM dirty pages, by updating per memslot dirty bitmap and write protecting the page again. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/include/asm/kvm_host.h |

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

2014-05-27 Thread Mario Smarduch
Hi Christoffer, I was out traveling last week + holiday. You had lots of comments in last version (incl. below), reworking to submit a new series. Un-clutter from basic issues, and update current logic. In next couple days I'll submit new series. Also looking into a wiki to document test env

Re: [PATCH v6 4/4] add 2nd stage page fault handling during live migration

2014-05-27 Thread Christoffer Dall
On Thu, May 15, 2014 at 11:27:31AM -0700, Mario Smarduch wrote: This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and splits up existing huge pages. Signed-off-by: Mario Smarduch m.smard...@samsung.com --- arch/arm/kvm/mmu.c |

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

2014-05-27 Thread Christoffer Dall
On Tue, May 27, 2014 at 01:15:46PM -0700, Mario Smarduch wrote: Hi Christoffer, I was out traveling last week + holiday. You had lots of comments in last version (incl. below), reworking to submit a new series. Un-clutter from basic issues, and update current logic. In next couple days

Re: [PATCH v6 3/4] live migration support for VM dirty log management

2014-05-27 Thread Mario Smarduch
On 05/27/2014 01:12 PM, Christoffer Dall wrote: On Thu, May 15, 2014 at 11:27:30AM -0700, Mario Smarduch wrote: This patch adds support for keeping track of VM dirty pages, by updating per memslot dirty bitmap and write protecting the page again. Signed-off-by: Mario Smarduch

Re: [GIT PULL] KVM fixes for 3.15-rc6

2014-05-27 Thread Paul Mackerras
On Fri, May 16, 2014 at 05:28:32PM +0200, Paolo Bonzini wrote: 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

Re: [GIT PULL] KVM fixes for 3.15-rc6

2014-05-27 Thread Linus Torvalds
On Tue, May 27, 2014 at 3:08 PM, Paul Mackerras pau...@samba.org wrote: Linus seems not to have done this pull yet - Paolo, maybe you should resend the request and cc Linus this time? Indeed. I don't pull stuff unless it's explicitly sent to me, and this one seems to have been sent just to the

Re: [PATCH v6 4/4] add 2nd stage page fault handling during live migration

2014-05-27 Thread Mario Smarduch
On 05/27/2014 01:19 PM, Christoffer Dall wrote: On Thu, May 15, 2014 at 11:27:31AM -0700, Mario Smarduch wrote: This patch adds support for handling 2nd stage page faults during migration, it disables faulting in huge pages, and splits up existing huge pages. Signed-off-by: Mario Smarduch

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

2014-05-27 Thread Bjorn Helgaas
On Tue, May 20, 2014 at 08:53:21AM -0600, Alex Williamson wrote: The driver_override field allows us to specify the driver for a device rather than relying on the driver to provide a positive match of the device. This shortcuts the existing process of looking up the vendor and device ID,

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

2014-05-27 Thread Greg KH
On Tue, May 27, 2014 at 09:07:42PM -0600, Bjorn Helgaas wrote: On Tue, May 20, 2014 at 08:53:21AM -0600, Alex Williamson wrote: The driver_override field allows us to specify the driver for a device rather than relying on the driver to provide a positive match of the device. This shortcuts

[PATCH v7 0/3] EEH Support for VFIO PCI Device

2014-05-27 Thread Gavin Shan
The series of patches intends to support EEH for PCI devices, which are passed through to PowerKVM based guest via VFIO. The implementation is straightforward based on the issues or problems we have to resolve to support EEH for PowerKVM based guest. - Emulation for EEH RTAS requests. All EEH

[PATCH v7 2/3] powerpc/eeh: EEH support for VFIO PCI device

2014-05-27 Thread Gavin Shan
The patch exports functions to be used by new ioctl commands, which will be introduced in subsequent patch, to support EEH functinality for VFIO PCI device. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- arch/powerpc/include/asm/eeh.h | 15 +++ arch/powerpc/kernel/eeh.c | 286

[PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Gavin Shan
The patch adds new IOCTL commands for sPAPR VFIO container device to support EEH functionality for PCI devices, which have been passed through from host to somebody else via VFIO. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- Documentation/vfio.txt | 92

Re: [PATCH v6 2/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Alex Williamson
On Sat, 2014-05-24 at 12:06 +1000, Gavin Shan wrote: On Fri, May 23, 2014 at 08:29:59AM -0600, Alex Williamson wrote: On Fri, 2014-05-23 at 14:37 +1000, Gavin Shan wrote: On Thu, May 22, 2014 at 09:10:53PM -0600, Alex Williamson wrote: On Thu, 2014-05-22 at 18:23 +1000, Gavin Shan wrote:

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Alex Williamson
On Tue, 2014-05-27 at 18:40 +1000, Gavin Shan wrote: The patch adds new IOCTL commands for sPAPR VFIO container device to support EEH functionality for PCI devices, which have been passed through from host to somebody else via VFIO. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com ---

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Benjamin Herrenschmidt
On Tue, 2014-05-27 at 12:15 -0600, Alex Williamson wrote: +/* + * Reset is the major step to recover problematic PE. The following + * command helps on that. + */ +struct vfio_eeh_pe_reset { + __u32 argsz; + __u32 flags; + __u32 option; +#define

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Alex Williamson
On Wed, 2014-05-28 at 06:30 +1000, Benjamin Herrenschmidt wrote: On Tue, 2014-05-27 at 12:15 -0600, Alex Williamson wrote: +/* + * Reset is the major step to recover problematic PE. The following + * command helps on that. + */ +struct vfio_eeh_pe_reset { + __u32 argsz; +

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Benjamin Herrenschmidt
On Tue, 2014-05-27 at 14:37 -0600, Alex Williamson wrote: The usual way is the driver asks for one or the other, this plumbs back into the guest EEH code which itself plumbs into the PCIe error recovery framework in Linux. So magic? Yes. The driver is expected to more or less knows what

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Alexander Graf
On 27.05.14 20:15, Alex Williamson wrote: On Tue, 2014-05-27 at 18:40 +1000, Gavin Shan wrote: The patch adds new IOCTL commands for sPAPR VFIO container device to support EEH functionality for PCI devices, which have been passed through from host to somebody else via VFIO. Signed-off-by:

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Alex Williamson
On Wed, 2014-05-28 at 00:49 +0200, Alexander Graf wrote: On 27.05.14 20:15, Alex Williamson wrote: On Tue, 2014-05-27 at 18:40 +1000, Gavin Shan wrote: The patch adds new IOCTL commands for sPAPR VFIO container device to support EEH functionality for PCI devices, which have been passed

Re: [PATCH v7 3/3] drivers/vfio: EEH support for VFIO PCI device

2014-05-27 Thread Alex Williamson
On Wed, 2014-05-28 at 02:44 +0200, Alexander Graf wrote: On 28.05.14 02:39, Alex Williamson wrote: On Wed, 2014-05-28 at 00:49 +0200, Alexander Graf wrote: On 27.05.14 20:15, Alex Williamson wrote: On Tue, 2014-05-27 at 18:40 +1000, Gavin Shan wrote: The patch adds new IOCTL commands for