Regression introduced by 31f731a drm/radeon/dpm: fix calculations in si_calculate_leakage_for_v_and_t_formula

2013-08-02 Thread Konrad Rzeszutek Wilk
Hey Alex, Your recent patch 31f731a drm/radeon/dpm: fix calculations in si_calculate_leakage_for_v_and_t_formula causes a build regression: drivers/built-in.o: In function `si_calculate_leakage_for_v_and_t_formula': /home/build/linux-linus/drivers/gpu/drm/radeon/si_dpm.c:1770: undefined

Re: [PATCH] swiotlb: Replace dma_length to sg_dma_len() macro

2013-08-02 Thread Konrad Rzeszutek Wilk
On Tue, Apr 16, 2013 at 05:37:52AM +, EUNBONG SONG wrote: This patch replace dma_length in lib/swiotlb.c to sg_dma_len() macro, because the build error can occur if CONFIG_NEED_SG_DMA_LENGTH is not set, and CONFIG_SWIOTLB is set. I confirmed compile only. Stefano, This patch should

Re: [QUERY] lguest64

2013-08-02 Thread Konrad Rzeszutek Wilk
On Wed, Jul 31, 2013 at 06:25:04AM -0700, H. Peter Anvin wrote: On 07/31/2013 06:17 AM, Konrad Rzeszutek Wilk wrote: The big problem with pvops is that they are a permanent tax on future development -- a classic case of the hooks problem. As such it is important that there be a real

Re: [PATCH] x86, apic: Enable x2APIC physical when cpu 256 native

2013-08-02 Thread Konrad Rzeszutek Wilk
On Thu, Jul 25, 2013 at 07:05:15AM -0700, Yinghai Lu wrote: On Tue, Jul 23, 2013 at 11:22 PM, Gleb Natapov g...@redhat.com wrote: On Tue, Jul 23, 2013 at 09:24:45PM -0700, Yinghai Lu wrote: On Thu, Jul 11, 2013 at 6:22 PM, Youquan Song youquan.s...@intel.com wrote: x2APIC extends APICID

Re: [PATCH V2 4/4] x86: correctly detect hypervisor

2013-08-05 Thread Konrad Rzeszutek Wilk
: x...@kernel.org Cc: K. Y. Srinivasan k...@microsoft.com Cc: Haiyang Zhang haiya...@microsoft.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Jeremy Fitzhardinge jer...@goop.org Cc: Doug Covelli dcove...@vmware.com Cc: Borislav Petkov b...@suse.de Cc: Dan Hecht dhe

Re: [PATCH RFC V11 15/18] kvm : Paravirtual ticketlocks support for linux guests running on KVM hypervisor

2013-08-05 Thread Konrad Rzeszutek Wilk
On Mon, Aug 05, 2013 at 11:46:03AM +0200, Ingo Molnar wrote: * Gleb Natapov g...@redhat.com wrote: On Fri, Aug 02, 2013 at 11:25:39AM +0200, Ingo Molnar wrote: Ingo, Do you have any concerns reg this series? please let me know if this looks good now to you. I'm

Re: [PATCH V2 4/4] x86: correctly detect hypervisor

2013-08-05 Thread Konrad Rzeszutek Wilk
On Mon, Aug 05, 2013 at 08:20:53AM -0700, H. Peter Anvin wrote: On 08/05/2013 07:34 AM, Konrad Rzeszutek Wilk wrote: Could you provide me with a git branch so I can test it overnight please? Pull tip:x86/paravirt. It works for me. Thanks. -hpa -- To unsubscribe from

Re: [QUERY] lguest64

2013-08-05 Thread Konrad Rzeszutek Wilk
On Sun, Aug 04, 2013 at 03:37:08PM +0300, Gleb Natapov wrote: On Fri, Aug 02, 2013 at 03:09:34PM -0400, Konrad Rzeszutek Wilk wrote: On Wed, Jul 31, 2013 at 06:25:04AM -0700, H. Peter Anvin wrote: On 07/31/2013 06:17 AM, Konrad Rzeszutek Wilk wrote: The big problem with pvops

Re: [QUERY] lguest64

2013-08-05 Thread Konrad Rzeszutek Wilk
struct pv_cpu_ops pv_cpu_ops; [only end up using cpuid. This one is a tricky one. We could arguable remove it but it does do some filtering - for example THERM is turned off, or MWAIT if a certain

[PATCH 2/3] MAINTAINERS: Update the Xen subsystem's with proper mailing list.

2013-08-05 Thread Konrad Rzeszutek Wilk
And also drop the virtualization one since we don't really use it. CC: stefano.stabell...@eu.citrix.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- MAINTAINERS | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH 3/3] MAINTAINERS: Add in two extra co-maintainers of the Xen tree.

2013-08-05 Thread Konrad Rzeszutek Wilk
: Konrad Rzeszutek Wilk konrad.w...@oracle.com +M: Boris Ostrovsky boris.ostrov...@oracle.com +M: David Vrabel david.vra...@citrix.com L: xen-de...@lists.xenproject.org (moderated for non-subscribers) S: Supported F: arch/x86/xen/ -- 1.8.3.1 -- To unsubscribe from this list: send

[PATCH] Update MAINTAINERS file in Linux. (v1)

2013-08-05 Thread Konrad Rzeszutek Wilk
Please see the three patches that update the MAINTAINERS file. They do need Acks so please provide them if you are comfortable. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH 1/3] MAINTAINERS: Remove Jeremy from the Xen subsystem.

2013-08-05 Thread Konrad Rzeszutek Wilk
Jeremy has been a key person in making Linux work with Xen. He has been enjoying the last year working on something different so reflect that in the maintainers file. CC: Jeremy Fitzhardinge jer...@goop.org Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- CREDITS | 1

Re: [PATCH 06/20] tile: support LSI MEGARAID SAS HBA hybrid dma_ops

2013-08-05 Thread Konrad Rzeszutek Wilk
On Mon, Aug 05, 2013 at 04:06:20PM -0400, Chris Metcalf wrote: The LSI MEGARAID SAS HBA suffers from the problem where it can do 64-bit DMA to streaming buffers but not to consistent buffers. In other words, 64-bit DMA is used for disk data transfers and 32-bit DMA must be used for control

Re: [PATCH v3 1/3] acpi: Call acpi_os_prepare_sleep hook in reduced hardware sleep path

2013-07-25 Thread Konrad Rzeszutek Wilk
CC-ing some of the tboot maintainers. As what I've said, it's up to the others to determine if the patch is OK. I just need to make my concerns visible in the community. :-) If I understand your concerns you don't want the hook to depend on any of the bit manipulations the existing code does

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

2013-07-25 Thread Konrad Rzeszutek Wilk
On Thu, Jul 25, 2013 at 02:52:00PM +0800, Zhenzhong Duan wrote: On 2013-07-24 21:46, Konrad Rzeszutek Wilk wrote: On Wed, Jul 24, 2013 at 11:08:10AM +0800, Zhenzhong Duan wrote: xen_initdom_restore_msi_irqs trigger a hypercall to restore addr/data/mask in dom0. It's better to do the same

Re: [PATCH 3/3] msix restore code optimization for dom0

2013-07-25 Thread Konrad Rzeszutek Wilk
On Thu, Jul 25, 2013 at 03:17:29PM +0800, Zhenzhong Duan wrote: On 2013-07-24 21:55, Konrad Rzeszutek Wilk wrote: On Wed, Jul 24, 2013 at 11:08:43AM +0800, Zhenzhong Duan wrote: PHYSDEVOP_restore_msi is used to restore all msix entrys in one hypercall in dom0. But it is called multi times

Re: [PATCH v3 1/2] xen/balloon: set a mapping for ballooned out pages

2013-07-29 Thread Konrad Rzeszutek Wilk
On Thu, Jul 25, 2013 at 04:31:07AM +0100, Ian Campbell wrote: On Wed, 2013-07-24 at 10:58 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Jul 24, 2013 at 12:05:05PM +0100, Stefano Stabellini wrote: On Tue, 23 Jul 2013, Konrad Rzeszutek Wilk wrote: On Tue, Jul 23, 2013 at 07:00:09PM +0100

Re: [PATCH] tracing/events: Add bounce tracing to swiotbl-xen

2013-08-23 Thread Konrad Rzeszutek Wilk
On Thu, Aug 22, 2013 at 10:47:28PM +0100, Zoltan Kiss wrote: Ftrace is currently not able to detect when SWIOTLB has to do double buffering under Xen. You can only see it indirectly in function_graph, when xen_swiotlb_map_page() doesn't stop after range_straddles_page_boundary(), but calls

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

2013-08-23 Thread Konrad Rzeszutek Wilk
On Thu, Aug 22, 2013 at 03:14:34PM -0600, Bjorn Helgaas wrote: On Mon, Aug 5, 2013 at 1:21 AM, Zhenzhong Duan zhenzhong.d...@oracle.com wrote: xen_initdom_restore_msi_irqs trigger a hypercall to restore addr/data/mask in dom0. It's better to do the same in default_restore_msi_irqs for

Re: [Xen-devel] [PATCH] xen/smp: initialize IPI vectors before marking CPU online

2013-08-20 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 02:23:44PM +0100, David Vrabel wrote: On 14/08/13 21:41, Konrad Rzeszutek Wilk wrote: From: Chuck Anderson chuck.ander...@oracle.com An older PVHVM guest (v3.0 based) crashed during vCPU hot-plug with: kernel BUG at drivers/xen/events.c:1328! The commit

Re: [Xen-devel] [PATCH] xen/hvc: If we use xen_raw_printk let it also work on HVM guests.

2013-08-20 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 03:40:38PM +0100, Ian Campbell wrote: On Wed, 2013-08-14 at 08:46 -0400, Konrad Rzeszutek Wilk wrote: On Wed, Aug 14, 2013 at 08:15:56AM +0100, Ian Campbell wrote: On Tue, 2013-08-13 at 20:10 -0400, Konrad Rzeszutek Wilk wrote: On Tue, Aug 13, 2013 at 11:20:05PM

Re: [Xen-devel] [PATCH] xen: initialize xen panic handler for PVHVM

2013-08-20 Thread Konrad Rzeszutek Wilk
On Mon, Aug 19, 2013 at 02:18:42PM +0800, Joe Jin wrote: On 08/16/13 20:43, Konrad Rzeszutek Wilk wrote: Could you tell me what has been happening without this patch? Without this patch, Xen would not get pvhvm crash event, any config for on_crash in guest configure file

Re: [Xen-devel] [PATCH] xen/hvc: If we use xen_raw_printk let it also work on HVM guests.

2013-08-21 Thread Konrad Rzeszutek Wilk
Ian Campbell ian.campb...@citrix.com wrote: On Tue, 2013-08-20 at 15:35 -0400, Konrad Rzeszutek Wilk wrote: void xen_raw_console_write(const char *str) { -dom0_write_console(0, str, strlen(str)); +ssize_t len = strlen(str); +int rc = 0; + +if (xen_domain

Re: [PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread Konrad Rzeszutek Wilk
Tang Chen tangc...@cn.fujitsu.com wrote: We are going to do acpi_initrd_override() at very early time: On 32bit: do it in head_32.S, before paging is enabled. In this case, we can access initrd with physical address without page tables. On 64bit: do it in head_64.c, after paging is

Re: [PATCH 5/8] x86, brk: Make extend_brk() available with va/pa.

2013-08-21 Thread Konrad Rzeszutek Wilk
On Wed, Aug 21, 2013 at 02:35:36PM +0200, H. Peter Anvin wrote: Global symbols are inaccessible in physical mode. Even if they are embedded in the assembler code and use GLOBAL(paging_enabled) ? This is incidentally yet another example of PV/weird platform violence, since in their absence

[GIT PULL] (xen) stable/for-linus-3.11-rc6-tag

2013-08-21 Thread Konrad Rzeszutek Wilk
Hey Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git stable/for-linus-3.11-rc6-tag which is full of bug-fixes that took a while to figure out right. The signed git tag says it all: start - On ARM did not have balanced calls to get/put_cpu. -

[GIT PULL] (xen) stable/for-jens-3.12 for Linux 3.12 merge window.

2013-08-21 Thread Konrad Rzeszutek Wilk
Hey Jens, Please git pull the following branch for your 3.12 tree: git pull git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git stable/for-jens-3.12 It has two fixes to the xen-blkfront driver - both deal with the indirect requests and make better usage of the persistent grants.

[GIT PULL] (xen) stable/for-jens-3.12 for Linux 3.12 merge window.

2013-08-21 Thread Konrad Rzeszutek Wilk
Hey Jens, Please git pull the following branch for your 3.12 tree: git pull git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git stable/for-jens-3.12 It has two fixes to the xen-blkfront driver - both deal with the indirect requests and make better usage of the persistent grants.

Re: [PATCH v1][RFC] drivers/xen, balloon driver numa support in kernel

2013-08-13 Thread Konrad Rzeszutek Wilk
On Mon, Aug 12, 2013 at 4:26 PM, Dario Faggioli dario.faggi...@citrix.com wrote: Hi Yechen. Thanks for doing and sharing this part of the thing too. See what I already told you on xen-devel about Cc-ing the relevant people. For Linux as well, you can check at the MAINTAINERS file. This

Re: [PATCH v4 2/2] xen/m2p: use GNTTABOP_unmap_and_replace to reinstate the original mapping

2013-08-13 Thread Konrad Rzeszutek Wilk
On Tue, Aug 13, 2013 at 12:17:18PM +0100, Stefano Stabellini wrote: On Fri, 9 Aug 2013, Konrad Rzeszutek Wilk wrote: On Sun, Aug 04, 2013 at 03:39:41PM +0100, Stefano Stabellini wrote: GNTTABOP_unmap_grant_ref unmaps a grant and replaces it with a 0 mapping instead of reinstating

Re: [PATCH v1][RFC] drivers/xen, balloon driver numa support in kernel

2013-08-13 Thread Konrad Rzeszutek Wilk
On Tue, Aug 13, 2013 at 8:53 AM, David Vrabel david.vra...@citrix.com wrote: On 12/08/13 21:26, Dario Faggioli wrote: Mmm... Is that the case? I tried to apply it there and I have one failed hunk (#12). Anyway, could you please rebase it on the tip of some relevant git tree? Linus' tree

Re: [Xen-devel] [PATCH] xen/hvc: If we use xen_raw_printk let it also work on HVM guests.

2013-08-13 Thread Konrad Rzeszutek Wilk
On Tue, Aug 13, 2013 at 09:31:44PM +0100, Ian Campbell wrote: On Fri, 2013-08-09 at 10:55 -0400, Konrad Rzeszutek Wilk wrote: The xen_raw_printk works great for debugging purposes and for it print anything the Xen hypervisor has to be built with 'debug=y'. As such there is no difference

Re: [Xen-devel] [PATCH] xen/hvc: If we use xen_raw_printk let it also work on HVM guests.

2013-08-13 Thread Konrad Rzeszutek Wilk
On Tue, Aug 13, 2013 at 11:20:05PM +0100, Ian Campbell wrote: On Tue, 2013-08-13 at 21:59 +0100, Ian Campbell wrote: What it should be is: void xen_raw_console_write(const char *str) { - dom0_write_console(0, str, strlen(str)); + if (!xen_domain()) +

Re: [Xen-devel] [PATCH] xen/hvc: If we use xen_raw_printk let it also work on HVM guests.

2013-08-14 Thread Konrad Rzeszutek Wilk
On Wed, Aug 14, 2013 at 08:15:56AM +0100, Ian Campbell wrote: On Tue, 2013-08-13 at 20:10 -0400, Konrad Rzeszutek Wilk wrote: On Tue, Aug 13, 2013 at 11:20:05PM +0100, Ian Campbell wrote: On Tue, 2013-08-13 at 21:59 +0100, Ian Campbell wrote: What it should

[PATCH] xen/smp: initialize IPI vectors before marking CPU online

2013-08-14 Thread Konrad Rzeszutek Wilk
-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- arch/x86/xen/smp.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index fc6488d..dbf0e68 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -695,8 +695,15 @@ static

Re: [Xen-devel] [PATCH] xen/smp: initialize IPI vectors before marking CPU online

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 02:23:44PM +0100, David Vrabel wrote: On 14/08/13 21:41, Konrad Rzeszutek Wilk wrote: From: Chuck Anderson chuck.ander...@oracle.com An older PVHVM guest (v3.0 based) crashed during vCPU hot-plug with: kernel BUG at drivers/xen/events.c:1328! The commit

Re: [PATCH v4 01/10] swiotlb: replace dma_length with sg_dma_len() macro

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 12:10:45PM +0100, Stefano Stabellini wrote: From: EUNBONG SONG eunb.s...@samsung.com This patch replace dma_length in lib/swiotlb.c to sg_dma_len() macro, because the build error can occur if CONFIG_NEED_SG_DMA_LENGTH is not set, and CONFIG_SWIOTLB is set.

Re: [PATCH v4 02/10] swiotlb-xen: replace dma_length with sg_dma_len() macro

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 12:10:46PM +0100, Stefano Stabellini wrote: swiotlb-xen has an implicit dependency on CONFIG_NEED_SG_DMA_LENGTH. Remove it by replacing dma_length with sg_dma_len. Ditto. Already took that one. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com ---

Re: [PATCH v4 07/10] xen: introduce XENMEM_exchange_and_pin and XENMEM_unpin

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 12:10:51PM +0100, Stefano Stabellini wrote: XENMEM_exchange can't be used by autotranslate guests because of two severe limitations: - it does not copy back the mfns into the out field for autotranslate guests; - it does not guarantee that the hypervisor won't

Re: [PATCH v4 09/10] swiotlb-xen: support autotranslate guests

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 12:10:53PM +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] xen: initialize xen panic handler for PVHVM

2013-08-16 Thread Konrad Rzeszutek Wilk
On Fri, Aug 16, 2013 at 04:10:56PM +0800, Vaughan Cao wrote: kernel use callback linked in panic_notifier_list to notice others when panic happens. NORET_TYPE void panic(const char * fmt, ...){ ... atomic_notifier_call_chain(panic_notifier_list, 0, buf); } When xen aware this, it

Re: [Xen-devel] [PATCH] xen: remove unused Kconfig parameter

2013-07-09 Thread Konrad Rzeszutek Wilk
On Tue, Jul 09, 2013 at 10:01:50PM +0200, Borislav Petkov wrote: On Tue, Jul 09, 2013 at 01:19:09PM -0400, Konrad Rzeszutek Wilk wrote: My thinking is that what should be done to have some sense of history is that the patch in GRUB to not rely on kernel internals should be done

Re: [Xen-devel] [PATCH] xen: remove unused Kconfig parameter

2013-07-10 Thread Konrad Rzeszutek Wilk
So it would be nice to have at least some time to address this with upstream grub and the main distributions to patch their grub. nods Sounds quite sensible. Michael would you be OK doing this? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH RFC 4/4] xen-block: introduce a new request type to unmap grants

2013-07-10 Thread Konrad Rzeszutek Wilk
On Wed, Jul 10, 2013 at 11:19:23AM +0200, Roger Pau Monné wrote: On 08/07/13 21:41, Konrad Rzeszutek Wilk wrote: On Mon, Jul 08, 2013 at 03:03:27PM +0200, Roger Pau Monne wrote: Right now blkfront has no way to unmap grant refs, if using persistent grants once a grant is used blkfront

Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks

2013-07-10 Thread Konrad Rzeszutek Wilk
On Wed, Jul 10, 2013 at 01:47:17PM +0300, Gleb Natapov wrote: On Wed, Jul 10, 2013 at 12:40:47PM +0200, Peter Zijlstra wrote: On Wed, Jul 10, 2013 at 01:33:25PM +0300, Gleb Natapov wrote: Here's an idea, trim the damn email ;-) -- not only directed at gleb. Good idea. Ingo, Gleb,

Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks

2013-07-10 Thread Konrad Rzeszutek Wilk
Gleb Natapov g...@redhat.com wrote: On Wed, Jul 10, 2013 at 11:03:15AM -0400, Konrad Rzeszutek Wilk wrote: On Wed, Jul 10, 2013 at 01:47:17PM +0300, Gleb Natapov wrote: On Wed, Jul 10, 2013 at 12:40:47PM +0200, Peter Zijlstra wrote: On Wed, Jul 10, 2013 at 01:33:25PM +0300, Gleb Natapov

Re: [Xen-devel] [PATCH] xen: remove unused Kconfig parameter

2013-07-11 Thread Konrad Rzeszutek Wilk
On Thu, Jul 11, 2013 at 08:13:58PM +0200, Paul Bolle wrote: On Thu, 2013-07-11 at 10:57 -0700, H. Peter Anvin wrote: On 07/11/2013 03:08 AM, Paul Bolle wrote: But the Kconfig entry for XEN_PRIVILEGED_GUEST reads: # Dummy symbol since people have come to rely on the PRIVILEGED_GUEST

Re: [Xen-devel] [PATCH] xen/arm: disable cpuidle when linux is running as dom0

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 03:21:41PM +0100, Julien Grall wrote: When linux is running as dom0, Xen doesn't show the physical cpu but a virtual CPU. On some ARM SOC (for instance the exynos 5250), linux registers callbacks for cpuidle. When these callbacks are called, they will modify directly

Re: [PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning

2013-07-15 Thread Konrad Rzeszutek Wilk
CONFIG_HIBERNATE_CALLBACKS. Simply ifdef CONFIG_HIBERNATE_CALLBACKS the three functions. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Julien Grall julien.gr...@linaro.org --- drivers/xen

CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
Hey Linus, I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether a kernel has some CONFIG_X=y feature. b) If they are OK to do so, what do we do when certain CONFIG_X options get

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 10:02:44AM -0700, Greg KH wrote: On Mon, Jul 15, 2013 at 11:40:50AM -0400, Konrad Rzeszutek Wilk wrote: Hey Linus, I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 10:46:17AM -0700, Linus Torvalds wrote: On Mon, Jul 15, 2013 at 10:24 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: If life was that simple.. This particular issue was with inhibiting certain config stanzas if certain features were not built in the kernel

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 08:25:43PM +0200, Paul Bolle wrote: On Mon, 2013-07-15 at 14:02 -0400, Konrad Rzeszutek Wilk wrote: How about I make you proud and post a patch. See: http://article.gmane.org/gmane.comp.boot-loaders.grub.devel/20332 And you're now also taking Michael's patch

Re: [PATCH 1/4] xen: disable non-boot VCPUs during suspend

2013-06-19 Thread Konrad Rzeszutek Wilk
On Wed, Jun 19, 2013 at 04:25:20PM +0100, David Vrabel wrote: From: David Vrabel david.vra...@citrix.com syscore_suspend() and syscore_resume() expect there to be only one online CPU. e.g., hrtimers_resume() only triggers events for the current CPU. Xen's suspend path was leaving all VCPUs

Re: [PATCH 2/4] time: add a notifier chain for when the system time is stepped

2013-06-19 Thread Konrad Rzeszutek Wilk
On Wed, Jun 19, 2013 at 09:52:06AM -0700, John Stultz wrote: On 06/19/2013 08:25 AM, David Vrabel wrote: From: David Vrabel david.vra...@citrix.com The high resolution timer code gets notified of step changes to the system time with clock_was_set() or clock_was_set_delayed() calls. If

Re: [PATCH V1]PVH: vcpu info placement, load CS selector, and remove debug printk.

2013-06-21 Thread Konrad Rzeszutek Wilk
On Wed, Jun 05, 2013 at 12:34:58PM -0700, Mukesh Rathor wrote: This patch addresses 3 things: - Resolve vcpu info placement fixme. - Load CS selector for PVH after switching to new gdt. - Remove printk in case of failure to map pnfs in p2m. This because qemu has lot of expected

Re: [tpmdd-devel] [PATCH v3] drivers/tpm: add xen tpmfront interface

2013-06-21 Thread Konrad Rzeszutek Wilk
On Tue, Jun 04, 2013 at 03:14:28PM -0700, Peter Hüwe wrote: Hi Daniel, thanks for this v3. It's really nice to see the progress and I really like that sparse/smatch/clang/coccicheck do not complain at all - nice job! Konrad already did an excellent job at reviewing the driver (thanks for

Re: [PATCH 0/3] deprecate usage of pci_scan_bus_parented()

2013-06-21 Thread Konrad Rzeszutek Wilk
On Fri, Jun 21, 2013 at 01:01:02AM +0800, Jiang Liu wrote: From: Jiang Liu jiang@huawei.com This patch tries to deprecate usage of pci_scan_bus_parented(). It applies to https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next They look OK to me, but let me double-test them

Re: [PATCHv5 0/4] xen: maintain an accurate persistent clock in more cases

2013-06-21 Thread Konrad Rzeszutek Wilk
On Thu, Jun 20, 2013 at 01:03:34PM -0700, John Stultz wrote: On 06/20/2013 12:16 PM, David Vrabel wrote: Xen guests use the Xen wallclock as their persistent clock. This is a software only clock in the hypervisor that is used by guests instead of a real hardware RTC. The kernel has limited

Re: [PATCHv13 3/4] zswap: add to mm/

2013-06-21 Thread Konrad Rzeszutek Wilk
On Fri, Jun 21, 2013 at 08:20:34AM -0700, Dan Magenheimer wrote: From: Bob Liu [mailto:lliu...@gmail.com] Subject: Re: [PATCHv13 3/4] zswap: add to mm/ On Thu, Jun 20, 2013 at 10:23 PM, Seth Jennings sjenn...@linux.vnet.ibm.com wrote: On Thu, Jun 20, 2013 at 05:42:04PM +0800, Bob Liu

[PATCH] xen: Support PV guest receiving NMIs

2013-07-18 Thread Konrad Rzeszutek Wilk
Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- arch/x86/include/asm/xen/events.h |1 + arch/x86/xen/enlighten.c | 13 - arch/x86/xen/setup.c |2 ++ arch/x86/xen/smp.c|5 + drivers/xen/events.c | 10

Re: [PATCH v2] xen/arm: disable cpuidle and cpufreq when linux is running as dom0

2013-07-19 Thread Konrad Rzeszutek Wilk
directly the physical cpu not the virtual one. It can impact the whole board instead of only dom0. Signed-off-by: Julien Grall julien.gr...@linaro.org Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- Changes in v2: - Disable cpufreq --- arch/arm/xen

Re: is kexec on Xen domU possible?

2013-07-19 Thread Konrad Rzeszutek Wilk
Hey Daniel, Thank you for the nice summary. - PVonHVM guests: IIRC, there were some issues with PV drivers but they were fixed some time ago by patches posted by Olaf Hering, Which had to be reverted b/c they caused regressions with 32-bit guests during migration. But Greg if you

Re: [PATCH 1/5] xen/spinlock: Fix locking path engaging too soon under PVHVM.

2013-09-09 Thread Konrad Rzeszutek Wilk
On Mon, Sep 09, 2013 at 11:31:23AM +0100, David Vrabel wrote: On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: The xen_lock_spinning has a check for the kicker interrupts and if it is not initialised it will spin normally (not enter the slowpath). But for PVHVM case we would initialise

Re: [PATCH 3/5] xen/smp: Update pv_lock_ops functions before alternative code starts under PVHVM

2013-09-09 Thread Konrad Rzeszutek Wilk
On Mon, Sep 09, 2013 at 11:31:48AM +0100, David Vrabel wrote: On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: Before this patch we would patch all of the pv_lock_ops sites using alternative assembler. Then later in the bootup cycle change the unlock_kick and lock_spinning to the Xen

Re: [Xen-devel] [PATCH] Bug-fixes to enable PV ticketlock to work under Xen PVHVM with Linux v3.12. (v1)

2013-09-09 Thread Konrad Rzeszutek Wilk
On Mon, Sep 09, 2013 at 11:34:42AM +0100, David Vrabel wrote: On 07/09/13 14:46, Konrad Rzeszutek Wilk wrote: After a bit of false starts, lots of debugging, and tons of help from Stefano and David on how event mechanism is suppose to work I am happy to present a set of bug-fixes

[PATCH] Bug-fixes to enable PV ticketlock to work under Xen PVHVM with Linux v3.12. (v2)

2013-09-09 Thread Konrad Rzeszutek Wilk
changed, 31 insertions(+), 43 deletions(-) Konrad Rzeszutek Wilk (5): xen/spinlock: Fix locking path engaging too soon under PVHVM. xen/spinlock: We don't need the old structure anymore xen/smp: Update pv_lock_ops functions before alternative code starts under PVHVM xen

[PATCH 1/5] xen/spinlock: Fix locking path engaging too soon under PVHVM.

2013-09-09 Thread Konrad Rzeszutek Wilk
and cpu_active_mask. See above mention git commit for details. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/enlighten.c | 1 - arch/x86/xen/smp.c | 9 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH 5/5] Revert xen/spinlock: Disable IRQ spinlock (PV) allocation on PVHVM

2013-09-09 Thread Konrad Rzeszutek Wilk
This reverts commit 70dd4998cb85f0ecd6ac892cc7232abefa432efb. Now that the bugs have been resolved we can re-enable the PV ticketlock implementation under PVHVM Xen guests. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86

[PATCH 4/5] xen/spinlock: Don't setup xen spinlock IPI kicker if disabled.

2013-09-09 Thread Konrad Rzeszutek Wilk
There is no need to setup this kicker IPI if we are never going to use the paravirtualized ticketlock mechanism. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/spinlock.c | 11 ++- 1 file changed, 10

[PATCH 2/5] xen/spinlock: We don't need the old structure anymore

2013-09-09 Thread Konrad Rzeszutek Wilk
As we are using the generic ticketlock structs and these old structures are not needed anymore. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Reviewed-by: David Vrabel david.vra...@citrix.com --- arch/x86/xen/spinlock.c | 18 -- 1 file changed, 18 deletions(-) diff

[PATCH 3/5] xen/smp: Update pv_lock_ops functions before alternative code starts under PVHVM

2013-09-09 Thread Konrad Rzeszutek Wilk
/git/tip/tip) P.S. There is still the commit 70dd4998cb85f0ecd6ac892cc7232abefa432efb (xen/spinlock: Disable IRQ spinlock (PV) allocation on PVHVM) to revert but that can be done later after all other bugs have been fixed. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Reviewed

[GIT PULL] (xen) stable/for-linus-3.12-rc0-tag-two for v3.12-rc0

2013-09-10 Thread Konrad Rzeszutek Wilk
Konrad Rzeszutek Wilk (6): xen/spinlock: Fix locking path engaging too soon under PVHVM. xen/spinlock: We don't need the old structure anymore xen/smp: Update pv_lock_ops functions before alternative code starts under PVHVM xen/spinlock: Don't setup xen spinlock IPI kicker

Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Tue, Sep 10, 2013 at 07:48:44PM -0700, H. Peter Anvin wrote: Hi Linus, One more x86 tree for this merge window. This tree improves the handling of jump labels, so that most of the time we don't have to do a massive initial patching run. Furthermore, we will error out of the jump label

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 09:47:17AM -0400, Konrad Rzeszutek Wilk wrote: On Tue, Sep 10, 2013 at 07:48:44PM -0700, H. Peter Anvin wrote: Hi Linus, One more x86 tree for this merge window. This tree improves the handling of jump labels, so that most of the time we don't have to do

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
It seems to imply line 53 is the originating bug, so that would be: 47 if (type == JUMP_LABEL_ENABLE) { 48 /* 49 * We are enabling this jump label. If it is not a nop 50 * then something must have gone wrong. 51

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 10:56:33AM -0400, Steven Rostedt wrote: On Wed, 11 Sep 2013 10:25:45 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: It seems to imply line 53 is the originating bug, so that would be: 47 if (type == JUMP_LABEL_ENABLE) { 48

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 11:47:08AM -0400, Steven Rostedt wrote: On Wed, 11 Sep 2013 11:21:49 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: I'm trying to understand how this will fix it for you. Are you sure you removed 'xen_nopvspin'? Yes. If you are calling

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 01:05:07PM -0400, Steven Rostedt wrote: [ Fixed Jason Baron's email so that he can join the conversation ] On Wed, 11 Sep 2013 12:17:45 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Wed, Sep 11, 2013 at 11:47:08AM -0400, Steven Rostedt wrote

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 01:52:37PM -0400, Steven Rostedt wrote: On Wed, 11 Sep 2013 13:25:52 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: commit 97ce2c88f9ad42e3c60a9beb9fca87abf3639faa Author: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Date: Wed Oct 12 16:17:54

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 02:26:44PM -0400, Steven Rostedt wrote: On Wed, 11 Sep 2013 14:01:13 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: confused I am thins would still work: 47 static __always_inline void arch_spin_unlock(arch_spinlock_t *lock

Re: Regression :-) Re: [GIT PULL RESEND] x86/jumpmplabel changes for v3.12-rc1

2013-09-11 Thread Konrad Rzeszutek Wilk
On Wed, Sep 11, 2013 at 03:14:52PM -0400, Steven Rostedt wrote: On Wed, 11 Sep 2013 14:56:54 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: I'm looking to NAK your patch because it is obvious that the jump label code isn't doing what you expect it to be doing. And it wasn't

Re: [PATCH] do not allow XEN_TMEM on ARM64

2013-07-30 Thread Konrad Rzeszutek Wilk
On Tue, Jul 23, 2013 at 05:46:58PM +0100, Stefano Stabellini wrote: tmem is not supported on arm or arm64 yet. So .. I lost track of the conversation about this. We chatted about this on the hyepervisor side and then there is also this patch. What did we decide? Signed-off-by: Stefano

Replace in linux-next the xen, xen-two, xen-arm with xen/tip.git tree instead.

2013-07-30 Thread Konrad Rzeszutek Wilk
://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git#linux-next I presume you need Ack's from all of us (so Jeremy and Stefano) so CC-ing them here. And Acked-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [Xen-devel] [PATCH RFC 0/4] xen-block: prevent blkfront for hoarding grants

2013-07-31 Thread Konrad Rzeszutek Wilk
Roger Pau Monné roger@citrix.com wrote: On 08/07/13 15:03, Roger Pau Monne wrote: The following patches prevent blkfront from hoarding all grants in the system by allowing blkfront to request blkback to unmap certain grants so they can be freed by blkfront. This is done periodically by

Re: [QUERY] lguest64

2013-07-31 Thread Konrad Rzeszutek Wilk
On Wed, Jul 31, 2013 at 05:17:35AM -0700, H. Peter Anvin wrote: On 07/31/2013 02:39 AM, Mike Rapoport wrote: The use case I had in mind is to use lguest as a nested hypervisor in public clouds. As of today, major public clouds do not support nested virtualization and it's not clear at

Re: [PATCH 3/3 v2] Update x86_msi.restore_msi_irqs API param

2013-07-31 Thread Konrad Rzeszutek Wilk
code looks consistent in vm and bare metal. Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Dom0 msix restore code could be optimized a bit with this change. This part of the comment I don't think is needed. Thanks! Signed-off-by: Zhenzhong Duan zhenzhong.d...@oracle.com

[GIT PULL] (xen) stable/for-linus-3.11-rc3-tag

2013-07-31 Thread Konrad Rzeszutek Wilk
Hey Linus, We are trying out a new git flow where both me and Stefano are going to use one git tree. Not sure yet how we are going to figure out the branch names (discussing that now) but in the meantime here is a git pull from that tree and also using git request pull to construct this writeup.

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

2013-07-31 Thread Konrad Rzeszutek Wilk
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...@arm.linux.org.uk --- arch/arm/Kconfig |7 +++ arch/arm/include/asm/dma-mapping.h | 24

Re: [PATCH RFC 4/8] xen/arm,arm64: move Xen initialization earlier

2013-07-31 Thread Konrad Rzeszutek Wilk
Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- arch/arm/include/asm/xen/hypervisor.h |6 ++ arch/arm/kernel/setup.c |2 ++ arch/arm/xen/enlighten.c | 21

Re: [PATCH RFC 5/8] xen: introduce XENMEM_get_dma_buf and xen_put_dma_buf

2013-07-31 Thread Konrad Rzeszutek Wilk
Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- include/xen/interface/memory.h | 62 1 files changed, 62 insertions(+), 0 deletions(-) diff --git

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

2013-08-01 Thread Konrad Rzeszutek Wilk
On Wed, Jul 31, 2013 at 04:41:32PM -0600, Bjorn Helgaas wrote: On Tue, Jul 23, 2013 at 9:08 PM, Zhenzhong Duan zhenzhong.d...@oracle.com wrote: xen_initdom_restore_msi_irqs trigger a hypercall to restore addr/data/mask in dom0. It's better to do the same for default_restore_msi_irqs in

Re: [GIT PULL] (xen) stable/for-jens-3.12 for Jens Axboe

2013-11-04 Thread Konrad Rzeszutek Wilk
On Fri, Sep 06, 2013 at 02:26:34PM -0600, Jens Axboe wrote: On 09/06/2013 02:25 PM, Konrad Rzeszutek Wilk wrote: Hey Jens, I sent you a git pull a couple of weeks ago but I am not sure if you pulled it. It does not look like it, so here it is again along with an extra bug-fix

Re: [GIT PULL] (xen) stable/for-jens-3.12 for Jens Axboe

2013-11-04 Thread Konrad Rzeszutek Wilk
On Mon, Nov 04, 2013 at 10:40:02AM -0700, Jens Axboe wrote: On 11/04/2013 10:37 AM, Konrad Rzeszutek Wilk wrote: On Fri, Sep 06, 2013 at 02:26:34PM -0600, Jens Axboe wrote: On 09/06/2013 02:25 PM, Konrad Rzeszutek Wilk wrote: Hey Jens, I sent you a git pull a couple of weeks ago but I

Re: linux-next: Tree for Nov 1 (xen_swiotllb)

2013-11-04 Thread Konrad Rzeszutek Wilk
On Mon, Nov 04, 2013 at 06:20:42PM +, Stefano Stabellini wrote: On Fri, 1 Nov 2013, Konrad Rzeszutek Wilk wrote: On Fri, Nov 01, 2013 at 11:16:26AM -0700, Randy Dunlap wrote: On 11/01/13 01:11, Stephen Rothwell wrote: Hi all, Changes since 20131031: The squashfs

Re: linux-next: Tree for Oct 30 (include/xen/swiotlb-xen.h)

2013-11-04 Thread Konrad Rzeszutek Wilk
On Mon, Nov 04, 2013 at 06:14:26PM +, Stefano Stabellini wrote: On Fri, 1 Nov 2013, Konrad Rzeszutek Wilk wrote: On Wed, Oct 30, 2013 at 11:44:51AM -0700, Randy Dunlap wrote: On 10/30/13 00:45, Stephen Rothwell wrote: Hi all, News: I am now doing an arm multi_v7_defconfig

Re: [PATCH] xen/pci: Deal with toolstack missing an 'XenbusStateClosing'.

2013-11-04 Thread Konrad Rzeszutek Wilk
Sure; this is your baby :) Why don't you handle it via your tree, since it's more related to xen than any PCI core stuff. Acked-by: Bjorn Helgaas bhelg...@google.com Definitly fixed in v3.12. Just tested it and it works. George, Ian, how do I close a bug in

Re: [PATCH 2/3] PCI: Refactor MSI/MSIX mask restore code to fix interrupt lost issue

2013-11-05 Thread Konrad Rzeszutek Wilk
On Wed, Oct 30, 2013 at 10:20:40AM +0800, Zhenzhong Duan wrote: On 2013-10-30 05:58, Bjorn Helgaas wrote: On Wed, Oct 16, 2013 at 02:33:04PM +0800, Zhenzhong Duan wrote: Driver init call graph under baremetal: driver_init- msix_capability_init- msix_program_entries-

Re: [PATCH] grant-table: don't set m2p override if kmap_ops is not set

2013-11-05 Thread Konrad Rzeszutek Wilk
On Tue, Nov 05, 2013 at 03:47:08PM +0100, Roger Pau Monné wrote: On 05/11/13 13:36, David Vrabel wrote: On 05/11/13 11:24, Roger Pau Monne wrote: IMHO there's no reason to set a m2p override if the mapping is done in kernel space, so only set the m2p override when kmap_ops is set. Can

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