Re: [PATCH v6 03/27] x86, boot: move verify_cpu.S and no_longmode after 0x200

2012-12-21 Thread Konrad Rzeszutek Wilk
On Wed, Dec 19, 2012 at 01:58:57PM -0800, Yinghai Lu wrote: On Wed, Dec 19, 2012 at 12:57 PM, Borislav Petkov b...@alien8.de wrote: On Tue, Dec 18, 2012 at 07:44:55PM -0800, Yinghai Lu wrote: So this explains what you're doing but I'd like to know why? Why do you need to free some more

Re: [PATCH v7 24/27] x86: Add swiotlb force off support

2012-12-21 Thread Konrad Rzeszutek Wilk
On Mon, Dec 17, 2012 at 11:15:56PM -0800, Yinghai Lu wrote: So use could disable swiotlb from command line, even swiotlb support is compiled in. Just like we have intel_iommu=on and intel_iommu=off. You really need to spell out why this is useful. Signed-off-by: Yinghai Lu

Re: [PATCH v7 00/27] x86, boot, 64bit: Add support for loading ramdisk and bzImage above 4G

2012-12-21 Thread Konrad Rzeszutek Wilk
On Mon, Dec 17, 2012 at 11:15:32PM -0800, Yinghai Lu wrote: Now we have limit kdump reseved under 896M, because kexec has the limitation. and also bzImage need to stay under 4g. To make kexec/kdump could use range above 4g, we need to make bzImage and ramdisk could be loaded above 4g.

Re: [PATCH v7 24/27] x86: Add swiotlb force off support

2012-12-21 Thread Konrad Rzeszutek Wilk
On Fri, Dec 21, 2012 at 06:42:47PM -0800, Eric W. Biederman wrote: Konrad Rzeszutek Wilk konrad.w...@oracle.com writes: On Mon, Dec 17, 2012 at 11:15:56PM -0800, Yinghai Lu wrote: So use could disable swiotlb from command line, even swiotlb support is compiled in. Just like we have

Re: [PATCH v7 24/27] x86: Add swiotlb force off support

2012-12-22 Thread Konrad Rzeszutek Wilk
On Fri, Dec 21, 2012 at 07:23:03PM -0800, Eric W. Biederman wrote: Konrad Rzeszutek Wilk konrad.w...@oracle.com writes: On Fri, Dec 21, 2012 at 06:42:47PM -0800, Eric W. Biederman wrote: Konrad Rzeszutek Wilk konrad.w...@oracle.com writes: On Mon, Dec 17, 2012 at 11:15:56PM -0800

Re: [PATCH v7 00/27] x86, boot, 64bit: Add support for loading ramdisk and bzImage above 4G

2012-12-22 Thread Konrad Rzeszutek Wilk
On Fri, Dec 21, 2012 at 07:01:21PM -0800, H. Peter Anvin wrote: Earlyprintk please? PXELINUX 3.82 2009-06-09 Copyright (C) 1994-2009 H. Peter Anvin et al Loading vmlinuz... Loading

Re: [PATCH v7 00/27] x86, boot, 64bit: Add support for loading ramdisk and bzImage above 4G

2012-12-22 Thread Konrad Rzeszutek Wilk
On Sat, Dec 22, 2012 at 02:38:29AM -0800, Yinghai Lu wrote: On Fri, Dec 21, 2012 at 6:42 PM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Mon, Dec 17, 2012 at 11:15:32PM -0800, Yinghai Lu wrote: Now we have limit kdump reseved under 896M, because kexec has the limitation

Re: [Xen-devel] [PATCH 08/14] xen: netback: Remove redundant check on unsigned variable

2013-01-02 Thread Konrad Rzeszutek Wilk
On Fri, Dec 28, 2012 at 10:41:32AM +, Wei Liu wrote: On Fri, 2012-12-28 at 05:15 +, Tushar Behera wrote: On 11/16/2012 02:46 PM, Ian Campbell wrote: On Fri, 2012-11-16 at 06:50 +, Tushar Behera wrote: No need to check whether unsigned variable is less than 0. CC: Ian

Re: [PATCH 2/3] staging: ramster: move to new zcache2 codebase

2013-01-02 Thread Konrad Rzeszutek Wilk
On Fri, Dec 28, 2012 at 08:59:01PM +0100, Geert Uytterhoeven wrote: On Wed, Sep 5, 2012 at 10:45 PM, Dan Magenheimer dan.magenhei...@oracle.com wrote: + * These are all informative and exposed through debugfs... except for + * the arrays... anyone know how to do that? To avoid confusion for

Re: [PATCH v5 00/12] x86/microcode: Early load microcode

2013-01-03 Thread Konrad Rzeszutek Wilk
On Thu, Dec 20, 2012 at 11:44:20PM -0800, Fenghua Yu wrote: From: Fenghua Yu fenghua...@intel.com The problem in current microcode loading method is that we load a microcode way, way too late; ideally we should load it before turning paging on. This may only be practical on 32 bits

Re: [Xen-devel] [PATCH v3 00/11] xen: Initial kexec/kdump implementation

