[PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-14 Thread Ian Campbell
no reason to disallow it. Signed-off-by: Ian Campbell [EMAIL PROTECTED] --- pristine-linux-2.6.18/include/asm-i386/elf.h2006-09-20 04:42:06.0 +0100 +++ linux-2.6.18-xen/include/asm-i386/elf.h 2007-03-14 16:42:30.0 + @@ -36,7 +36,7 @@ * This is used to ensure we

Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-15 Thread Ian Campbell
is a 64 bit due to the hypervisor but the dump kernel is 32 bit in for maximum compatibility. It's possibly less likely to be useful in a purely native scenario but I see no reason to disallow it. Signed-off-by: Ian Campbell [EMAIL PROTECTED] diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c

Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-15 Thread Ian Campbell
On Thu, 2007-03-15 at 18:56 +0530, Vivek Goyal wrote: Ideal place for this probably should have been arch dependent crash_dump.h file. But we don't have one and no point introducing one just for this macro. Agreed. This change looks good to me. Is there a kdump tree which you'll apply

Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-16 Thread Ian Campbell
On Fri, 2007-03-16 at 08:48 +0900, Horms wrote: Signed-off-by: Ian Campbell [EMAIL PROTECTED] diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index d960507..523e109 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -514,7 +514,7 @@ static int __init

Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-16 Thread Ian Campbell
On Fri, 2007-03-16 at 11:40 +0900, Magnus Damm wrote: Right. And maybe it's a good idea to make sure that this feature is actually supported by kexec-tools before adding code to the kernel? I sent patches to the fastboot list at the same time I sent these ones to support differences in the

Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-16 Thread Ian Campbell
On Fri, 2007-03-16 at 08:12 +0530, Vivek Goyal wrote: I did not investigate deeper but I got a basic question. How will kexec know that underlying 32bit machine supports 64bit extensions or not? It looks like /proc/cpuinfo flags contains lm (which is long mode, right?) even if the machine is

Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-16 Thread Ian Campbell
On Fri, 2007-03-16 at 16:59 +0900, Magnus Damm wrote: On 3/16/07, Ian Campbell [EMAIL PROTECTED] wrote: On Fri, 2007-03-16 at 11:40 +0900, Magnus Damm wrote: Right. And maybe it's a good idea to make sure that this feature is actually supported by kexec-tools before adding code

[PATCH] Allow i386 crash kernels to handle x86_64 dumps.

2007-03-16 Thread Ian Campbell
From: Ian Campbell [EMAIL PROTECTED] The specific case I am encountering is kdump under Xen with a 64 bit hypervisor and 32 bit kernel/userspace. The dump created is 64 bit due to the hypervisor but the dump kernel is 32 bit for maximum compatibility. It's possibly less likely to be useful

Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps

2007-03-16 Thread Ian Campbell
On Fri, 2007-03-16 at 17:08 +0530, Vivek Goyal wrote: On Fri, Mar 16, 2007 at 07:05:30PM +0900, Magnus Damm wrote: On 3/16/07, Vivek Goyal [EMAIL PROTECTED] wrote: Got a question. When running 32bit dom0 on 64bit hypervisor, which kexec-tools elf loader will kick in? 32bit or 64bit? Looks

Re: [patch 14/21] Xen-paravirt: Add XEN config options and disable unsupported config options.

2007-02-16 Thread Ian Campbell
On Fri, 2007-02-16 at 00:33 -0700, Eric W. Biederman wrote: I know there actually has been some work to get kexec actually working under Xen but I don't know where that has gone. kexec/kdump works with Xen 3.0.4 but it's a dom0 only thing so it doesn't appear in this patchset. Ian. - To

Re: [PATCH -mm 2/2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-14 Thread Ian Campbell
On Thu, 2008-01-10 at 16:21 +0900, Simon Horman wrote: [ CCing Ian Campbell who handles much of the maintenance of kexec in Xen ] On Thu, Jan 10, 2008 at 10:08:09AM +0800, Huang, Ying wrote: On Wed, 2008-01-09 at 20:05 -0500, Vivek Goyal wrote: On Wed, Jan 09, 2008 at 10:57:50AM +0800

Re: [PATCH -mm 1/2] kexec/i386: kexec page table code clean up - add arch_kimage

2008-01-14 Thread Ian Campbell
On Thu, 2008-01-10 at 17:15 +0900, Simon Horman wrote: Have you tested Xen too? Does it run into issues with this change? Xen will need to be updated for this change but it shouldn't be a big deal. Basically right now it calls __ma() (which is kind of like __pa()) on kexec_pgd and

Re: [PATCH 3/3] Time to make CONFIG_PARAVIRT non-experimental.

2007-09-19 Thread Ian Campbell
, because of bugs in the 64-bit compat layer. 32-on-32 and 64-on-64 (when its done) should work fine. All the required fixes for 32on64 are queued for Xen 3.1.1 too. The proposed updates are at http://xenbits.xensource.com/xen-3.1-testing.pq.hg Ian. -- Ian Campbell Current Noise: Detonation

[PATCH] Implement getgeo for Xen virtual block device.

2007-12-16 Thread Ian Campbell
specific hacks around the place. Signed-off-by: Ian Campbell [EMAIL PROTECTED] diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 2bdebcb..b0a2e69 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -37,6 +37,7 @@ #include linux/interrupt.h

[PATCHv3 2/3] x86: add a crc32 checksum to the kernel image.

2008-02-13 Thread Ian Campbell
Signed-off-by: Ian Campbell [EMAIL PROTECTED] Cc: Thomas Gleixner [EMAIL PROTECTED] Cc: Ingo Molnar [EMAIL PROTECTED] Cc: H. Peter Anvin [EMAIL PROTECTED] --- Documentation/i386/boot.txt |8 arch/x86/boot/tools/build.c | 88 ++- 2 files changed

[PATCHv3 1/3] x86: use ELF format in compressed images.

2008-02-13 Thread Ian Campbell
This allows other boot loaders such as the Xen domain builder the opportunity to extract the ELF file. Signed-off-by: Ian Campbell [EMAIL PROTECTED] Cc: Thomas Gleixner [EMAIL PROTECTED] Cc: Ingo Molnar [EMAIL PROTECTED] Cc: H. Peter Anvin [EMAIL PROTECTED] Cc: Jeremy Fitzhardinge [EMAIL

[PATCHv3 0/3] x86: boot protocol updates.

2008-02-13 Thread Ian Campbell
Updates since last time: - Rebased to latest x86.git#mm (no changes required). Cc: Thomas Gleixner [EMAIL PROTECTED] Cc: Ingo Molnar [EMAIL PROTECTED] Cc: H. Peter Anvin [EMAIL PROTECTED] Cc: Jeremy Fitzhardinge [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe

[PATCHv3 3/3] x86: bump image header to version 2.08.

2008-02-13 Thread Ian Campbell
Signed-off-by: Ian Campbell [EMAIL PROTECTED] Cc: Thomas Gleixner [EMAIL PROTECTED] Cc: Ingo Molnar [EMAIL PROTECTED] Cc: H. Peter Anvin [EMAIL PROTECTED] --- arch/x86/boot/header.S |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/boot/header.S b/arch/x86/boot

Re: [2.6 patch] x86: don't make swapper_pg_fixmap global

2008-02-13 Thread Ian Campbell
On Wed, 2008-02-13 at 23:29 +0200, Adrian Bunk wrote: It's not required for swapper_pg_fixmap to be global. Signed-off-by: Adrian Bunk [EMAIL PROTECTED] Acked-by: Ian Campbell [EMAIL PROTECTED] --- cdaa89e8d9f49eecc6ec9052db1d65a62f1be04b diff --git a/arch/x86/kernel/head_32.S b/arch

Re: [PATCHv3 1/3] x86: use ELF format in compressed images.

2008-02-14 Thread Ian Campbell
On Thu, 2008-02-14 at 11:34 +, Mark McLoughlin wrote: On Wed, 2008-02-13 at 20:54 +, Ian Campbell wrote: This allows other boot loaders such as the Xen domain builder the opportunity to extract the ELF file. Right, Xen currently can't boot bzImage (it needs the ELF image) so

Re: [PATCHv3 1/3] x86: use ELF format in compressed images.

2008-02-14 Thread Ian Campbell
On Thu, 2008-02-14 at 17:37 +, Mark McLoughlin wrote: On Thu, 2008-02-14 at 17:01 +, Ian Campbell wrote: With this, AFLAGS would apply to building when building the prerequisites of header.o too, which you don't want The make manual says: when you define a target-specific

Re: [PATCHv3 1/3] x86: use ELF format in compressed images.

2008-02-14 Thread Ian Campbell
On Thu, 2008-02-14 at 17:01 +, Ian Campbell wrote: I have a xen domain builder patch as well. I was waiting for the Linux side to gain some traction before putting it forward (I'd attach it now but it's at home on a laptop which is sleeping). Here it is: # HG changeset patch # User

Re: [PATCHv3 1/3] x86: use ELF format in compressed images.

2008-02-14 Thread Ian Campbell
On Thu, 2008-02-14 at 17:01 +, Ian Campbell wrote: +Field name:compressed_payload_offset +Type: read +Offset/size: 0x248/4 +Protocol: 2.08+ + + If non-zero then this field contains the offset from the end of the + real-mode code

Re: [Xen-devel] [PATCH] xen PVonHVM: require at least Xen 3.4 as dom0

2012-10-31 Thread Ian Campbell
On Tue, 2012-10-30 at 18:28 +, Olaf Hering wrote: On Tue, Oct 30, Pasi Kärkkäinen wrote: On Tue, Oct 30, 2012 at 05:05:05PM +0100, Olaf Hering wrote: The XenPVHVM extensions have not been tested much on very old hypervisors. At least Xen 3.4 gets some testing with the pvops kernel.

Re: [Xen-devel] [PATCH] xen PVonHVM: require at least Xen 3.4 as dom0

2012-10-31 Thread Ian Campbell
On Wed, 2012-10-31 at 09:29 +, Olaf Hering wrote: On Wed, Oct 31, Ian Campbell wrote: If I understand correctly this requirements comes from the need to support moving the shared info page in order to support kexec? So could we do something more fine grained and limit only

Re: [Xen-devel] [PATCH v2] Persistent grant maps for xen blk drivers

2012-09-24 Thread Ian Campbell
On Mon, 2012-09-24 at 12:36 +0100, Jan Beulich wrote: On 21.09.12 at 17:52, Oliver Chick oliver.ch...@citrix.com wrote: Changes since v1: * Maximum number of persistent grants per device now 64, rather than 256, as this is the actual maxmimum request in a (1 page) ring. As said

Re: [RFC PATCH] x86-32: Start out eflags and cr4 clean

2012-09-25 Thread Ian Campbell
effect. Note that we already do this for x86-64. I would like opinions on this especially from the PV crowd Xen PV guests don't pass through this code path so there is no danger there AFAICT, so from that PoV: Acked-by: Ian Campbell ian.campb...@citrix.com FWIW it looks correct to me from

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Ian Campbell
On Wed, 2012-10-03 at 14:37 +0100, Stefano Stabellini wrote: PV on HVM guests don't have a start_info page mapped by Xen, so xen_start_info is just NULL for them. That is problem because other parts of the code expect xen_start_info to point to something valid, for example xen_initial_domain()

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Ian Campbell
On Wed, 2012-10-03 at 14:51 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 14:37 +0100, Stefano Stabellini wrote: PV on HVM guests don't have a start_info page mapped by Xen, so xen_start_info is just NULL for them. That is problem

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Ian Campbell
On Wed, 2012-10-03 at 15:11 +0100, Konrad Rzeszutek Wilk wrote: On Wed, Oct 03, 2012 at 02:54:42PM +0100, Ian Campbell wrote: On Wed, 2012-10-03 at 14:51 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 14:37 +0100, Stefano Stabellini wrote

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Ian Campbell
On Wed, 2012-10-03 at 16:48 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 15:11 +0100, Konrad Rzeszutek Wilk wrote: On Wed, Oct 03, 2012 at 02:54:42PM +0100, Ian Campbell wrote: On Wed, 2012-10-03 at 14:51 +0100, Stefano Stabellini wrote

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Ian Campbell
On Wed, 2012-10-03 at 17:05 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 16:48 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 15:11 +0100, Konrad Rzeszutek Wilk wrote: On Wed, Oct 03

Re: [Xen-devel] [PATCH] xen: point xen_start_info to a dummy struct for PV on HVM guests

2012-10-03 Thread Ian Campbell
On Wed, 2012-10-03 at 17:13 +0100, Ian Campbell wrote: On Wed, 2012-10-03 at 17:05 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 16:48 +0100, Stefano Stabellini wrote: On Wed, 3 Oct 2012, Ian Campbell wrote: On Wed, 2012-10-03 at 15

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

2012-10-05 Thread Ian Campbell
On Mon, 2012-10-01 at 12:36 +0100, Daniel Kiper wrote: On Fri, Sep 28, 2012 at 08:49:16AM +0100, Jan Beulich wrote: On 27.09.12 at 20:06, Daniel Kiper daniel.ki...@oracle.com wrote: Some kexec/kdump implementations (e.g. Xen PVOPS) on different archs could not use default functions or

Re: [Xen-devel] [PATCH] xen/hvm: If we fail to fetch an HVM parameter print out which flag it is.

2012-11-05 Thread Ian Campbell
...@oracle.com Acked-by: Ian Campbell ian.campb...@citrix.com --- include/xen/hvm.h | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/include/xen/hvm.h b/include/xen/hvm.h index b193fa2..13e43e4 100644 --- a/include/xen/hvm.h +++ b

Re: [Xen-devel] [PATCH 1/2] xen/generic: Disable fallback build on ARM.

2012-11-06 Thread Ian Campbell
On Tue, 2012-11-06 at 22:13 +, Konrad Rzeszutek Wilk wrote: As there is no need for it (the fallback code is for older hypervisors and they won't run under ARM), I think more specifically they won't run on anything other than x86. [...] diff --git a/drivers/xen/Makefile

Re: [Xen-devel] [PATCH 2/2] xen/arm: Fix compile errors when drivers are compiled as modules.

2012-11-06 Thread Ian Campbell
: privcmd_call [drivers/xen/xen-privcmd.ko] undefined! ERROR: HYPERVISOR_grant_table_op [drivers/net/xen-netback/xen-netback.ko] undefined! and this patch exports said function (which is implemented in hypercall.S). Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Acked-by: Ian Campbell

Re: [Xen-devel] [PATCH 2/2] xen/arm: Fix compile errors when drivers are compiled as modules.

2012-11-07 Thread Ian Campbell
On Wed, 2012-11-07 at 10:25 +, Stefano Stabellini wrote: On Tue, 6 Nov 2012, Konrad Rzeszutek Wilk wrote: We end up with: ERROR: HYPERVISOR_event_channel_op [drivers/xen/xen-gntdev.ko] undefined! ERROR: privcmd_call [drivers/xen/xen-privcmd.ko] undefined! ERROR:

Re: [Xen-devel] [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-08 Thread Ian Campbell
+typedef struct tpmif_tx_request tpmif_tx_request_t; checkpatch warned on this new typedef - please run through checkpatch and fix up that stuff. tpmif.h has a couple of typedefs which do trigger checkpatch warnings. However it looks like the paradigm for xen is to have these

Re: [Xen-devel] [PATCH V3 2/6]: PVH: use native irq, enable callback, use HVM ring ops, smp, ...

2012-10-19 Thread Ian Campbell
On Thu, 2012-10-18 at 23:03 +0100, Mukesh Rathor wrote: On Thu, 18 Oct 2012 11:44:37 +0100 Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2012-10-18 at 01:30 +0100, Mukesh Rathor wrote: PVH: make gdt_frames[]/gdt_ents into a union with {gdtaddr, gdtsz}, PVH only needs to send down

Re: [Xen-devel] [PATCH V3 1/6]: PVH: basic and header changes, elfnote changes, ...

2012-10-23 Thread Ian Campbell
On Fri, 2012-10-19 at 14:17 +0100, Konrad Rzeszutek Wilk wrote: +config XEN_X86_PVH + bool Support for running as a PVH guest (EXPERIMENTAL) + depends on X86_64 XEN EXPERIMENTAL + default n + help +This option enables support for running as a PVH guest (PV guest +

Re: [Xen-devel] [PATCH] xen/hvm: If we fail to fetch an HVM parameter print out which flag it is.

2012-10-23 Thread Ian Campbell
On Fri, 2012-10-19 at 20:03 +0100, Konrad Rzeszutek Wilk wrote: Makes it easier to troubleshoot in the field. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- include/xen/hvm.h | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff

Re: [PATCH 1/6] xen/pvh: Support ParaVirtualized Hardware extensions.

2012-10-24 Thread Ian Campbell
On Tue, 2012-10-23 at 15:46 +0100, Konrad Rzeszutek Wilk wrote: diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index b66d04c..8beebdb 100644 --- a/include/xen/interface/memory.h +++ b/include/xen/interface/memory.h @@ -169,7 +169,13 @@ struct

Re: [PATCH 1/6] xen/pvh: Support ParaVirtualized Hardware extensions.

2012-10-24 Thread Ian Campbell
On Tue, 2012-10-23 at 15:07 +0100, Konrad Rzeszutek Wilk wrote: +/* + * Unmaps the page appearing at a particular GPFN from the specified guest's + * pseudophysical address space. + * arg == addr of xen_remove_from_physmap_t. + */ +#define XENMEM_remove_from_physmap 15

Re: [Xen-devel] [PATCH V5] PVH patches for v3.8.

2012-10-24 Thread Ian Campbell
On Wed, 2012-10-24 at 08:13 +0100, Jan Beulich wrote: include/xen/interface/memory.h | 29 ++- include/xen/interface/physdev.h | 10 ++ ... any changes to the hypervisor interface (didn't look in detail what is being changed in these two headers) should first be in at

Re: [PATCH 01/10] xen/pvh: Support ParaVirtualized Hardware extensions.

2012-10-24 Thread Ian Campbell
On Tue, 2012-10-23 at 19:12 +0100, Konrad Rzeszutek Wilk wrote: diff --git a/include/xen/interface/physdev.h b/include/xen/interface/physdev.h index 1844d31..83050d3 100644 --- a/include/xen/interface/physdev.h +++ b/include/xen/interface/physdev.h @@ -274,6 +274,16 @@ struct physdev_dbgp_op

Re: [PATCH 03/10] xen/hypercall: Make xen_remove_from_physmap the same on 64/32 builds.

2012-10-24 Thread Ian Campbell
On Tue, 2012-10-23 at 19:12 +0100, Konrad Rzeszutek Wilk wrote: By making the structure exactly the same size and with the same offsets on 64 and 32-bit builds we are future-proofing ourselves. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- include/xen/interface/memory.h |

Re: [PATCH 05/10] xen/pvh: Extend vcpu_guest_context, p2m, event, and XenBus.

2012-10-24 Thread Ian Campbell
On Tue, 2012-10-23 at 19:12 +0100, Konrad Rzeszutek Wilk wrote: [...] + /* GUEST_GDTR_BASE and */ + ctxt-u.pvh.gdtaddr = (unsigned long)gdt; + /* GUEST_GDTR_LIMIT in the VMCS. */ + ctxt-u.pvh.gdtsz = (unsigned long)(GDT_SIZE - 1); + [...] -

Re: [Xen-devel] [PATCH V5] PVH patches for v3.8.

2012-10-24 Thread Ian Campbell
On Wed, 2012-10-24 at 10:44 +0100, Jan Beulich wrote: On 24.10.12 at 11:34, Ian Campbell ian.campb...@citrix.com wrote: On Wed, 2012-10-24 at 08:13 +0100, Jan Beulich wrote: include/xen/interface/memory.h | 29 ++- include/xen/interface/physdev.h | 10

[PATCH+GIT V3 0/5] arm: implement ballooning and privcmd foreign mappings based on x86 PVH

2012-10-24 Thread Ian Campbell
This is rebased onto 0e9e3e306c7e (AKA current Linus, which now includes the previously prerequisite series xen: build fixes and interface tweaks) and Konrad's stable/pvh.v5 branch. For convenience I've also pushed to git://xenbits.xen.org/people/ianc/linux.git

[PATCH 2/5] xen: arm: enable balloon driver

2012-10-24 Thread Ian Campbell
The code is no in a state where can just enable it. Drop the *_xenballloned_pages duplicates since these are now supplied by the balloon code. Signed-off-by: Ian Campbell ian.campb...@citrix.com Acked-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- arch/arm/xen/enlighten.c | 23

[PATCH 5/5] xen: x86 pvh: use XENMEM_add_to_physmap_range for foreign gmfn mappings

2012-10-24 Thread Ian Campbell
for batching which was impossible to support at the same time as foreign mfns in the old interface. This reverts the relevant parts of PVH: basic and header changes, elfnote changes, ... and followups and trivially converts pvh_add_to_xen_p2m over. Signed-off-by: Ian Campbell ian.campb...@citrix.com

[PATCH 4/5] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-24 Thread Ian Campbell
We use XENMEM_add_to_physmap_range which is the preferred interface for foreign mappings. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- arch/arm/include/asm/xen/interface.h |1 + arch/arm/xen/enlighten.c | 100 +- arch/x86/include/asm

[PATCH 1/5] xen: balloon: allow PVMMU interfaces to be compiled out

2012-10-24 Thread Ian Campbell
actual hypercalls. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- arch/x86/xen/Kconfig |1 + drivers/xen/Kconfig |3 +++ drivers/xen/balloon.c |4 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index c9660bf

[PATCH 3/5] xen: correctly use xen_pfn_t in remap_domain_mfn_range.

2012-10-24 Thread Ian Campbell
For Xen on ARM a PFN is 64 bits so we need to use the appropriate type here. Signed-off-by: Ian Campbell ian.campb...@citrix.com Acked-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- arch/x86/xen/mmu.c|2 +- include/xen/xen-ops.h |2 +- 2 files changed, 2 insertions(+), 2

Re: [Xen-devel] [PATCH 5/9] ARM: Xen: fix initial build problems:

2012-10-09 Thread Ian Campbell
Bergmann a...@arndb.de Acked-by: Ian Campbell ian.campb...@citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Jeremy Fitzhardinge jer...@goop.org Cc: xen-de...@lists.xensource.com --- arch/arm/Kconfig |1

Re: [Xen-devel] [PATCH 5/9] ARM: Xen: fix initial build problems:

2012-10-09 Thread Ian Campbell
On Tue, 2012-10-09 at 16:39 +0100, Arnd Bergmann wrote: On Tuesday 09 October 2012, Ian Campbell wrote: * The tmem hypercall is not available on ARM * ARMv6 does not support cmpxchg on 16-bit words that are used in the missing the end of this sentence? Right, I meant to say

Re: [Xen-devel] [PATCH 5/9] ARM: Xen: fix initial build problems:

2012-10-10 Thread Ian Campbell
On Tue, 2012-10-09 at 19:21 +0100, Arnd Bergmann wrote: On Tuesday 09 October 2012, Stefano Stabellini wrote: config XEN bool Xen guest support on ARM (EXPERIMENTAL) depends on EXPERIMENTAL ARM OF + depends on !CPU_V6 help Say Y if you want to

Re: [Xen-devel] [PATCH 5/9] ARM: Xen: fix initial build problems:

2012-10-10 Thread Ian Campbell
On Tue, 2012-10-09 at 19:19 +0100, Arnd Bergmann wrote: On Tuesday 09 October 2012, Ian Campbell wrote: On Tue, 2012-10-09 at 16:39 +0100, Arnd Bergmann wrote: On Tuesday 09 October 2012, Ian Campbell wrote: * The tmem hypercall is not available on ARM * ARMv6 does

Re: [Xen-devel] [PATCH 5/9] ARM: Xen: fix initial build problems:

2012-10-10 Thread Ian Campbell
On Wed, 2012-10-10 at 15:47 +0100, Stefano Stabellini wrote: On Wed, 10 Oct 2012, Ian Campbell wrote: On Tue, 2012-10-09 at 19:21 +0100, Arnd Bergmann wrote: On Tuesday 09 October 2012, Stefano Stabellini wrote: config XEN bool Xen guest support on ARM (EXPERIMENTAL

Re: [Xen-devel] [PATCH V2 1/7]: PVH: basic and header changes, elfnote changes, ...

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:53 +0100, Mukesh Rathor wrote: PVH: is a PV linux guest that has extended capabilities. This patch allows it to be configured and enabled. Also, basic header file changes to add new subcalls to physmap hypercall. Lastly, mfn_to_local_pfn must return mfn for paging

Re: [Xen-devel] [PATCH V2 2/7]: PVH: use native irq, enable callback, use HVM ring ops, ...

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:57 +0100, Mukesh Rathor wrote: PVH: make gdt_frames[]/gdt_ents into a union with {gdtaddr, gdtsz}, PVH only needs to send down gdtaddr and gdtsz. irq.c: PVH uses native_irq_ops. vcpu hotplug is currently not available for PVH. events.c: setup callback vector for PVH.

Re: [Xen-devel] [PATCH V2 3/7]: PVH: mmu related changes.

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:58 +0100, Mukesh Rathor wrote: @@ -2177,8 +2210,19 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = { void __init xen_init_mmu_ops(void) { - x86_init.mapping.pagetable_reserve = xen_mapping_pagetable_reserve;

Re: [Xen-devel] [PATCH V2 6/7]: PVH: balloon and grant changes

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 23:01 +0100, Mukesh Rathor wrote: PVH: balloon and grant changes. For balloon changes we skip setting of local p2m as it's updated in xen. For grant, the shared grant frame is the pfn and not mfn, hence its mapped via the same code path as HVM Signed-off-by: Mukesh R

Re: [Xen-devel] [PATCH V2 7/7]: PVH: privcmd changes.

2012-10-12 Thread Ian Campbell
@@ -260,15 +268,24 @@ struct mmap_batch_state { xen_pfn_t __user *user_mfn; }; +/* auto translated dom0 note: if domU being created is PV, then mfn is + * mfn(addr on bus). If it's auto xlated, then mfn is pfn (input to HAP). + */ static int mmap_batch_fn(void *data, void *state)

Re: [Xen-devel] [PATCH V2 0/7]: PVH: PV guest with extensions

2012-10-12 Thread Ian Campbell
On Thu, 2012-10-11 at 22:49 +0100, Mukesh Rathor wrote: Hi guys, Ok, I've made all the changes from prev RFC patch submissions. Tested all the combinations. The patches are organized slightly differently from prev version because of the nature of changes after last review. I am building xen

Re: [Xen-devel] [PATCH 4/5] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-25 Thread Ian Campbell
On Thu, 2012-10-25 at 01:07 +0100, Mukesh Rathor wrote: On Wed, 24 Oct 2012 16:44:11 -0700 Mukesh Rathor mukesh.rat...@oracle.com wrote: #ifndef HYPERVISOR_VIRT_START diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index ad0dff5..5de2b36 100644

Re: [Xen-devel] [PATCH 4/5] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-26 Thread Ian Campbell
On Fri, 2012-10-26 at 02:39 +0100, Mukesh Rathor wrote: Yup. I made the change on xen side and added this patch to my tree and got it working after reverting Konrad's setup.c changes. Not sure if you need an ack from x86, but if you do: Acked-by: Mukesh Rathor mukesh.rat...@oracle.com The

Re: [Xen-devel] [PATCH V2 2/7]: PVH: use native irq, enable callback, use HVM ring ops, ...

2012-10-15 Thread Ian Campbell
On Fri, 2012-10-12 at 20:06 +0100, Mukesh Rathor wrote: On Fri, 12 Oct 2012 09:52:17 +0100 Ian Campbell ian.campb...@citrix.com wrote: drivers/xen/cpu_hotplug.c|4 +++- drivers/xen/events.c |9 - drivers/xen/xenbus/xenbus_client.c |3

Re: [Xen-devel] [PATCH 1/3] xen/pv-on-hvm kexec: add quirk for Xen 3.4 and shutdown watches.

2012-10-15 Thread Ian Campbell
On Wed, 2012-10-10 at 18:40 +0100, Konrad Rzeszutek Wilk wrote: The commit 254d1a3f02ebc10ccc6e4903394d8d3f484f715e, titled xen/pv-on-hvm kexec: shutdown watches from old kernel assumes that the XenBus backend can deal with reading of values from: control/platform-feature-xs_reset_watches:

Re: [Xen-devel] [PATCH 1/3] xen/pv-on-hvm kexec: add quirk for Xen 3.4 and shutdown watches.

2012-10-15 Thread Ian Campbell
On Mon, 2012-10-15 at 17:05 +0100, Ian Campbell wrote: +static bool xen_strict_xenbus_quirk() +{ + uint32_t eax, ebx, ecx, edx, base; + + base = xen_cpuid_base(); + cpuid(base + 1, eax, ebx, ecx, edx); This breaks on ARM because this is an x86 specific function. Can we

Re: [Xen-devel] [PATCH V2 0/7]: PVH: PV guest with extensions

2012-10-15 Thread Ian Campbell
On Thu, 2012-10-11 at 22:49 +0100, Mukesh Rathor wrote: Hi guys, Ok, I've made all the changes from prev RFC patch submissions. Tested all the combinations. The patches are organized slightly differently from prev version because of the nature of changes after last review. I am building xen

Re: [Xen-devel] [PATCH V2 3/7]: PVH: mmu related changes.

2012-10-16 Thread Ian Campbell
On Fri, 2012-10-12 at 09:57 +0100, Ian Campbell wrote: +int xen_unmap_domain_mfn_range(struct vm_area_struct *vma) +{ + int numpgs = (vma-vm_end - vma-vm_start) PAGE_SHIFT; + struct page **pages = vma ? vma-vm_private_data : NULL; I thought we agreed to keep uses

Re: [Xen-devel] [PATCH V2 3/7]: PVH: mmu related changes.

2012-10-16 Thread Ian Campbell
On Tue, 2012-10-16 at 10:46 -0700, Mukesh Rathor wrote: On Tue, 16 Oct 2012 17:27:01 +0100 Ian Campbell ian.campb...@citrix.com wrote: On Fri, 2012-10-12 at 09:57 +0100, Ian Campbell wrote: +int xen_unmap_domain_mfn_range(struct vm_area_struct *vma) +{ + int numpgs = (vma

[PATCH 00/10] xen: build fixes and interface tweaks

2012-10-17 Thread Ian Campbell
The following is based on v3.7-rc1 and fixes various build fallout which I discovered when build for Xen on ARM. It also cleans up a final few s/unsigned long/xen_{pfn,ulong}_t/ changes. These have no impact on x86 (since those types are typedefs of unsigned long) but change the ARM port to use

Re: [Xen-devel] [PATCH V2 6/7]: PVH: balloon and grant changes

2012-10-17 Thread Ian Campbell
On Wed, 2012-10-17 at 01:09 +0100, Mukesh Rathor wrote: gsv.version = 1; else gsv.version = 2; @@ -1083,12 +1088,24 @@ static void gnttab_request_version(void) int gnttab_resume(void) { unsigned int max_nr_gframes; + char *kmsg = Failed to kmalloc

[PATCH V2 0/6] arm: implement ballooning and privcmd foreign mappings based on x86 PVH

2012-10-17 Thread Ian Campbell
This series is much reduced after rebasing onto V2 of the X86 PVH patches, thanks Mukesh. The baseline is v3.7-rc1 + xen: build fixes and interface tweaks (posted this morning) and the PVH V2 patches from Mukesh. With this series I can build a guest on Xen ARM. The final patch requires that

[PATCH 2/6] xen: arm: enable balloon driver

2012-10-17 Thread Ian Campbell
The code is no in a state where can just enable it. Drop the *_xenballloned_pages duplicates since these are now supplied by the balloon code. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- arch/arm/xen/enlighten.c | 23 +-- drivers/xen/Makefile |4 ++-- 2

[PATCH 1/6] xen: balloon: allow PVMMU interfaces to be compiled out

2012-10-17 Thread Ian Campbell
actual hypercalls. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- arch/x86/xen/Kconfig |1 + drivers/xen/Kconfig |3 +++ drivers/xen/balloon.c |4 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index 9323b8c

[PATCH 6/6] xen: x86 pvh: use XENMEM_add_to_physmap_range for foreign gmfn mappings

2012-10-17 Thread Ian Campbell
for batching which was impossible to support at the same time as foreign mfns in the old interface. This reverts the relevant parts of PVH: basic and header changes, elfnote changes, ... and followups and trivially converts pvh_add_to_xen_p2m over. Signed-off-by: Ian Campbell ian.campb...@citrix.com

[PATCH 5/6] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-17 Thread Ian Campbell
We use XENMEM_add_to_physmap_range which is the preferred interface for foreign mappings. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- arch/arm/include/asm/xen/interface.h |1 + arch/arm/xen/enlighten.c | 100 +- arch/x86/include/asm

[PATCH 3/6] xen: avoid use of vma-vm_private in xen_unmap_domain_mfn_range interface

2012-10-17 Thread Ian Campbell
Signed-off-by: Ian Campbell ian.campb...@citrix.com --- I beleive Mukesh has something similar in his tree. Should be trivial to resolve I think. I'm happy to do so ontop of PVH v3 when it arrives. --- arch/x86/xen/mmu.c|6 ++ drivers/xen/privcmd.c |2 +- include/xen/xen-ops.h

[PATCH 4/6] xen: correctly use xen_pfn_t in remap_domain_mfn_range.

2012-10-17 Thread Ian Campbell
For Xen on ARM a PFN is 64 bits so we need to use the appropriate type here. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- arch/x86/xen/mmu.c|2 +- include/xen/xen-ops.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen

Re: [PATCH 6/6] xen: x86 pvh: use XENMEM_add_to_physmap_range for foreign gmfn mappings

2012-10-18 Thread Ian Campbell
On Thu, 2012-10-18 at 00:57 +0100, Mukesh Rathor wrote: On Wed, 17 Oct 2012 12:32:12 +0100 Ian Campbell ian.campb...@citrix.com wrote: Squeezing the necessary fields into the existing XENMEM_add_to_physmap interface was proving to be a bit tricky so we have decided to go with a new

Re: [Xen-devel] [PATCH V3 6/6]: PVH:privcmd changes.

2012-10-18 Thread Ian Campbell
@@ -439,6 +490,19 @@ static long privcmd_ioctl(struct file *file, return ret; } +static void privcmd_close(struct vm_area_struct *vma) +{ + struct page **pages = vma ? vma-vm_private_data : NULL; Can VMA really be NULL?... + int numpgs = (vma-vm_end - vma-vm_start)

Re: [Xen-devel] [PATCH V3 2/6]: PVH: use native irq, enable callback, use HVM ring ops, smp, ...

2012-10-18 Thread Ian Campbell
On Thu, 2012-10-18 at 01:30 +0100, Mukesh Rathor wrote: PVH: make gdt_frames[]/gdt_ents into a union with {gdtaddr, gdtsz}, PVH only needs to send down gdtaddr and gdtsz. irq.c: PVH uses native_irq_ops. vcpu hotplug is currently not available for PVH. events.c: setup callback vector for PVH.

Re: [Xen-devel] [PATCH V3 3/6]: PVH: mmu related changes.

2012-10-18 Thread Ian Campbell
On Thu, 2012-10-18 at 01:31 +0100, Mukesh Rathor wrote: * the initial domain. For guests using the toolstack, they are in: @@ -2177,8 +2210,20 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = { void __init xen_init_mmu_ops(void) { -

Re: [Xen-devel] [PATCH V3 4/6]: PVH:bootup and setup related changes.

2012-10-18 Thread Ian Campbell
On Thu, 2012-10-18 at 01:32 +0100, Mukesh Rathor wrote: + /* PVH TBD/FIXME: vcpu info placement in phase 2 */ + if (xen_pvh_domain()) + return; Do you have a list of future work before PVH is feature complete somewhere? I wouldn't count vcpu placement specifically

Re: [PATCH 5/6] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-18 Thread Ian Campbell
On Thu, 2012-10-18 at 14:27 +0100, Stefano Stabellini wrote: On Wed, 17 Oct 2012, Ian Campbell wrote: We use XENMEM_add_to_physmap_range which is the preferred interface for foreign mappings. Signed-off-by: Ian Campbell ian.campb...@citrix.com It looks OK but there are few code style

Re: [PATCH 5/6] xen: arm: implement remap interfaces needed for privcmd mappings.

2012-10-18 Thread Ian Campbell
On Thu, 2012-10-18 at 14:35 +0100, Stefano Stabellini wrote: On Thu, 18 Oct 2012, Ian Campbell wrote: On Thu, 2012-10-18 at 14:27 +0100, Stefano Stabellini wrote: On Wed, 17 Oct 2012, Ian Campbell wrote: We use XENMEM_add_to_physmap_range which is the preferred interface for foreign

Re: New x86-Setup code breaks HVM-XEN boot

2007-09-05 Thread Ian Campbell
On Fri, 2007-08-31 at 09:54 +0200, Christian Ehrhardt wrote: (XEN) (GUEST: 353) Detected Xen v3.0.3-1 I was unable to reproduce this problem on Xen 3.1.0 although I can't immediately see a particular changeset which obviously fixed it. There have been plenty of fixes to the emulator since 3.0.3

Re: [Fwd: Re: connector is missing in 2.6.12-rc2-mm1]

2005-04-07 Thread Ian Campbell
if they do not need it. Isn't connector built on top of netlink? If so, is there any reason for it to be a new subsystem rather than an extension the the netlink API? Ian. -- Ian Campbell Employees and their families are not eligible. - To unsubscribe from this list: send the line unsubscribe linux

Re: HELP:porting linux PXA audio driver to RTLinux(RTLinux core driver)

2005-04-09 Thread Ian Campbell
. You should contact FSM labs for support with RTLinux. Ian. -- Ian Campbell Be braver -- you can't cross a chasm in two small jumps. signature.asc Description: This is a digitally signed message part

Re: [PATCH] Add TPM hardware enablement driver

2005-04-09 Thread Ian Campbell
driver would just be another driver to be loaded. It sounds like it might end up similar to the i2c subsystem for example. Ian. -- Ian Campbell Every time I think I know where it's at, they move it. signature.asc Description: This is a digitally signed message part

Re: What is the purpose of a GPIO controller

2005-02-15 Thread Ian Campbell
. -- Ian Campbell Current Noise: Opeth - To Rid the Disease The pollution's at that awkward stage. Too thick to navigate and too thin to cultivate. -- Doug Sneyd - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED

Re: What is the Purpose of GPIO Controller.

2005-02-15 Thread Ian Campbell
does by trial and error. Ian. -- Ian Campbell Current Noise: Opeth - To Rid the Disease Variables don't; constants aren't. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH] Allow cscope to index multiple architectures

2005-07-13 Thread Ian Campbell
On Wed, 2005-07-13 at 21:43 +, Sam Ravnborg wrote: On Thu, Jun 23, 2005 at 11:25:54AM +0100, Ian Campbell wrote: Hi, I have a single source tree which I cross compile for a couple of different architectures using ARHC=foo O=blah etc. The existing cscope target is very handy

Re: Thread_Id

2005-07-14 Thread Ian Campbell
, it is just a thing which you can pass back to the API, that pthread_t happens to be typedef'd to unsigned long int is irrelevant. Ian. -- Ian Campbell Current Noise: Nile - Annihilation Of The Wicked Don't tell me what you dreamed last night for I've been reading Freud. - To unsubscribe from

Re: Thread_Id

2005-07-14 Thread Ian Campbell
On Thu, 2005-07-14 at 16:32 +0530, RVK wrote: Ian Campbell wrote: What Arjan is saying is that pthread_t is a cookie -- this means that you cannot interpret it in any way, it is just a thing which you can pass back to the API, that pthread_t happens to be typedef'd to unsigned long int

Re: Thread_Id

2005-07-15 Thread Ian Campbell
On Fri, 2005-07-15 at 11:39 +0530, RVK wrote: Understood on pid/tid and thread identifier diffrentiation. The question now is why pthread_t is typedef as unsigned long ? It's just an arbitrary type that is big enough to contain the cookie. Ian. -- Ian Campbell It is better to give than

  1   2   3   4   5   6   7   8   9   10   >