[PATCH 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2012-09-27 Thread Daniel Kiper
existing code. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/include/asm/kexec.h | 10 +++--- arch/x86/kernel/machine_kexec_64.c | 12 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/kexec.h b/arch/x86/include/asm

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

2012-09-27 Thread Daniel Kiper
Register resources required by kexec-tools. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/kexec.c | 150 ++ 1 files changed, 150 insertions(+), 0 deletions(-) create mode 100644 arch/x86/xen/kexec.c diff --git a/arch/x86

[PATCH 11/11] x86: Add Xen kexec control code size check to linker script

2012-09-27 Thread Daniel Kiper
Add Xen kexec control code size check to linker script. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/kernel/vmlinux.lds.S |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 22a1530

[PATCH 04/11] x86/xen: Introduce architecture dependent data for kexec/kdump

2012-09-27 Thread Daniel Kiper
Introduce architecture dependent constants, structures and functions required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/include/asm/xen/hypercall.h |6 +++ arch/x86/include/asm/xen/kexec.h | 83

[PATCH 07/11] x86/xen: Add x86_64 kexec/kdump implementation

2012-09-27 Thread Daniel Kiper
Add x86_64 kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_64.c | 301 arch/x86/xen/relocate_kernel_64.S | 309 + 2 files changed, 610 insertions(+), 0

[PATCH 10/11] drivers/xen: Export vmcoreinfo through sysfs

2012-09-27 Thread Daniel Kiper
Export vmcoreinfo through sysfs. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- drivers/xen/sys-hypervisor.c | 42 +- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c

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

2012-09-27 Thread Daniel Kiper
Add i386 kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_32.c | 245 arch/x86/xen/relocate_kernel_32.S | 323 + 2 files changed, 568 insertions(+), 0 deletions

[PATCH 08/11] x86/xen: Add kexec/kdump makefile rules

2012-09-27 Thread Daniel Kiper
Add kexec/kdump makefile rules. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/Makefile |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile index 96ab2c0..7a5db44 100644 --- a/arch/x86/xen/Makefile +++ b

[PATCH 09/11] x86/xen/enlighten: Add init and crash kexec/kdump hooks

2012-09-27 Thread Daniel Kiper
Add init and crash kexec/kdump hooks. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/enlighten.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 1fbe75a..5043d77 100644 --- a/arch

[PATCH 01/11] kexec: introduce kexec_ops struct

2012-09-27 Thread Daniel Kiper
functionality of kexec/kdump generic code. Default behavior of kexec/kdump generic code is not changed. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- include/linux/kexec.h | 18 +++ kernel/kexec.c| 125 - 2 files changed, 111

[PATCH 00/11] xen: Initial kexec/kdump implementation

2012-09-27 Thread Daniel Kiper
drivers/xen/sys-hypervisor.c | 42 +- include/linux/kexec.h| 18 ++ include/xen/interface/xen.h | 33 kernel/kexec.c | 125 ++ 16 files changed, 1636 insertions(+), 43 deletions(-) Daniel Kiper (11): kexec

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

2012-09-27 Thread Daniel Kiper
Introduce architecture independent constants and structures required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- include/xen/interface/xen.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git

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

2012-10-08 Thread Daniel Kiper
Hi, 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

Re: kdump/kexec vmcore size doubles each time

2012-07-20 Thread Daniel Kiper
On Thu, Jul 19, 2012 at 03:08:44PM -0700, joe shmoe wrote: Hi, I am trying to configure kexec/kdump on 2.6.35-14. $ kexec --version kexec-tools-testing 20080330 released 30th March 2007 [...] It is very ancient version. Please use at least Ver. 2.0.3

[PATCH 1/1] xen/balloon: Enforce various limits on target

2013-03-04 Thread Daniel Kiper
: reserve_additional_memory: add_memory() failed: -17 It does not allow balloon driver to execute infinite loops when target exceeds limits in other cases too. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- drivers/xen/balloon.c | 47 ++- 1

Re: [PATCH 1/1] xen/balloon: Enforce various limits on target

2013-03-06 Thread Daniel Kiper
On Wed, Mar 06, 2013 at 11:05:03AM +, David Vrabel wrote: On 04/03/13 21:14, Daniel Kiper wrote: This patch enforces on target limit statically defined in Linux Kernel source and limit defined by hypervisor or host. Particularly this patch fixes bug which led to flood of dom0 kernel

Re: [PATCH 1/1] xen/balloon: Enforce various limits on target

2013-03-07 Thread Daniel Kiper
On Wed, Mar 06, 2013 at 05:52:28PM +, David Vrabel wrote: On 06/03/13 16:47, Daniel Kiper wrote: [...] I think reserve_additional_memory() should check the current resource map and the e820 map to find a large enough unused region. This can be done as an additional patch at a later

Re: [PATCH 1/1] xen/balloon: Enforce various limits on target

2013-03-07 Thread Daniel Kiper
On Thu, Mar 07, 2013 at 12:07:09PM +, David Vrabel wrote: On 07/03/13 11:28, Daniel Kiper wrote: On Wed, Mar 06, 2013 at 05:52:28PM +, David Vrabel wrote: If you set the target above d-max_pages you won't be able to populate them. So, using the maximum_reservation call seems

Re: incorrect layout of globals from head_64.S during kexec boot

2012-07-06 Thread Daniel Kiper
On Fri, Jul 06, 2012 at 02:07:50PM +0200, Olaf Hering wrote: On Fri, Jul 06, Daniel Kiper wrote: Copy is done a few times durnig kexec/kdump but the most important in this case, I think, is in relocate_kernel() function (look for rep movsl or rep movsq and code around it). But I am a bit

Re: kdump/kexec vmcore size doubles each time

2012-07-24 Thread Daniel Kiper
On Mon, Jul 23, 2012 at 04:48:19PM -0700, joe shmoe wrote: Hi, Thank you for the reply. You are welcome. I ended up opting for writing to filesystem rather than raw_device and this seems to have helped me sidestep the problem for now. Good move. Unfortunately, I can't quite make a jump

[PATCH v2 10/11] drivers/xen: Export vmcoreinfo through sysfs

2012-11-20 Thread Daniel Kiper
Export vmcoreinfo through sysfs. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- drivers/xen/sys-hypervisor.c | 42 +- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c

[PATCH v2 07/11] x86/xen: Add x86_64 kexec/kdump implementation

2012-11-20 Thread Daniel Kiper
Add x86_64 kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_64.c | 302 arch/x86/xen/relocate_kernel_64.S | 309 + 2 files changed, 611 insertions(+), 0

[PATCH v2 08/11] x86/xen: Add kexec/kdump makefile rules

2012-11-20 Thread Daniel Kiper
Add kexec/kdump makefile rules. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/Makefile |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile index 96ab2c0..7a5db44 100644 --- a/arch/x86/xen/Makefile +++ b

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

2012-11-20 Thread Daniel Kiper
-by: Daniel Kiper daniel.ki...@oracle.com --- include/linux/kexec.h | 26 ++ kernel/kexec.c| 131 + 2 files changed, 125 insertions(+), 32 deletions(-) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index d0b8458..c8d0b35

[PATCH v2 00/11] xen: Initial kexec/kdump implementation

2012-11-20 Thread Daniel Kiper
insertions(+), 43 deletions(-) Daniel Kiper (11): kexec: introduce kexec_ops struct x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE xen: Introduce architecture independent data for kexec/kdump x86/xen: Introduce architecture dependent data

[PATCH v2 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2012-11-20 Thread Daniel Kiper
existing code. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/include/asm/kexec.h | 10 +++--- arch/x86/kernel/machine_kexec_64.c | 12 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/kexec.h b/arch/x86/include/asm

[PATCH v2 09/11] x86/xen/enlighten: Add init and crash kexec/kdump hooks

2012-11-20 Thread Daniel Kiper
Add init and crash kexec/kdump hooks. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/enlighten.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 586d838..e5b4d0d 100644 --- a/arch

[PATCH v2 11/11] x86: Add Xen kexec control code size check to linker script

2012-11-20 Thread Daniel Kiper
Add Xen kexec control code size check to linker script. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/kernel/vmlinux.lds.S |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 22a1530

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

2012-11-20 Thread Daniel Kiper
Register resources required by kexec-tools. v2 - suggestions/fixes: - change logging level (suggested by Konrad Rzeszutek Wilk). Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/kexec.c | 150 ++ 1 files changed, 150

[PATCH v2 04/11] x86/xen: Introduce architecture dependent data for kexec/kdump

2012-11-20 Thread Daniel Kiper
Introduce architecture dependent constants, structures and functions required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/include/asm/xen/hypercall.h |6 +++ arch/x86/include/asm/xen/kexec.h | 83

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

2012-11-20 Thread Daniel Kiper
Add i386 kexec/kdump implementation. v2 - suggestions/fixes: - allocate transition page table pages below 4 GiB (suggested by Jan Beulich). Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_32.c | 247 arch/x86/xen

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

2012-11-20 Thread Daniel Kiper
Introduce architecture independent constants and structures required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- include/xen/interface/xen.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git

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

2012-11-21 Thread Daniel Kiper
On Tue, Nov 20, 2012 at 08:40:39AM -0800, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: Some kexec/kdump implementations (e.g. Xen PVOPS) could not use default functions or require some changes in behavior of kexec/kdump generic code. To cope with that problem

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

2012-11-23 Thread Daniel Kiper
On Thu, Nov 22, 2012 at 04:15:48AM -0800, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: On Tue, Nov 20, 2012 at 08:40:39AM -0800, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: Some kexec/kdump implementations (e.g. Xen PVOPS) could

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

2012-11-23 Thread Daniel Kiper
On Fri, Nov 23, 2012 at 09:53:37AM +, Jan Beulich wrote: On 23.11.12 at 02:56, Andrew Cooper andrew.coop...@citrix.com wrote: On 23/11/2012 01:38, H. Peter Anvin wrote: I still don't really get why it can't be isolated from dom0, which would make more sense to me, even for a Xen crash.

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

2012-11-23 Thread Daniel Kiper
On Fri, Nov 23, 2012 at 10:51:55AM +, Jan Beulich wrote: On 23.11.12 at 11:37, Daniel Kiper daniel.ki...@oracle.com wrote: On Fri, Nov 23, 2012 at 09:53:37AM +, Jan Beulich wrote: On 23.11.12 at 02:56, Andrew Cooper andrew.coop...@citrix.com wrote: On 23/11/2012 01:38, H. Peter

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

2012-11-23 Thread Daniel Kiper
On Fri, Nov 23, 2012 at 10:51:08AM +, Ian Campbell wrote: On Fri, 2012-11-23 at 10:37 +, Daniel Kiper wrote: On Fri, Nov 23, 2012 at 09:53:37AM +, Jan Beulich wrote: On 23.11.12 at 02:56, Andrew Cooper andrew.coop...@citrix.com wrote: The crash region (as specified

[PATCH v3 00/11] xen: Initial kexec/kdump implementation

2012-12-26 Thread Daniel Kiper
/Makefile |1 + kernel/kexec-firmware.c | 743 ++ kernel/kexec.c | 46 ++- 20 files changed, 2331 insertions(+), 18 deletions(-) Daniel Kiper (11): kexec: introduce kexec firmware support x86

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

2012-12-26 Thread Daniel Kiper
Introduce architecture independent constants and structures required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- include/xen/interface/xen.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git

[PATCH v3 04/11] x86/xen: Introduce architecture dependent data for kexec/kdump

2012-12-26 Thread Daniel Kiper
Introduce architecture dependent constants, structures and functions required by Xen kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/include/asm/xen/hypercall.h |6 +++ arch/x86/include/asm/xen/kexec.h | 79

[PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2012-12-26 Thread Daniel Kiper
existing code. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/include/asm/kexec.h | 10 +++--- arch/x86/kernel/machine_kexec_64.c | 12 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/kexec.h b/arch/x86/include/asm

[PATCH v3 07/11] x86/xen: Add x86_64 kexec/kdump implementation

2012-12-26 Thread Daniel Kiper
Add x86_64 kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_64.c | 318 + arch/x86/xen/relocate_kernel_64.S | 309 +++ 2 files changed, 627 insertions(+), 0

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

2012-12-26 Thread Daniel Kiper
Add i386 kexec/kdump implementation. v2 - suggestions/fixes: - allocate transition page table pages below 4 GiB (suggested by Jan Beulich). Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_32.c | 226 ++ arch/x86/xen

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

2012-12-26 Thread Daniel Kiper
Register resources required by kexec-tools. v2 - suggestions/fixes: - change logging level (suggested by Konrad Rzeszutek Wilk). Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/kexec.c | 150 ++ 1 files changed, 150

[PATCH v3 08/11] x86/xen: Add kexec/kdump Kconfig and makefile rules

2012-12-26 Thread Daniel Kiper
Add kexec/kdump Kconfig and makefile rules. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/Kconfig |3 +++ arch/x86/xen/Kconfig |1 + arch/x86/xen/Makefile |3 +++ 3 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86

[PATCH v3 09/11] x86/xen/enlighten: Add init and crash kexec/kdump hooks

2012-12-26 Thread Daniel Kiper
Add init and crash kexec/kdump hooks. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/enlighten.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 138e566..5025bba 100644 --- a/arch

[PATCH v3 11/11] x86: Add Xen kexec control code size check to linker script

2012-12-26 Thread Daniel Kiper
Add Xen kexec control code size check to linker script. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/kernel/vmlinux.lds.S |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 22a1530

[PATCH v3 10/11] drivers/xen: Export vmcoreinfo through sysfs

2012-12-26 Thread Daniel Kiper
Export vmcoreinfo through sysfs. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- drivers/xen/sys-hypervisor.c | 42 +- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c

[PATCH v3 01/11] kexec: introduce kexec firmware support

2012-12-26 Thread Daniel Kiper
(suggested by Konrad Rzeszutek Wilk). Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- include/linux/kexec.h | 26 ++- kernel/Makefile |1 + kernel/kexec-firmware.c | 743 +++ kernel/kexec.c | 46 +++- 4 files changed

Re: [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2012-12-27 Thread Daniel Kiper
Hmm... this code is being redone at the moment... this might conflict. Is this available somewhere? May I have a look at it? Daniel PS I am on holiday until 02/01/2013 and I could not have access to my email box. Please be patient. At worst case I will send reply when I will be back

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

2012-12-27 Thread Daniel Kiper
On 12/26/2012 06:18 PM, Daniel Kiper wrote: Add i386 kexec/kdump implementation. v2 - suggestions/fixes: - allocate transition page table pages below 4 GiB (suggested by Jan Beulich). Why? Sadly all addresses are passed via unsigned long variable to kexec hypercall. Daniel

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

2012-12-27 Thread Daniel Kiper
On 12/26/2012 06:18 PM, Daniel Kiper wrote: Hi, This set of patches contains initial kexec/kdump implementation for Xen v3. Currently only dom0 is supported, however, almost all infrustructure required for domU support is ready. Jan Beulich suggested to merge Xen x86 assembler code

Re: [PATCH v3 01/11] kexec: introduce kexec firmware support

2012-12-27 Thread Daniel Kiper
Daniel Kiper daniel.ki...@oracle.com writes: Some kexec/kdump implementations (e.g. Xen PVOPS) could not use default Linux infrastructure and require some support from firmware and/or hypervisor. To cope with that problem kexec firmware infrastructure was introduced. It allows

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

2012-12-27 Thread Daniel Kiper
Andrew Cooper andrew.coop...@citrix.com writes: On 27/12/2012 07:53, Eric W. Biederman wrote: The syscall ABI still has the wrong semantics. Aka totally unmaintainable and umergeable. The concept of domU support is also strange. What does domU support even mean, when the dom0

Re: [PATCH v3 01/11] kexec: introduce kexec firmware support

2013-01-04 Thread Daniel Kiper
On Thu, Dec 27, 2012 at 07:06:13PM -0800, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: Daniel Kiper daniel.ki...@oracle.com writes: Some kexec/kdump implementations (e.g. Xen PVOPS) could not use default Linux infrastructure and require some support from

Re: [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2013-01-04 Thread Daniel Kiper
On Fri, Dec 28, 2012 at 01:59:27PM +0100, Borislav Petkov wrote: On Thu, Dec 27, 2012 at 03:19:24PM -0800, Daniel Kiper wrote: Hmm... this code is being redone at the moment... this might conflict. Is this available somewhere? May I have a look at it? http://marc.info/?l=linux-kernelm

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

2013-01-04 Thread Daniel Kiper
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 has the wrong semantics. Aka totally unmaintainable and

Re: [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2013-01-04 Thread Daniel Kiper
On Thu, Jan 03, 2013 at 09:34:55AM +, Jan Beulich wrote: On 27.12.12 at 03:18, Daniel Kiper daniel.ki...@oracle.com wrote: Some implementations (e.g. Xen PVOPS) could not use part of identity page table to construct transition page table. It means that they require separate PUDs

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

2013-01-04 Thread Daniel Kiper
On Fri, Jan 04, 2013 at 02:38:44PM +, David Vrabel wrote: On 04/01/13 14:22, 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

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

2013-01-04 Thread Daniel Kiper
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 kernel itself by issuing hypercalls using /dev/xen/privcmd

Re: [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2013-01-04 Thread Daniel Kiper
On Fri, Jan 04, 2013 at 04:12:32PM +, Jan Beulich wrote: On 04.01.13 at 16:15, Daniel Kiper daniel.ki...@oracle.com wrote: On Thu, Jan 03, 2013 at 09:34:55AM +, Jan Beulich wrote: On 27.12.12 at 03:18, Daniel Kiper daniel.ki...@oracle.com wrote: Some implementations (e.g. Xen

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

2012-10-01 Thread Daniel Kiper
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 require some changes in behavior of kexec/kdump generic

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

2012-10-01 Thread Daniel Kiper
On Fri, Sep 28, 2012 at 09:11:47AM +0100, Jan Beulich wrote: On 27.09.12 at 20:06, Daniel Kiper daniel.ki...@oracle.com wrote: Add i386 kexec/kdump implementation. So this as well as the subsequent patch introduces quite a bit of duplicate code. The old 2.6.18 kernel had an initial pair

Re: [PATCH 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2012-10-01 Thread Daniel Kiper
On Fri, Sep 28, 2012 at 08:56:50AM +0100, Jan Beulich wrote: On 27.09.12 at 20:06, Daniel Kiper daniel.ki...@oracle.com wrote: Some implementations (e.g. Xen PVOPS) could not use part of identity page table to construct transition page table. It means that they require separate PUDs

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

2012-10-01 Thread Daniel Kiper
On Fri, Sep 28, 2012 at 12:39:44PM -0400, Konrad Rzeszutek Wilk wrote: On Thu, Sep 27, 2012 at 08:06:33PM +0200, Daniel Kiper wrote: Add i386 kexec/kdump implementation. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/machine_kexec_32.c | 245

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

2012-10-01 Thread Daniel Kiper
On Fri, Sep 28, 2012 at 12:21:35PM -0400, Konrad Rzeszutek Wilk wrote: On Thu, Sep 27, 2012 at 08:06:32PM +0200, Daniel Kiper wrote: Register resources required by kexec-tools. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- arch/x86/xen/kexec.c | 150

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

2012-10-01 Thread Daniel Kiper
On Mon, Oct 01, 2012 at 10:40:01AM +0100, Jan Beulich wrote: On 28.09.12 at 18:21, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Thu, Sep 27, 2012 at 08:06:32PM +0200, Daniel Kiper wrote: + for (i = 0; i cpus; ++i) { Any specific reason for using '++i' instead of 'i

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

2012-10-01 Thread Daniel Kiper
On Fri, Sep 28, 2012 at 12:10:17PM -0400, Konrad Rzeszutek Wilk wrote: 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'? Right. required by Xen kexec/kdump implementation

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

2012-10-01 Thread Daniel Kiper
On Fri, Sep 28, 2012 at 12:07:42PM -0400, Konrad Rzeszutek Wilk wrote: 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

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

2012-10-01 Thread Daniel Kiper
On Mon, Oct 01, 2012 at 02:55:01PM +0100, Jan Beulich wrote: On 01.10.12 at 14:52, Daniel Kiper daniel.ki...@oracle.com wrote: On Fri, Sep 28, 2012 at 09:11:47AM +0100, Jan Beulich wrote: Finally, as noticed in an earlier patch already, you appear to re-introduce stuff long dropped from

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

2013-01-11 Thread Daniel Kiper
On Thu, Jan 10, 2013 at 02:19:55PM +, David Vrabel wrote: On 04/01/13 17:01, Daniel Kiper wrote: On Fri, Jan 04, 2013 at 02:38:44PM +, David Vrabel wrote: On 04/01/13 14:22, Daniel Kiper wrote: On Wed, Jan 02, 2013 at 11:26:43AM +, Andrew Cooper wrote: On 27/12/12 18:02, Eric

Re: [Xen-devel] [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2013-01-11 Thread Daniel Kiper
On Thu, Jan 10, 2013 at 02:07:31PM +, David Vrabel wrote: On 04/01/13 15:15, Daniel Kiper wrote: On Thu, Jan 03, 2013 at 09:34:55AM +, Jan Beulich wrote: On 27.12.12 at 03:18, Daniel Kiper daniel.ki...@oracle.com wrote: Some implementations (e.g. Xen PVOPS) could not use part

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

2013-01-11 Thread Daniel Kiper
On Mon, Jan 07, 2013 at 01:49:44PM +, Ian Campbell wrote: On Mon, 2013-01-07 at 12:34 +, Daniel Kiper wrote: I think that new kexec hypercall function should mimics kexec syscall. We want to have an interface can be used by non-Linux domains (both dom0 and domU) as well though, so

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

2013-01-11 Thread Daniel Kiper
On Fri, Jan 11, 2013 at 03:22:35PM +, David Vrabel wrote: On 11/01/13 13:22, Daniel Kiper wrote: On Thu, Jan 10, 2013 at 02:19:55PM +, David Vrabel wrote: On 04/01/13 17:01, Daniel Kiper wrote: My .5 cents: - We should focus on KEXEC_CMD_kexec_load and KEXEC_CMD_kexec_unload

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

2013-01-07 Thread Daniel Kiper
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 Kiper daniel.ki...@oracle.com wrote: On Wed, Jan 02, 2013 at 11

Re: [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2013-01-07 Thread Daniel Kiper
On Mon, Jan 07, 2013 at 09:48:20AM +, Jan Beulich wrote: On 04.01.13 at 18:25, Daniel Kiper daniel.ki...@oracle.com wrote: Right, so where is virtual mapping of control page established? I could not find relevant code in SLES kernel which does that. In the hypervisor (xen/arch/x86

Re: [PATCH v3 02/11] x86/kexec: Add extra pointers to transition page table PGD, PUD, PMD and PTE

2013-01-09 Thread Daniel Kiper
On Mon, Jan 07, 2013 at 01:05:10PM +, Jan Beulich wrote: On 07.01.13 at 13:52, Daniel Kiper daniel.ki...@oracle.com wrote: On Mon, Jan 07, 2013 at 09:48:20AM +, Jan Beulich wrote: On 04.01.13 at 18:25, Daniel Kiper daniel.ki...@oracle.com wrote: Right, so where is virtual mapping

Re: is kexec on Xen domU possible?

2013-07-19 Thread Daniel Kiper
On Thu, Jul 18, 2013 at 07:06:03PM -0700, Greg KH wrote: Hi all, I was messing around with kexec and it seems to work just fine on KVM, but for Xen domU images, it doesn't work at all. Daniel, I saw some patches from you back in September 2012 for adding this support for Dom0, but they

Re: [PATCH] kexec/kdump implementation for Xen PV domU

2013-07-30 Thread Daniel Kiper
On Mon, Jul 29, 2013 at 02:44:19PM -0700, Matt Wilson wrote: On Mon, Jul 29, 2013 at 07:15:43PM +0200, Daniel Kiper wrote: Hi all, Here I am sending as attachments patches enabling kexec/kdump support in Xen PV domU. Only x84_64 architecture is supported. There is no support for i386

Re: [Xen-devel] [PATCH] xen/balloon: Set balloon's initial state to number of existing RAM pages

2013-11-07 Thread Daniel Kiper
On Wed, Nov 06, 2013 at 08:25:04PM -0500, Konrad Rzeszutek Wilk wrote: Bob Liu bob@oracle.com wrote: On 11/07/2013 04:37 AM, Boris Ostrovsky wrote: Currently balloon's initial value is set to max_pfn which includes non-RAM ranges such as MMIO hole. As result, initial memory target

EFI and multiboot2 devlopment work for Xen

2013-10-21 Thread Daniel Kiper
Hi, During work on multiboot2 protocol support for Xen it was discovered that memory map passed via relevant tag could not represent wide range of memory types available on EFI platforms. Additionally, GRUB2 implementation calls ExitBootServices() on them just before jumping into loaded image. In

Re: kexec: Clearing registers just before jumping into purgatory

2013-10-11 Thread Daniel Kiper
On Fri, Oct 11, 2013 at 03:08:43AM -0700, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: Hi, Could you explain why do you clear all registers just before jumping into purgatory (please look into arch/x86/kernel/relocate_kernel_64.S for more details

Re: kexec: Clearing registers just before jumping into purgatory

2013-10-14 Thread Daniel Kiper
On Fri, Oct 11, 2013 at 03:15:38PM -0700, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: On Fri, Oct 11, 2013 at 03:08:43AM -0700, ebied...@xmission.com wrote: Daniel Kiper daniel.ki...@oracle.com writes: [...] What is your opinion in that case? I can see

[PATCH v2 1/2] xen/balloon: Notify a host about a guest memory size limit

2013-04-29 Thread Daniel Kiper
Notify a host about a guest memory size limit. Idea of this patch was discussed with Ian Campbell and Ian Jackson. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- drivers/xen/balloon.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/xen/balloon.c

[PATCH v2 2/2] xen/balloon: Enforce various limits on target

2013-04-29 Thread Daniel Kiper
for dom0 (suggested by Konrad Rzeszutek Wilk), - improve commit comment (suggested by David Vrabel). Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- drivers/xen/balloon.c | 40 ++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 1/2] xen/balloon: Notify a host about a guest memory size limit

2013-04-30 Thread Daniel Kiper
On Mon, Apr 29, 2013 at 03:35:11PM +0100, Ian Campbell wrote: On Mon, 2013-04-29 at 12:37 +0100, Daniel Kiper wrote: Notify a host about a guest memory size limit. Idea of this patch was discussed with Ian Campbell and Ian Jackson. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com

Re: [PATCH v2 2/2] xen/balloon: Enforce various limits on target

2013-04-30 Thread Daniel Kiper
On Mon, Apr 29, 2013 at 03:44:09PM +0100, Ian Campbell wrote: On Mon, 2013-04-29 at 12:37 +0100, Daniel Kiper wrote: This patch enforces on target limit statically defined in Linux Kernel source and limit defined by hypervisor or host. This way the balloon driver should not attempt

Re: [PATCH v2 2/2] xen/balloon: Enforce various limits on target

2013-04-30 Thread Daniel Kiper
On Tue, Apr 30, 2013 at 02:44:18PM +0100, Ian Campbell wrote: On Tue, 2013-04-30 at 13:59 +0100, Daniel Kiper wrote: On Mon, Apr 29, 2013 at 03:44:09PM +0100, Ian Campbell wrote: On Mon, 2013-04-29 at 12:37 +0100, Daniel Kiper wrote: This patch enforces on target limit statically

Re: [Xen-devel] [PATCH v2 2/2] xen/balloon: Enforce various limits on target

2013-05-03 Thread Daniel Kiper
On Fri, May 03, 2013 at 09:15:32AM +0100, Ian Campbell wrote: On Thu, 2013-05-02 at 19:04 +0100, Konrad Rzeszutek Wilk wrote: On Thu, May 02, 2013 at 12:34:32PM +0100, Stefano Stabellini wrote: [...] The xapi guys, CC'ed, might have more insights on what exactly is. I think that unless

Re: [Xen-devel] [PATCH v2 2/2] xen/balloon: Enforce various limits on target

2013-05-03 Thread Daniel Kiper
On Fri, May 03, 2013 at 02:21:24PM +0100, Ian Campbell wrote: On Fri, 2013-05-03 at 14:00 +0100, Daniel Kiper wrote: On Fri, May 03, 2013 at 09:15:32AM +0100, Ian Campbell wrote: On Thu, 2013-05-02 at 19:04 +0100, Konrad Rzeszutek Wilk wrote: On Thu, May 02, 2013 at 12:34:32PM +0100

Re: [Xen-devel] [PATCH v2 2/2] xen/balloon: Enforce various limits on target

2013-05-03 Thread Daniel Kiper
On Fri, May 03, 2013 at 03:11:18PM +0100, Ian Campbell wrote: On Fri, 2013-05-03 at 14:47 +0100, Daniel Kiper wrote: On Fri, May 03, 2013 at 02:21:24PM +0100, Ian Campbell wrote: On Fri, 2013-05-03 at 14:00 +0100, Daniel Kiper wrote: On Fri, May 03, 2013 at 09:15:32AM +0100, Ian Campbell

Re: [Xen-devel] Bye bye Mr tmem guy

2013-05-21 Thread Daniel Kiper
On Mon, May 20, 2013 at 08:51:47AM -0700, Dan Magenheimer wrote: Hi Linux kernel folks and Xen folks -- Effective July 5, I will be resigning from Oracle and retiring for a minimum of 12-18 months and probably/hopefully much longer. Between now and July 5, I will be tying up loose ends

Is: Wrap-up Was: Re: EFI and multiboot2 devlopment work for Xen

2013-10-30 Thread Daniel Kiper
Hi, Here is a short summary of our discussion. It looks that we have two choices right now: - chainloader, - multiboot2 protocol. chainloader solution could be implemented quite easily. Some code should be added for command line parsing. However, all arguments for Xen itself and modules must

Re: EFI and multiboot2 devlopment work for Xen

2013-10-21 Thread Daniel Kiper
On Mon, Oct 21, 2013 at 02:36:38PM +0100, Jan Beulich wrote: On 21.10.13 at 14:57, Daniel Kiper daniel.ki...@oracle.com wrote: [...] Separate multiboot2efi module should be established. It should verify system kernel and all loaded modules using shim on EFI platforms with enabled secure

Re: EFI and multiboot2 devlopment work for Xen

2013-10-21 Thread Daniel Kiper
On Mon, Oct 21, 2013 at 03:37:21PM +0100, Jan Beulich wrote: On 21.10.13 at 16:23, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Mon, Oct 21, 2013 at 02:36:38PM +0100, Jan Beulich wrote: On 21.10.13 at 14:57, Daniel Kiper daniel.ki...@oracle.com wrote: [...] What do you

Re: EFI and multiboot2 devlopment work for Xen

2013-10-21 Thread Daniel Kiper
On Mon, Oct 21, 2013 at 09:54:38AM -0400, Peter Jones wrote: On Mon, Oct 21, 2013 at 02:57:56PM +0200, Daniel Kiper wrote: Hi, During work on multiboot2 protocol support for Xen it was discovered that memory map passed via relevant tag could not represent wide range of memory types

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Daniel Kiper
On Tue, Oct 22, 2013 at 03:42:42PM +, Woodhouse, David wrote: On Tue, 2013-10-22 at 16:32 +0100, Matthew Garrett wrote: There are two problems with this: 1) The kernel will only boot if it's signed with a key in db, not a key in MOK. 2) grub will read the kernel, but the kernel

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Daniel Kiper
On Tue, Oct 22, 2013 at 05:08:03PM +0100, Ian Campbell wrote: On Tue, 2013-10-22 at 18:01 +0200, Daniel Kiper wrote: On Tue, Oct 22, 2013 at 03:42:42PM +, Woodhouse, David wrote: On Tue, 2013-10-22 at 16:32 +0100, Matthew Garrett wrote: There are two problems with this: 1

Re: EFI and multiboot2 devlopment work for Xen

2013-10-22 Thread Daniel Kiper
On Tue, Oct 22, 2013 at 04:36:04PM +, Maliszewski, Richard L wrote: I may be off-base, but when I was wading through the grub2 code earlier this year, it looked to me like it was going to refuse to launch anything via MB1 or MB2 if the current state was a secure boot launch. Are you

Re: EFI and multiboot2 devlopment work for Xen

2013-10-23 Thread Daniel Kiper
On Tue, Oct 22, 2013 at 09:42:52AM -0400, Konrad Rzeszutek Wilk wrote: On Tue, Oct 22, 2013 at 10:59:33AM +0100, Jan Beulich wrote: On 22.10.13 at 11:45, Ian Campbell ian.campb...@citrix.com wrote: On Tue, 2013-10-22 at 10:31 +0100, Jan Beulich wrote: On 22.10.13 at 11:26, Ian Campbell

  1   2   3   4   5   6   7   >