2013-01-04 Thread Konrad Rzeszutek Wilk
On Fri, Jan 04, 2013 at 03:22:57PM +0100, Daniel Kiper wrote: On Wed, Jan 02, 2013 at 11:26:43AM +, Andrew Cooper wrote: On 27/12/12 18:02, Eric W. Biederman wrote: Andrew Cooperandrew.coop...@citrix.com writes: On 27/12/2012 07:53, Eric W. Biederman wrote: The syscall ABI still

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-04 Thread Konrad Rzeszutek Wilk
-by: Eric W. Biederman ebied...@xmission.com Signed-off-by: Yinghai Lu ying...@kernel.org Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Joerg Roedel j...@8bytes.org --- arch/x86/kernel/pci-swiotlb.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git

Re: [Xen-devel] [PATCH v3 00/11] xen: Initial kexec/kdump implementation

2013-01-04 Thread Konrad Rzeszutek Wilk
On Fri, Jan 04, 2013 at 06:07:51PM +0100, Daniel Kiper wrote: On Fri, Jan 04, 2013 at 02:41:17PM +, Jan Beulich wrote: On 04.01.13 at 15:22, Daniel Kiper daniel.ki...@oracle.com wrote: On Wed, Jan 02, 2013 at 11:26:43AM +, Andrew Cooper wrote: /sbin/kexec can load the Xen crash

[GIT PULL] (xen) stable/for-linus-3.8-rc0-tag

2012-12-12 Thread Konrad Rzeszutek Wilk
xen_pfn_t in remap_domain_mfn_range. xen: arm: implement remap interfaces needed for privcmd mappings. Jan Beulich (2): xen-pciback: simplify and tighten parsing of device IDs xen-pciback: reject out of range inputs Konrad Rzeszutek Wilk (2): xen/acpi: Fix compile error by missing

Re: [PATCH] xen/swiotlb: Exchange to contiguous memory for map_sg hook

2012-12-13 Thread Konrad Rzeszutek Wilk
On Wed, Dec 12, 2012 at 01:03:55AM +, Xu, Dongxiao wrote: -Original Message- From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] Sent: Wednesday, December 12, 2012 1:07 AM To: Xu, Dongxiao Cc: xen-de...@lists.xen.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH

Re: [PATCH V4] xen/privcmd: improve-performance-of-mapping-of-guest

2012-12-13 Thread Konrad Rzeszutek Wilk
On Wed, Dec 12, 2012 at 10:09:38PM +, Mats Petersson wrote: One comment asked for more details on the improvements: Using a small test program to map Guest memory into Dom0 (repeatedly for Iterations mapping the same first Num Pages) I missed this in my for 3.8 queue. I will queue it up

Re: 3.8.0-rc0 on xen-unstable: RCU Stall during boot as dom0 kernel after IOAPIC

2012-12-16 Thread Konrad Rzeszutek Wilk
On Fri, Dec 14, 2012 at 04:55:57PM +0100, Sander Eikelenboom wrote: Hi Konrad, I just tried to boot a 3.8.0-rc0 kernel (last commit: 7313264b899bbf3988841296265a6e0e8a7b6521) as dom0 on my machine with current xen-unstable. Yeah, saw it over the Dec 11-Dec 12 merges and was out on

[GIT PULL] (swiotlb) stable/for-linus-3.8-rc0-tag

2012-12-16 Thread Konrad Rzeszutek Wilk
Hey Linus, Please git pull the following tag: git pull git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git stable/for-linus-3.8-rc0-tag which has one feature in the SWIOTLB code. That is to remove the multitude of phys_to_virt/virt_to_phys calls and instead operate on the physical

Re: [PATCH 2/5] mm: frontswap: lazy initialization to allow tmem backends to build/run as modules

2012-11-14 Thread Konrad Rzeszutek Wilk
On Sat, Nov 3, 2012 at 2:27 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Wed, Oct 31, 2012 at 12:05:32PM -0500, Seth Jennings wrote: On 10/31/2012 10:07 AM, Dan Magenheimer wrote: With the goal of allowing tmem backends (zcache, ramster, Xen tmem) to be built/loaded

[PATCH 2/8] mm: frontswap: lazy initialization to allow tmem backends to build/run as modules

2012-11-14 Thread Konrad Rzeszutek Wilk
-by: Andor Daam andor.d...@googlemail.com Signed-off-by: Dan Magenheimer dan.magenhei...@oracle.com [v1: Fixes per Seth Jennings suggestions] [v2: Removed FRONTSWAP_HAS_.. ] [v3: Fix up per Bob Liu lliu...@gmail.com recommendations] Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- mm

[PATCH 4/8] cleancache: Make cleancache_init use a pointer for the ops

2012-11-14 Thread Konrad Rzeszutek Wilk
Instead of using a backend_registered to determine whether a backend is enabled. This allows us to remove the backend_register check and just do 'if (cleancache_ops)' Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c |8 +++--- drivers

[PATCH 5/8] staging: zcache2+ramster: enable ramster to be built/loaded as a module

2012-11-14 Thread Konrad Rzeszutek Wilk
is retained, but this should be considered deprecated. Note that module unload is explicitly not yet supported. Signed-off-by: Dan Magenheimer dan.magenhei...@oracle.com [v1: Fixed compile issues since ramster_init now has four arguments] Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com

[PATCH 7/8] xen: tmem: enable Xen tmem shim to be built/loaded as a module

2012-11-14 Thread Konrad Rzeszutek Wilk
supported. Signed-off-by: Dan Magenheimer dan.magenhei...@oracle.com [v1: Removed the [CLEANCACHE|FRONTSWAP]_HAS_LAZY_INIT ifdef] Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/xen/Kconfig |4 ++-- drivers/xen/tmem.c| 38

[PATCH 8/8] xen/tmem: Remove the subsys call.

2012-11-14 Thread Konrad Rzeszutek Wilk
as xen_selfballoon_init ends up being exported and can be called by the tmem module. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/xen/xen-selfballoon.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/xen/xen-selfballoon.c b/drivers/xen/xen

[PATCH 6/8] staging: zcache2+ramster: enable zcache2 to be built/loaded as a module

2012-11-14 Thread Konrad Rzeszutek Wilk
...@oracle.com [v1: Rebased with different order of patches] [v2: Removed [CLEANCACHE|FRONTSWAP]_HAS_LAZY_INIT ifdef] Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/Kconfig |6 ++-- drivers/staging/ramster/Makefile | 11 --- drivers/staging

[PATCH v2] enable all tmem backends to be built and loaded as modules.

2012-11-14 Thread Konrad Rzeszutek Wilk
to be built/loaded as a module xen: tmem: enable Xen tmem shim to be built/loaded as a module Konrad Rzeszutek Wilk (3): frontswap: Make frontswap_init use a pointer for the ops. cleancache: Make cleancache_init use a pointer for the ops xen/tmem: Remove the subsys call

[PATCH 1/8] mm: cleancache: lazy initialization to allow tmem backends to build/run as modules

2012-11-14 Thread Konrad Rzeszutek Wilk
Schmaus fschm...@gmail.com Signed-off-by: Andor Daam andor.d...@googlemail.com Signed-off-by: Dan Magenheimer dan.magenhei...@oracle.com [v1: Minor fixes: used #define for some values and bools] [v2: Removed CLEANCACHE_HAS_LAZY_INIT] Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- mm

[PATCH 3/8] frontswap: Make frontswap_init use a pointer for the ops.

2012-11-14 Thread Konrad Rzeszutek Wilk
This simplifies the code in the frontswap - we can get rid of the 'backend_registered' test and instead check against frontswap_ops. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c |8 +++--- drivers/staging/zcache/zcache-main.c |8

[PATCH v2] enable all tmem backends to be built and loaded as modules.

2012-11-14 Thread Konrad Rzeszutek Wilk
(+), 113 deletions(-) From Konrad Rzeszutek Wilk konrad.w...@oracle.com # This line is ignored. Subject: [PATCH v2] enable all tmem backends to be built and loaded as modules. Changelog since [v1: https://lkml.org/lkml/2012/10/31/403] - Addressed various people comments (most of them in the frontswap

[PATCH 06/11] zcache: Move debugfs code out of zcache-main.c file.

2012-11-14 Thread Konrad Rzeszutek Wilk
Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/Makefile |1 + drivers/staging/ramster/debug.c | 113 +++ drivers/staging/ramster/debug.h | 183

[PATCH 01/11] zcache: Provide accessory functions for counter increase

2012-11-14 Thread Konrad Rzeszutek Wilk
This is the first step in moving the debugfs code out of the main file in-to another file. And will also allow the code to run without CONFIG_DEBUG_FS set. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging

[PATCH 09/11] zcache: Allow to compile if ZCACHE_DEBUG and !DEBUG_FS

2012-11-14 Thread Konrad Rzeszutek Wilk
is defined. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/debug.h | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ramster/debug.h b/drivers

[PATCH 10/11] zcache: Module license is defined twice.

2012-11-14 Thread Konrad Rzeszutek Wilk
The other (same license) is at the end of the file. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 11/11] zcache: Coalesce all debug under CONFIG_ZCACHE2_DEBUG

2012-11-14 Thread Konrad Rzeszutek Wilk
and also define this extra attribute in the Kconfig entry. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/Kconfig |8 drivers/staging/ramster/Makefile |2 +- drivers

[PATCH 08/11] zcache: Move the last of the debugfs counters out

2012-11-14 Thread Konrad Rzeszutek Wilk
We now have in zcache-main only the counters that are are not debugfs related. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/debug.h | 80 + drivers/staging

[PATCH 07/11] zcache: Use an array to initialize/use debugfs attributes.

2012-11-14 Thread Konrad Rzeszutek Wilk
It makes it neater and also allows us to piggyback on that in the zcache_dump function. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/debug.c | 141 +-- 1 files

[PATCH 05/11] zcache: Make the debug code use pr_debug

2012-11-14 Thread Konrad Rzeszutek Wilk
Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c | 69 - 1 files changed, 33 insertions(+), 36 deletions(-) diff --git a/drivers/staging/ramster/zcache-main.c b/drivers/staging/ramster/zcache-main.c index 6988f5c..a43c3b0 100644

[PATCH 03/11] zcache: The last of the atomic reads has now an accessory function.

2012-11-14 Thread Konrad Rzeszutek Wilk
And now we can move the code to its own file. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 02/11] zcache: Provide accessory functions for counter decrease.

2012-11-14 Thread Konrad Rzeszutek Wilk
This way we can have all wrapped with these functions and can disable/enable this with CONFIG_DEBUG_FS eventually. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c | 88

[PATCH 04/11] zcache: Fix compile warnings due to usage of debugfs_create_size_t

2012-11-14 Thread Konrad Rzeszutek Wilk
end up using 'unsigned' or 'unsigned long' instead of 'ssize_t'. So lets fix this up and use the proper type. Reviewed-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/staging/ramster/zcache-main.c | 135

Re: [PATCH v2] add xen-tpmfront.ko: Xen Virtual TPM frontend driver

2012-11-16 Thread Konrad Rzeszutek Wilk
On Mon, Nov 12, 2012 at 12:22:01PM -0500, Matthew Fioravante wrote: On 11/12/2012 11:30 AM, Konrad Rzeszutek Wilk wrote: On Mon, Nov 12, 2012 at 09:29:58AM -0500, Matthew Fioravante wrote: This patch ports the xen vtpm frontend driver for linux from the linux-2.6.18-xen.hg tree to linux-stable

Re: [PATCH 09/14] xen: events: Remove redundant check on unsigned variable

2012-11-16 Thread Konrad Rzeszutek Wilk
On Fri, Nov 16, 2012 at 12:20:41PM +0530, Tushar Behera wrote: No need to check whether unsigned variable is less than 0. CC: Konrad Rzeszutek Wilk konrad.w...@oracle.com Acked-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com CC: Jeremy Fitzhardinge jer...@goop.org CC: xen-de

Re: [PATCH v2] enable all tmem backends to be built and loaded as modules.

2012-11-16 Thread Konrad Rzeszutek Wilk
Um, that is what I get from doing this while traveling. This is the writeup: From: Konrad Rzeszutek Wilk konrad.w...@oracle.com Subject: [PATCH] zcache2 cleanups (s/int/bool/ + debugfs move). In-Reply-To: Changelog since rfc: https://lkml.org/lkml/2012/11/5/549 - Added Reviewed-by from Dan

Re: [PATCH v4] x86/xen: Use __pa_symbol instead of __pa on C visible symbols

2012-11-16 Thread Konrad Rzeszutek Wilk
pointer is a part of the kernel text or just standard virtual memory. Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Alexander Duyck alexander.h.du...@intel.com --- v4: I have spun this patch off as a separate patch for v4 due to the fact that this patch doesn't apply

Re: [PATCH 01/16] iommu/amd: Keep track of HPET and IOAPIC device ids

2012-09-28 Thread Konrad Rzeszutek Wilk
) + list = ioapic_map; + else + list = hpet_map; + + list_add_tail(entry-list, list); + + return 0; +} + Reviwed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH 04/16] iommu/amd: Check if IOAPIC information is correct

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 02:23:54PM +0200, Joerg Roedel wrote: When the IOAPIC information provided in the IVRS table is not correct or not complete the system may not boot at all when interrupt remapping is enabled. So check if this information is correct and print out a firmware bug message

Re: [PATCH 05/16] iommu/amd: Split device table initialization into irq and dma part

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 02:23:55PM +0200, Joerg Roedel wrote: When the IOMMU is enabled very early (as with irq-remapping) some devices are still in BIOS hand. When dma is blocked early this can cause lots of IO_PAGE_FAULTs. So delay the DMA initialization and do it right before the dma_ops

Re: [PATCH 07/16] iommu/amd: Add IRTE invalidation routine

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 02:23:57PM +0200, Joerg Roedel wrote: Add routine to invalidate the IOMMU cache for interupt translations. Also include the IRTE caches when flushing all IOMMU caches. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- drivers/iommu/amd_iommu.c | 27

Re: [PATCH 08/16] iommu/amd: Add routines to manage irq remapping tables

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 02:23:58PM +0200, Joerg Roedel wrote: Add routines to: * Alloc remapping tables and single entries from these tables * Change entries in the tables * Free entries in the table Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- drivers/iommu/amd_iommu.c |

Re: [PATCH 09/16] iommu/amd: Add IOAPIC remapping routines

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 02:23:59PM +0200, Joerg Roedel wrote: Add the routine to setup interrupt remapping for ioapic interrupts. Also add a routine to change the affinity of an irq and to free an irq allocation for interrupt remapping. The last two functions will also be used for MSI

Re: [PATCH 10/16] iommu/amd: Implement MSI routines for interrupt remapping

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 02:24:00PM +0200, Joerg Roedel wrote: Add routines to setup interrupt remapping for MSI interrupts. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- drivers/iommu/amd_iommu.c | 74 + 1 file changed, 74

Re: [PATCH 05/16] iommu/amd: Split device table initialization into irq and dma part

2012-09-28 Thread Konrad Rzeszutek Wilk
On Fri, Sep 28, 2012 at 04:25:55PM +0200, Joerg Roedel wrote: On Fri, Sep 28, 2012 at 10:17:53AM -0400, Konrad Rzeszutek Wilk wrote: On Fri, Sep 28, 2012 at 02:23:55PM +0200, Joerg Roedel wrote: When the IOMMU is enabled very early (as with irq-remapping) some devices are still in BIOS

Re: [PATCH 01/11] kexec: introduce kexec_ops struct

2012-09-28 Thread Konrad Rzeszutek Wilk
On Thu, Sep 27, 2012 at 08:06:28PM +0200, Daniel Kiper wrote: Some kexec/kdump implementations (e.g. Xen PVOPS) on different archs could not use default functions or require some changes in behavior of kexec/kdump generic code. To cope with that problem kexec_ops struct was introduced. It

Re: [PATCH 03/11] xen: Introduce architecture independent data for kexec/kdump

2012-09-28 Thread Konrad Rzeszutek Wilk
On Thu, Sep 27, 2012 at 08:06:30PM +0200, Daniel Kiper wrote: Introduce architecture independent constants and structures Don't you mean 'dependent constants'? required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- include/xen/interface/xen.h

Re: [PATCH 05/11] x86/xen: Register resources required by kexec-tools

2012-09-28 Thread Konrad Rzeszutek Wilk
, Oracle Corporation + * + * kexec/kdump implementation for Xen was written by Daniel Kiper. + * Initial work on it was sponsored by Google under Google Summer + * of Code 2011 program and Citrix. Konrad Rzeszutek Wilk from Oracle + * was the mentor for this project. + * + * Some ideas are taken

Re: [PATCH 06/11] x86/xen: Add i386 kexec/kdump implementation

2012-09-28 Thread Konrad Rzeszutek Wilk
under Google Summer + * of Code 2011 program and Citrix. Konrad Rzeszutek Wilk from Oracle + * was the mentor for this project. + * + * Some ideas are taken from: + * - native kexec/kdump implementation, + * - kexec/kdump implementation for Xen Linux Kernel Ver. 2.6.18, + * - PV-GRUB

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-28 Thread Konrad Rzeszutek Wilk
PLE: - works for unmodified / non-Linux guests - works for all types of spins (e.g. smp_call_function*()) - utilizes an existing hardware interface (PAUSE instruction) so likely more robust compared to a software interface PV: - has more information, so it can perform better

Re: [PATCH 09/16] iommu/amd: Add IOAPIC remapping routines

2012-10-01 Thread Konrad Rzeszutek Wilk
On Mon, Oct 01, 2012 at 10:40:51AM +0200, Joerg Roedel wrote: On Fri, Sep 28, 2012 at 10:45:15AM -0400, Konrad Rzeszutek Wilk wrote: On Fri, Sep 28, 2012 at 02:23:59PM +0200, Joerg Roedel wrote: + /* + * Mask level triggered irqs. + * Use IRQ_DELAYED_DISABLE for edge triggered irqs

Re: [GIT PULL] Xen on ARM

2012-10-01 Thread Konrad Rzeszutek Wilk
On Mon, Oct 01, 2012 at 11:20:03AM +0100, Stefano Stabellini wrote: Hi Konrad, please pull the following changes, based on your branch stable/for-linus-3.7 (ecc635f90adfe1b7cd5fd354f49edfbf24aa4e3e): Pulled (to be truthful I actually pulled it on Wednesday and have had it running over the last

Re: [PATCH 09/16] iommu/amd: Add IOAPIC remapping routines

2012-10-01 Thread Konrad Rzeszutek Wilk
I was thinking the other way around. You recover the old affinity. Should you print out a warning mentioning to the system admin that you could not set the new affinity but reverted to the old one? Or will that not serve anything except spam the kernel logs? Well, I don't think it makes

Re: linux-next: manual merge of the xen-two tree with the arm tree

2012-10-02 Thread Konrad Rzeszutek Wilk
On Tue, Oct 02, 2012 at 02:11:41PM +1000, Stephen Rothwell wrote: Hi Konrad, Today's linux-next merge of the xen-two tree got a conflict in arch/arm/Kconfig between commit bd51e2f59558 (ARM: 7506/1: allow for ATAGS to be configured out when DT support is selected) from the arm tree and

Re: linux-next: manual merge of the xen-two tree with Linus' tree

2012-10-02 Thread Konrad Rzeszutek Wilk
On Tue, Oct 02, 2012 at 12:54:20PM +0100, Jan Beulich wrote: On 02.10.12 at 13:45, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Considering that dbgp doesn't seem to be very useful without PCI at the moment, could we just turn it into: dom0-$(CONFIG_PCI) += dbgp.o

[GIT PULL] (frontswap) stable/for-linus-3.7-tag

2012-10-02 Thread Konrad Rzeszutek Wilk
if tmem backend is capable Konrad Rzeszutek Wilk (1): mm: frontswap: remove unneeded headers Seth Jennings (1): mm/frontswap: fix uninit'ed variable warning Wanpeng Li (1): mm/frontswap: cleanup doc and comment error Zhenzhong Duan (1): mm: frontswap: fix a wrong if condition

[GIT PULL] (xen) stable/for-linus-3.7-x86-tag

2012-10-02 Thread Konrad Rzeszutek Wilk
specifications xen/vga: add the xen EFI video mode support xen-pciback: properly clean up after calling pcistub_device_find() Konrad Rzeszutek Wilk (31): xen/perf: Define .glob for the different hypercalls. xen/p2m: Fix the comment describing the P2M tree. xen/x86: Use

Re: [PATCH v2] xen/Makefile: resolve merge conflict with 9fa5780beea1

2012-10-02 Thread Konrad Rzeszutek Wilk
On Tue, Oct 02, 2012 at 05:45:17PM +0100, Stefano Stabellini wrote: This patch is actually a merge conflict resolution between Konrad's Xen tree and the following commit: commit 9fa5780beea1274d498a224822397100022da7d4 Author: Jan Beulich jbeul...@suse.com Date: Tue Sep 18 12:23:02 2012

Re: [PATCH] xen: resolve merge conflict with 617276307cd4cdb9a95c77efaa3063695af63aa7

2012-10-02 Thread Konrad Rzeszutek Wilk
On Tue, Oct 2, 2012 at 1:29 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: The Xen tree tries to add a line to arch/arm/mach-vexpress/Makefile.boot that has been removed by the following commit in Linus' master: commit 617276307cd4cdb9a95c77efaa3063695af63aa7 Author: Rob

Re: [PATCH 00/11] x86/microcode: Early load microcode

2012-10-02 Thread Konrad Rzeszutek Wilk
On Tue, Oct 2, 2012 at 2:06 AM, H. Peter Anvin h...@zytor.com wrote: On 10/01/2012 09:27 AM, Borislav Petkov wrote: On Mon, Oct 01, 2012 at 12:11:51PM -0400, Jamie Gloudon wrote: Hey, Any chance of this getting merge for the 3.7 cycle? It is not ready yet:

Re: [PATCH 2/6] xen-blkfront: handle backend CLOSED without CLOSING

2012-10-02 Thread Konrad Rzeszutek Wilk
if you're happy with it. Acked-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Or should I just carry it in my for-jens-3.7 bug-fixes queue and ask Jen to pull it once rc0 is out? Thanks. David 8- xen-blkfront: handle backend CLOSED without CLOSING

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-11 Thread Konrad Rzeszutek Wilk
On Thu, Jan 10, 2013 at 03:07:10PM -0800, Yinghai Lu wrote: On Wed, Jan 9, 2013 at 1:15 PM, Yinghai Lu ying...@kernel.org wrote: On Wed, Jan 9, 2013 at 1:00 PM, Eric W. Biederman ebied...@xmission.com wrote: Yinghai Lu ying...@kernel.org writes: please check updated attached. It should

Re: [Xen-devel] [PATCH v3 00/11] xen: Initial kexec/kdump implementation

2013-01-11 Thread Konrad Rzeszutek Wilk
On Thu, Jan 10, 2013 at 08:16:48PM -0800, Eric W. Biederman wrote: Konrad Rzeszutek Wilk konrad.w...@oracle.com writes: On Mon, Jan 07, 2013 at 01:34:04PM +0100, Daniel Kiper wrote: I think that new kexec hypercall function should mimics kexec syscall. It means that all arguments passed

Re: [PATCH] arch/x86/pci/xen.c: fix a typo in comments

2013-01-11 Thread Konrad Rzeszutek Wilk
On Thu, Dec 20, 2012 at 09:22:11AM +0800, Ethan Zhao wrote: Konrad, This patch fix a typo in comments of arch/x86/pci/xen.c Hm, so somehow I don't see your SOB on the patch? Can you please include that. Thanks, ethan.z...@oracle.com --- commit

Re: [PATCH] xen-blkback: do not leak mode property

2013-01-11 Thread Konrad Rzeszutek Wilk
On Thu, Dec 20, 2012 at 10:31:11AM +, Jan Beulich wrote: be-mode is obtained from xenbus_read(), which does a kmalloc() for the message body. The short string is never released, so do it along with freeing be itself, and make sure the string isn't kept when backend_changed() doesn't

Re: [PATCH] Access control in Xen privcmd_ioctl_mmap

2013-01-11 Thread Konrad Rzeszutek Wilk
On Mon, Dec 31, 2012 at 03:44:30PM -0500, Tamas Lengyel wrote: In the privcmd Linux driver two checks in the functions privcmd_ioctl_mmap and privcmd_ioctl_mmap_batch are not needed as they are trying to enforce hypervisor-level access control. They should be removed as they break secondary

Re: oopsable race in xen-gntdev [PATCH 0/3]

2013-01-11 Thread Konrad Rzeszutek Wilk
On Wed, Jan 02, 2013 at 05:57:10PM -0500, Daniel De Graaf wrote: On 12/21/2012 03:18 PM, Konrad Rzeszutek Wilk wrote: On Sat, Dec 15, 2012 at 06:12:11PM +, Al Viro wrote: 1) find_vma() is *not* safe without -mmap_sem and its result may very well be freed just as it's returned

Re: [PATCH V2 1/2] Xen stub driver for memory hotplug

2013-01-11 Thread Konrad Rzeszutek Wilk
+ *Author: Liu Jinsong jinsong@intel.com + *Author: Jiang Yunhong yunhong.ji...@intel.com + * + * Copyright (C) 2012 Oracle Inc + *Author: Konrad Rzeszutek Wilk konrad.w...@oracle.com + * + * This program is free software; you can redistribute it and/or modify + * it under

Re: [PATCH V2 2/2] Xen ACPI memory hotplug

2013-01-11 Thread Konrad Rzeszutek Wilk
On Wed, Jan 09, 2013 at 07:42:52AM +, Liu, Jinsong wrote: This patch implements real Xen acpi memory hotplug driver as module. When loaded, it replaces Xen stub driver. When an acpi memory device hotadd event occurs, it notifies OS and invokes notification callback, adding related memory

Re: [PATCH v2] xen/grant-table: correctly initialize grant table version 1

2013-01-11 Thread Konrad Rzeszutek Wilk
to prevent this type of bug from reoccurring in the future. Signed-off-by: Matt Wilson m...@amazon.com Reviewed-and-Tested-by: Steven Noonan snoo...@amazon.com Acked-by: Ian Campbell ian.campb...@citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Annie Li annie

Re: [PATCH v2] xen/grant-table: correctly initialize grant table version 1

2013-01-14 Thread Konrad Rzeszutek Wilk
On Mon, Jan 14, 2013 at 10:29:41AM +0100, Matt Wilson wrote: On Fri, Jan 11, 2013 at 04:35:50PM -0500, Konrad Rzeszutek Wilk wrote: With this patch I get: [2.555087] GHES: HEST is not enabled! [2.560522] ioatdma: Intel(R) QuickData Technology Driver 4.00 [2.569651

[GIT PULL] (xen) stable/for-jens-3.8 - bug-fixes.

2013-01-14 Thread Konrad Rzeszutek Wilk
Hey Jens, Please git pull the following branch: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/for-jens-3.8 which has a couple of fixes that should have been pulled some time ago (my mistake on not posting this earlier). There is one serious fix in there from Roger which

Re: [PATCH v7u1 10/31] x86, 64bit: Don't set max_pfn_mapped wrong value early on native path

2013-01-15 Thread Konrad Rzeszutek Wilk
On Tue, Jan 15, 2013 at 01:48:45PM +, Stefano Stabellini wrote: On Fri, 4 Jan 2013, Yinghai Lu wrote: We are not having max_pfn_mapped set correctly until init_memory_mapping. so don't print it initial value for 64bit Also need to use KERNEL_IMAGE_SIZE directly for highmap

Re: kernel 3.7+ cpufreq regression on AMD system running as dom0

2013-01-15 Thread Konrad Rzeszutek Wilk
that this CPU specific quirk got added in this generic library. Is there no ACPI quirk system similar to how DMI quirks are handled? Anyhow, I think this patch makes sense - it makes sure that the MSR value is sane. Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com fid = lo

[PATCH] fixes to ACPI subsystem which assumes cpuidle is always enabled.

2013-01-15 Thread Konrad Rzeszutek Wilk
Attached are two patches to the ACPI subsystem and the cpuidle drivers. The fixes are to deal with the case when cpuidle_disabled returns true and we try to hotplug CPUs on/off. drivers/acpi/processor_idle.c | 3 +++ drivers/idle/intel_idle.c | 3 +-- 2 files changed, 4 insertions(+), 2

[PATCH 1/2] ACPI: intel-idle: Don't register CPU notifier if we are not running.

2013-01-15 Thread Konrad Rzeszutek Wilk
. Cc: sta...@vger.kernel.org # for 3.6 and above Cc: Daniel Lezcano daniel.lezc...@linaro.org Cc: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com Cc: Rafael J. Wysocki r...@sisk.pl Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/idle/intel_idle.c | 3 +-- 1 file changed, 1

[PATCH 2/2] ACPI / cpuidle: Fix NULL pointer issues when cpuidle is disabled

2013-01-15 Thread Konrad Rzeszutek Wilk
[81216404] sysfs_write_file+0xf4/0x170 This patch fixes it. Cc: Rafael J. Wysocki r...@sisk.pl Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- drivers/acpi/processor_idle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi

Re: [PATCH] drivers/xen: avoid out-of-range write in xen_add_device

2013-01-07 Thread Konrad Rzeszutek Wilk
On Sat, Jan 05, 2013 at 02:18:46PM -0500, Nickolai Zeldovich wrote: xen_add_device() in drivers/xen/pci.c allocates a struct physdev_pci_device_add on the stack and then writes to optarr[0]. The previous declaration of struct physdev_pci_device_add contained a zero-length optarr[] array,

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-07 Thread Konrad Rzeszutek Wilk
On Fri, Jan 04, 2013 at 02:10:25PM -0800, Yinghai Lu wrote: On Fri, Jan 4, 2013 at 1:02 PM, Shuah Khan shuahk...@gmail.com wrote: Pani'cing the system doesn't sound like a good option to me in this case. This change to disable swiotlb is made for kdump. However, with this change several

Re: [Xen-devel] [PATCH] xen/swiotlb: Exchange to contiguous memory for map_sg hook

2013-01-07 Thread Konrad Rzeszutek Wilk
On Mon, Jan 07, 2013 at 07:17:33AM +, Xu, Dongxiao wrote: -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Thursday, December 20, 2012 4:56 PM To: Xu, Dongxiao Cc: xen-de...@lists.xen.org; Konrad Rzeszutek Wilk; linux-kernel@vger.kernel.org Subject

Re: [Xen-devel] [PATCH v3 00/11] xen: Initial kexec/kdump implementation

2013-01-07 Thread Konrad Rzeszutek Wilk
On Mon, Jan 07, 2013 at 01:34:04PM +0100, Daniel Kiper wrote: On Fri, Jan 04, 2013 at 02:11:46PM -0500, Konrad Rzeszutek Wilk wrote: On Fri, Jan 04, 2013 at 06:07:51PM +0100, Daniel Kiper wrote: On Fri, Jan 04, 2013 at 02:41:17PM +, Jan Beulich wrote: On 04.01.13 at 15:22, Daniel

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-07 Thread Konrad Rzeszutek Wilk
Also, since IOMMU drivers can no longer assume swiotlb is allocated enough_mem_for_swiotlb() check fails, AMD IOMMU or another other iommu driver can't simply rely on changing swiotlb=1 and assuming the buffer is there. As Konrad suggested, a hook is needed, however, I think the logic to

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-07 Thread Konrad Rzeszutek Wilk
On Mon, Jan 07, 2013 at 06:22:51PM -0800, Eric W. Biederman wrote: Shuah Khan shuahk...@gmail.com writes: On Mon, Jan 7, 2013 at 8:26 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Fri, Jan 04, 2013 at 02:10:25PM -0800, Yinghai Lu wrote: On Fri, Jan 4, 2013 at 1:02 PM, Shuah

Re: [PATCH v5 00/12] x86/microcode: Early load microcode

2013-01-08 Thread Konrad Rzeszutek Wilk
On Thu, Jan 03, 2013 at 09:48:43AM -0800, H. Peter Anvin wrote: On 01/03/2013 09:44 AM, Konrad Rzeszutek Wilk wrote: A couple of questions - why the usage of native_[read|write]_msr? I get the __native_cpuid variant, but I am not sure I understand why you are using the native_* variants

Re: [PATCH v5 00/12] x86/microcode: Early load microcode

2013-01-08 Thread Konrad Rzeszutek Wilk
On Tue, Jan 08, 2013 at 11:47:39AM -0800, H. Peter Anvin wrote: On 01/08/2013 11:46 AM, Konrad Rzeszutek Wilk wrote: OK. I am trying to figure out whether this usage of native_* for the MSRs was done on purpose - and it sounds like the answer is no. If so - can it be done using

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-08 Thread Konrad Rzeszutek Wilk
On Tue, Jan 08, 2013 at 03:40:11PM -0800, Yinghai Lu wrote: On Mon, Jan 7, 2013 at 7:50 PM, Yinghai Lu ying...@kernel.org wrote: On Mon, Jan 7, 2013 at 7:13 PM, Eric W. Biederman ebied...@xmission.com wrote: I meant we should detect failure to allocate bounce buffers in in swiotlb_init()

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-09 Thread Konrad Rzeszutek Wilk
On Tue, Jan 08, 2013 at 04:58:14PM -0800, Eric W. Biederman wrote: Konrad Rzeszutek Wilk konrad.w...@oracle.com writes: On Tue, Jan 08, 2013 at 03:40:11PM -0800, Yinghai Lu wrote: On Mon, Jan 7, 2013 at 7:50 PM, Yinghai Lu ying...@kernel.org wrote: On Mon, Jan 7, 2013 at 7:13 PM, Eric W

Re: [PATCH v7u1 26/31] x86: Don't enable swiotlb if there is not enough ram for it

2013-01-09 Thread Konrad Rzeszutek Wilk
. -v2: don't pass nopanic, and use -ENOMEM return value according to Eric. panic early instead of using swiotlb_full to panic...according to Eric/Konrad. Suggested-by: Eric W. Biederman ebied...@xmission.com Signed-off-by: Yinghai Lu ying...@kernel.org Cc: Konrad Rzeszutek Wilk konrad.w

Re: [PATCH v5 00/12] x86/microcode: Early load microcode

2013-01-09 Thread Konrad Rzeszutek Wilk
On Tue, Jan 08, 2013 at 03:04:33PM -0500, Konrad Rzeszutek Wilk wrote: On Tue, Jan 08, 2013 at 11:47:39AM -0800, H. Peter Anvin wrote: On 01/08/2013 11:46 AM, Konrad Rzeszutek Wilk wrote: OK. I am trying to figure out whether this usage of native_* for the MSRs was done on purpose

Re: [PATCH 2/3] Refactor msi/msix restore code Part2

2013-08-02 Thread Konrad Rzeszutek Wilk
Konrad, are you OK with this patch now? Yes, I wanted to make sure that the existing behavior under baremetal was not altered. And Duan had confirmed it was not - thought to be on a safe side it would be good to confirm this via testing just in case. I had ever let our customer test on

Re: [PATCH RFC 1/8] arm: make SWIOTLB available

2013-08-02 Thread Konrad Rzeszutek Wilk
On Fri, Aug 02, 2013 at 12:59:00PM +0100, Stefano Stabellini wrote: On Wed, 31 Jul 2013, Konrad Rzeszutek Wilk wrote: Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com CC: will.dea...@arm.com CC: li

Re: [PATCH RFC 7/8] swiotlb-xen: support autotranslate guests

2013-08-02 Thread Konrad Rzeszutek Wilk
On Wed, Jul 31, 2013 at 06:45:31PM +0100, Stefano Stabellini wrote: Support autotranslate guests in swiotlb-xen by keeping track of the phys-to-bus and bus-to-phys mappings of the swiotlb buffer (xen_io_tlb_start-xen_io_tlb_end). Use a simple direct access on a pre-allocated array for

Re: [PATCH RFC 8/8] xen/arm,arm64: enable SWIOTLB_XEN

2013-08-02 Thread Konrad Rzeszutek Wilk
On Wed, Jul 31, 2013 at 06:45:32PM +0100, Stefano Stabellini wrote: Xen on arm and arm64 needs SWIOTLB_XEN: when running on Xen we need to program the hardware with mfns rather than pfns for dma addresses. Remove SWIOTLB_XEN dependency on X86 and PCI and make XEN select SWIOTLB_XEN on arm and

<    5   6   7   8   9   10   11   12   13   14   >