[Xen-devel] [PATCH v3 5/6] libxl: print message how to recover from xl cpupool-cpu-remove errors

2016-03-03 Thread Juergen Gross
message telling this the user in case of an error. Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu Signed-off-by: Juergen Gross --- tools/libxl/xl_cmdimpl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 990

[Xen-devel] [PATCH v3 2/6] xen: add hypercall option to override and restore vcpu affinity

2016-03-03 Thread Juergen Gross
i Liu Signed-off-by: Juergen Gross --- V2: - limit operation to hardware domain as suggested by Jan Beulich - some style issues corrected as requested by Jan Beulich - use fixed width types in interface as requested by Jan Beulich - add compat layer checking as requested by Jan Beulic

[Xen-devel] [PATCH v3 3/6] xen: add force flag to xen_domctl_vcpuaffinity for undoing pin override

2016-03-03 Thread Juergen Gross
lich Cc: Andrew Cooper Cc: Ian Jackson Cc: David Vrabel Cc: Stefano Stabellini Cc: Wei Liu Signed-off-by: Juergen Gross --- xen/common/domctl.c | 6 ++ xen/include/public/domctl.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/xen/common/domctl.c b/xen/common/domctl.c index

[Xen-devel] [PATCH v3 4/6] libxc: do some retries in xc_cpupool_removecpu() for EBUSY case

2016-03-03 Thread Juergen Gross
The hypervisor might return EBUSY when trying to remove a cpu from a cpupool when a domain running in this cpupool has pinned a vcpu temporarily. Do some retries in this case, perhaps the situation cleans up. Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu Signed-off-by: Juergen Gross

Re: [Xen-devel] [GRUB2 PATCH v3 4/4] multiboot2: Add support for relocatable images

2016-03-03 Thread Juergen Gross
On 02/03/16 17:51, Daniel Kiper wrote: > Currently multiboot2 protocol loads image exactly at address specified in > ELF or multiboot2 header. This solution works quite well on legacy BIOS > platforms. It is possible because memory regions are placed at predictable > addresses (though I was not abl

Re: [Xen-devel] [PATCH v3 1/6] xen, cpupool: correct error handling when removing cpu from cpupool

2016-03-04 Thread Juergen Gross
On 04/03/16 10:42, Jan Beulich wrote: On 03.03.16 at 17:48, wrote: >> if ( !ret ) >> { >> ret = schedule_cpu_switch(cpu, NULL); >> if ( ret ) >> -{ >> cpumask_clear_cpu(cpu, &cpupool_free_cpus); >> -goto out; >> +else >> +

Re: [Xen-devel] [Qemu-devel] RFC: configuring QEMU virtfs for Xen PV(H) guests

2016-03-06 Thread Juergen Gross
Hi Wei, On 15/02/16 14:44, Wei Liu wrote: > On Mon, Feb 15, 2016 at 02:33:05PM +0100, Juergen Gross wrote: >> On 15/02/16 14:16, Wei Liu wrote: >>> On Mon, Feb 15, 2016 at 09:07:13AM +, Paul Durrant wrote: >>>>> >>> [...] >>>>> # Op

Re: [Xen-devel] [Qemu-devel] RFC: configuring QEMU virtfs for Xen PV(H) guests

2016-03-07 Thread Juergen Gross
On 07/03/16 11:51, Wei Liu wrote: > On Mon, Mar 07, 2016 at 08:21:46AM +0100, Juergen Gross wrote: >> Hi Wei, >> >> On 15/02/16 14:44, Wei Liu wrote: >>> On Mon, Feb 15, 2016 at 02:33:05PM +0100, Juergen Gross wrote: >>>> On 15/02/16 14:16, Wei Liu wrote

Re: [Xen-devel] [Patch V1 3/3] xen: add pvUSB backend

2016-03-07 Thread Juergen Gross
Sorry, I just found time now to continue with this series. On 27/10/15 19:54, Konrad Rzeszutek Wilk wrote: > On Thu, Sep 03, 2015 at 12:45:13PM +0200, Juergen Gross wrote: >> Add a backend for para-virtualized USB devices for xen domains. >> >> The backend is using host-

[Xen-devel] test

2016-03-08 Thread Juergen Gross
This is just a test of the mailman bounce mechanism: I want to be sure that I receive bounce messages (they have been filtered by SUSE's mail server). Please don't accept, reject or discard this message. I'll do it myself. In case it makes it to the list: please ignore. :-) Juergen ___

Re: [Xen-devel] [PATCH v3 6/6] libxl: add force option for xl vcpu-pin

2016-03-08 Thread Juergen Gross
On 08/03/16 16:58, Wei Liu wrote: > On Thu, Mar 03, 2016 at 05:48:50PM +0100, Juergen Gross wrote: > [...] >> int libxl_set_vcpuaffinity_all(libxl_ctx *ctx, uint32_t domid, >> unsigned int max_vcpus, >>

Re: [Xen-devel] [PATCH v3 4/6] libxc: do some retries in xc_cpupool_removecpu() for EBUSY case

2016-03-08 Thread Juergen Gross
On 08/03/16 14:16, Dario Faggioli wrote: > On Thu, 2016-03-03 at 17:48 +0100, Juergen Gross wrote: >> The hypervisor might return EBUSY when trying to remove a cpu from a >> cpupool when a domain running in this cpupool has pinned a vcpu >> temporarily. Do some retries in t

Re: [Xen-devel] [PATCH v3 6/6] libxl: add force option for xl vcpu-pin

2016-03-08 Thread Juergen Gross
On 08/03/16 18:16, Dario Faggioli wrote: > On Thu, 2016-03-03 at 17:48 +0100, Juergen Gross wrote: >> In order to be able to undo a vcpu pin override in case of a kernel >> driver error add a flag "-f" to the "xl vcpu-pin" command forcing the >> hyper

[Xen-devel] [PATCH v4 1/3] libxc: do some retries in xc_cpupool_removecpu() for EBUSY case

2016-03-09 Thread Juergen Gross
The hypervisor might return EBUSY when trying to remove a cpu from a cpupool when a domain running in this cpupool has pinned a vcpu temporarily. Do some retries in this case, perhaps the situation cleans up. Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu Signed-off-by: Juergen Gross

[Xen-devel] [PATCH v4 0/3] add hypercall option to temporarily pin a vcpu

2016-03-09 Thread Juergen Gross
ol - limit operation to hardware domain as suggested by Jan Beulich - some style issues corrected as requested by Jan Beulich - use fixed width types in interface as requested by Jan Beulich - add compat layer checking as requested by Jan Beulich Juergen Gross (3): libxc: do some retries in xc_cpupool

[Xen-devel] [PATCH v4 2/3] libxl: print message how to recover from xl cpupool-cpu-remove errors

2016-03-09 Thread Juergen Gross
message telling this the user in case of an error. Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu Signed-off-by: Juergen Gross Reviewed-by: Dario Faggioli Acked-by: Wei Liu --- tools/libxl/xl_cmdimpl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/libxl/

[Xen-devel] [PATCH v4 3/3] libxl: add force option for xl vcpu-pin

2016-03-09 Thread Juergen Gross
In order to be able to undo a vcpu pin override in case of a kernel driver error add a flag "-f" to the "xl vcpu-pin" command forcing the hypervisor to undo the override. Cc: Ian Jackson Cc: Stefano Stabellini Cc: Wei Liu Signed-off-by: Juergen Gross --- V4: - change &quo

[Xen-devel] [PATCH 2/3] libxl: add domain config parameter to force start of qemu

2016-03-10 Thread Juergen Gross
laces. Signed-off-by: Juergen Gross --- docs/man/xl.cfg.pod.5 | 6 ++ tools/libxl/libxl_create.c | 1 + tools/libxl/libxl_dm.c | 5 + tools/libxl/libxl_types.idl | 1 + tools/libxl/xl_cmdimpl.c| 3 +++ 5 files changed, 16 insertions(+) diff --git a/docs/man/xl.cfg.pod.5 b

[Xen-devel] [PATCH 0/3] libxl: add support for qemu base pvusb backend

2016-03-10 Thread Juergen Gross
This patch series is meant to be applied on top of Chunyan's series to support pvusb in libxl. It is adding support for an alternative pvusb backend "qusb" via qemu. Juergen Gross (3): libxl: make libxl__need_xenpv_qemu() operate on domain config libxl: add domain config par

[Xen-devel] [PATCH 1/3] libxl: make libxl__need_xenpv_qemu() operate on domain config

2016-03-10 Thread Juergen Gross
from the domain config structure. In order to support other device backends via qemu change the interface of libxl__need_xenpv_qemu() to take the domain config structure as input instead of the single device arrays. Signed-off-by: Juergen Gross --- tools/libxl/libxl_create.c | 9 +-- tools

[Xen-devel] [PATCH 3/3] libxl: add new pvusb backend "qusb" provided by qemu

2016-03-10 Thread Juergen Gross
Add a new pvusb backend type "qusb" which is provided by qemu. It can be selected either by specifying the type directly in the configuration or it is selected automatically by libxl in case there is no "usbback" driver loaded. Signed-off-by: Juergen Gross --- d

[Xen-devel] [PATCH v2 0/2] usb, xen: add pvUSB backend

2016-03-10 Thread Juergen Gross
device via qdev_device_add(), making patch 1 obsolete - modify patch 2 to use isoc passthrough via libusb instead of one job per frame Juergen Gross (2): xen: introduce dummy system device xen: add pvUSB backend hw/usb/Makefile.objs |4 + hw/usb/xen-usb.c

[Xen-devel] [PATCH v2 1/2] xen: introduce dummy system device

2016-03-10 Thread Juergen Gross
Introduce a new dummy system device serving as parent for virtual buses. This will enable new pv backends to introduce virtual buses which are removable again opposed to system buses which are meant to stay once added. Signed-off-by: Juergen Gross --- V2: NOT changed, even if requested by

[Xen-devel] [PATCH v2 2/2] xen: add pvUSB backend

2016-03-10 Thread Juergen Gross
Add a backend for para-virtualized USB devices for xen domains. The backend is using host-libusb to forward USB requests from a domain via libusb to the real device(s) passed through. Signed-off-by: Juergen Gross --- V2: use xen_be_printf() instead of fprintf() for diagnostic prints as

[Xen-devel] [PATCH 4/6] hwmon: use call_sync_on_phys_cpu() for dell-smm i8k

2016-03-11 Thread Juergen Gross
Use the call_sync_on_phys_cpu() function to call system management mode on cpu 0. Signed-off-by: Juergen Gross --- drivers/hwmon/dell-smm-hwmon.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell

[Xen-devel] [PATCH 6/6] xen: add xen_pin_vcpu() to support calling functions on a dedicated pcpu

2016-03-11 Thread Juergen Gross
r the hypervisor isn't supporting it, issue a warning once and disable further pinning attempts. Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten.c | 40 1 file changed, 40 insertions(+) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlight

[Xen-devel] [PATCH 1/6] xen: sync xen header

2016-03-11 Thread Juergen Gross
Import the actual version of include/xen/interface/sched.h from Xen. Signed-off-by: Juergen Gross --- include/xen/interface/sched.h | 100 ++ 1 file changed, 82 insertions(+), 18 deletions(-) diff --git a/include/xen/interface/sched.h b/include/xen

[Xen-devel] [PATCH 5/6] virt, sched: add cpu pinning to call_sync_on_phys_cpu()

2016-03-11 Thread Juergen Gross
st as short as possible as it might block sensible vcpu scheduling and maybe other hypervisor functions like suspending the system which rely on scheduling. To ensure this don't let the current thread be preempted while the vcpu is pinned in call_sync_on_phys_cpu(). Signed-off-by: Jue

[Xen-devel] [PATCH 3/6] dcdbas: make use of call_sync_on_phys_cpu()

2016-03-11 Thread Juergen Gross
Use call_sync_on_phys_cpu() to raise SMI on cpu 0. Signed-off-by: Juergen Gross --- drivers/firmware/dcdbas.c | 46 -- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/drivers/firmware/dcdbas.c b/drivers/firmware/dcdbas.c index 829eec8

[Xen-devel] [PATCH 2/6] sched: add function to execute a function synchronously on a physical cpu

2016-03-11 Thread Juergen Gross
special measures in virtualized environments like Xen, too. Signed-off-by: Juergen Gross --- include/linux/sched.h | 9 + kernel/sched/core.c | 26 ++ 2 files changed, 35 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h index a10494a

[Xen-devel] [PATCH 0/6] Support calling functions on dedicated physical cpu

2016-03-11 Thread Juergen Gross
This patch series is adding a generic function to be able to temporarily pin a (virtual) cpu to a dedicated physical cpu for executing above mentioned functions on that specific cpu. The drivers (dcdbas and i8k) requiring this functionality are modified accordingly. Juergen Gross (6): xen: syn

Re: [Xen-devel] [PATCH 2/6] sched: add function to execute a function synchronously on a physical cpu

2016-03-11 Thread Juergen Gross
On 11/03/16 13:19, Peter Zijlstra wrote: > On Fri, Mar 11, 2016 at 12:59:30PM +0100, Juergen Gross wrote: >> +int call_sync_on_phys_cpu(unsigned cpu, int (*func)(void *), void *par) >> +{ >> +cpumask_var_t old_mask; >> +int ret; >> + >> +if (cp

Re: [Xen-devel] [PATCH 2/6] sched: add function to execute a function synchronously on a physical cpu

2016-03-11 Thread Juergen Gross
On 11/03/16 13:42, Peter Zijlstra wrote: > On Fri, Mar 11, 2016 at 01:19:50PM +0100, Peter Zijlstra wrote: >> On Fri, Mar 11, 2016 at 12:59:30PM +0100, Juergen Gross wrote: >>> +int call_sync_on_phys_cpu(unsigned cpu, int (*func)(void *), void *par) >>> +{ >

Re: [Xen-devel] [PATCH 2/6] sched: add function to execute a function synchronously on a physical cpu

2016-03-11 Thread Juergen Gross
On 11/03/16 13:57, Peter Zijlstra wrote: > On Fri, Mar 11, 2016 at 01:48:12PM +0100, Juergen Gross wrote: >> On 11/03/16 13:42, Peter Zijlstra wrote: >>> how about something like: >>> >>> struct xen_callback_struct { >>> struct work_struct

[Xen-devel] [PATCH v2 1/4] libxc: split mapping p2m leaves into a separate function

2015-12-14 Thread Juergen Gross
In order to prepare using the virtual mapped linear p2m list for migration split mapping of the p2m leaf pages into a separate function. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- tools/libxc/xc_sr_save_x86_pv.c | 77 - 1 file changed

[Xen-devel] [PATCH v2 4/4] libxc: set flag for support of linear p2m list in domain builder

2015-12-14 Thread Juergen Gross
limit themselves to 512 GB memory size in order not to break migration. Signed-off-by: Juergen Gross --- docs/features/migration.pandoc| 7 --- tools/libxc/xc_dom_compat_linux.c | 2 +- tools/libxc/xc_dom_core.c | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a

[Xen-devel] [PATCH v2 0/4] support linear p2m list in migrate stream v2

2015-12-14 Thread Juergen Gross
ion.pandoc according to changes done in the series in patch 4 (requested by Andrew Cooper) Juergen Gross (4): libxc: split mapping p2m leaves into a separate function libxc: support of linear p2m list for migration of pv-domains libxc: stop migration in case of p2m list structural changes libxc

[Xen-devel] [PATCH v2 2/4] libxc: support of linear p2m list for migration of pv-domains

2015-12-14 Thread Juergen Gross
defines for the xen regions use those defines when doing page table checks as well. Signed-off-by: Juergen Gross --- tools/libxc/xc_sr_save_x86_pv.c | 193 ++-- 1 file changed, 184 insertions(+), 9 deletions(-) diff --git a/tools/libxc/xc_sr_save_x86_pv.c b

[Xen-devel] [PATCH v2 3/4] libxc: stop migration in case of p2m list structural changes

2015-12-14 Thread Juergen Gross
event. Signed-off-by: Juergen Gross --- tools/libxc/xc_sr_common.h | 12 +++ tools/libxc/xc_sr_save.c | 7 ++- tools/libxc/xc_sr_save_x86_hvm.c | 7 +++ tools/libxc/xc_sr_save_x86_pv.c | 45 4 files changed, 70 insertions(+), 1

Re: [Xen-devel] [linux-3.10 bisection] complete test-amd64-i386-rumpuserxen-i386

2015-12-15 Thread Juergen Gross
76e4b12961a9f54f5021809074196dfe6dbba > Bug not present: cd353959cdfbe06c2a6abfd73f03f40b84e1e3f1 > Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/66373/ > > > commit 81a76e4b12961a9f54f5021809074196dfe6dbba > Author: Juergen Gross > Date: Thu Nov 12 14:43:3

Re: [Xen-devel] [linux-3.10 bisection] complete test-amd64-i386-rumpuserxen-i386

2015-12-15 Thread Juergen Gross
On 15/12/15 08:59, Juergen Gross wrote: > On 15/12/15 08:24, osstest service owner wrote: >> branch xen-unstable >> xenbranch xen-unstable >> job test-amd64-i386-rumpuserxen-i386 >> testid guest-start >> >> Tree: linux >> git://git.kernel.org/pub

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-15 Thread Juergen Gross
On 15/12/15 13:26, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >> After starting the xenstore domain write the basic data (domid and >> name) to the xenstore. >> >> Add a new option to init-xenstore-domain to be able to specify the &g

Re: [Xen-devel] [PATCH 6/9] xenstore: don't start xenstore domain if already one is active

2015-12-15 Thread Juergen Gross
On 15/12/15 13:23, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >> Don't start a new xenstore domain in case one is already detected to >> be running. >> >> Signed-off-by: Juergen Gross >> --- >>

Re: [Xen-devel] [PATCH 6/9] xenstore: don't start xenstore domain if already one is active

2015-12-15 Thread Juergen Gross
On 15/12/15 13:32, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:28 +0100, Juergen Gross wrote: >> On 15/12/15 13:23, Ian Campbell wrote: >>> On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >>>> Don't start a new xenstore domain in case one is

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Juergen Gross
On 15/12/15 13:52, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:47 +0100, Juergen Gross wrote: >> On 15/12/15 13:31, Ian Campbell wrote: >>> On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >>>> Xenstore messages for diagnostic purposes are lost today in

Re: [Xen-devel] [PATCH v2 2/4] libxc: support of linear p2m list for migration of pv-domains

2015-12-15 Thread Juergen Gross
On 15/12/15 12:52, Andrew Cooper wrote: > On 15/12/15 06:33, Juergen Gross wrote: >> In order to be able to migrate pv-domains with more than 512 GB of RAM >> the p2m information can be specified by the guest kernel via a virtual >> mapped linear p2m list instead of a 3

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Juergen Gross
On 15/12/15 15:06, Andrew Cooper wrote: > On 15/12/15 12:55, Juergen Gross wrote: >> On 15/12/15 13:52, Ian Campbell wrote: >>> On Tue, 2015-12-15 at 13:47 +0100, Juergen Gross wrote: >>>> On 15/12/15 13:31, Ian Campbell wrote: >>>>> On Fri, 2

Re: [Xen-devel] [PATCH v2 2/4] libxc: support of linear p2m list for migration of pv-domains

2015-12-15 Thread Juergen Gross
On 15/12/15 14:56, Andrew Cooper wrote: > On 15/12/15 12:14, Juergen Gross wrote: >> On 15/12/15 12:52, Andrew Cooper wrote: >>> On 15/12/15 06:33, Juergen Gross wrote: >>>> In order to be able to migrate pv-domains with more than 512 GB of RAM >>>> t

Re: [Xen-devel] [PATCH 3/9] xenstore: install init-xenstore-domain via make install

2015-12-15 Thread Juergen Gross
On 15/12/15 13:16, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >> The program init-xenstore-domain to start a xenstore domain instead >> of the xenstored daemon is built, but not installed. Change that. >> >> Signed-off-by: Juerge

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-15 Thread Juergen Gross
On 15/12/15 13:49, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:34 +0100, Juergen Gross wrote: >> On 15/12/15 13:26, Ian Campbell wrote: >>> On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >>>> After starting the xenstore domain write the basic data (domid

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Juergen Gross
On 15/12/15 13:31, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >> Xenstore messages for diagnostic purposes are lost today in case >> xenstore is running under mini-os instead in a dom0 daemon. > > Where does vfprintf end up under mini-os?

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-15 Thread Juergen Gross
On 15/12/15 14:19, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:53 +0100, Juergen Gross wrote: >> >>> mem-set too perhaps? >> >> Without mini-os supporting ballooning or memory hotplug up to now: >> I don't think so. :-) > > Sure, but you'

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Juergen Gross
On 15/12/15 16:01, Andrew Cooper wrote: > On 15/12/15 14:57, Juergen Gross wrote: >> On 15/12/15 15:06, Andrew Cooper wrote: >>> On 15/12/15 12:55, Juergen Gross wrote: >>>> On 15/12/15 13:52, Ian Campbell wrote: >>>>> On Tue, 2015-12-15 at 13:47 +010

Re: [Xen-devel] [PATCH 6/9] xenstore: don't start xenstore domain if already one is active

2015-12-15 Thread Juergen Gross
On 15/12/15 13:47, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:40 +0100, Juergen Gross wrote: >> On 15/12/15 13:32, Ian Campbell wrote: >>> On Tue, 2015-12-15 at 13:28 +0100, Juergen Gross wrote: >>>> On 15/12/15 13:23, Ian Campbell wrote: >>>>> On

Re: [Xen-devel] [PATCH 3/9] xenstore: install init-xenstore-domain via make install

2015-12-15 Thread Juergen Gross
On 15/12/15 22:41, Daniel De Graaf wrote: > On 15/12/15 07:16, Ian Campbell wrote: >> On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >>> The program init-xenstore-domain to start a xenstore domain instead >>> of the xenstored daemon is built, but not installed.

[Xen-devel] [PATCH v3 0/4] support linear p2m list in migrate stream v2

2015-12-16 Thread Juergen Gross
k_vm_state hook but do the check decision internally - Modified docs/features/migration.pandoc according to changes done in the series in patch 4 (requested by Andrew Cooper) Juergen Gross (4): libxc: split mapping p2m leaves into a separate function libxc: support of linear p2m list for migra

[Xen-devel] [PATCH v3 1/4] libxc: split mapping p2m leaves into a separate function

2015-12-16 Thread Juergen Gross
In order to prepare using the virtual mapped linear p2m list for migration split mapping of the p2m leaf pages into a separate function. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- tools/libxc/xc_sr_save_x86_pv.c | 77 - 1 file changed

[Xen-devel] [PATCH v3 2/4] libxc: support of linear p2m list for migration of pv-domains

2015-12-16 Thread Juergen Gross
defines for the xen regions use those defines when doing page table checks as well. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- tools/libxc/xc_sr_common_x86_pv.h | 7 ++ tools/libxc/xc_sr_save_x86_pv.c | 194 +++--- 2 files changed, 188

[Xen-devel] [PATCH v3 3/4] libxc: stop migration in case of p2m list structural changes

2015-12-16 Thread Juergen Gross
event. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- tools/libxc/xc_sr_common.h | 12 +++ tools/libxc/xc_sr_save.c | 7 ++- tools/libxc/xc_sr_save_x86_hvm.c | 7 +++ tools/libxc/xc_sr_save_x86_pv.c | 45 4 files

[Xen-devel] [PATCH v3 4/4] libxc: set flag for support of linear p2m list in domain builder

2015-12-16 Thread Juergen Gross
limit themselves to 512 GB memory size in order not to break migration. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- docs/features/migration.pandoc| 7 --- tools/libxc/xc_dom_compat_linux.c | 2 +- tools/libxc/xc_dom_core.c | 2 ++ 3 files changed, 7 insertions(+), 4

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-17 Thread Juergen Gross
On 15/12/15 14:30, Juergen Gross wrote: > On 15/12/15 14:19, Ian Campbell wrote: >> On Tue, 2015-12-15 at 13:53 +0100, Juergen Gross wrote: >>> >>>> mem-set too perhaps? >>> >>> Without mini-os supporting ballooning or memory hotplug up to now: >

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-17 Thread Juergen Gross
On 17/12/15 11:01, Ian Campbell wrote: > On Thu, 2015-12-17 at 09:26 +0100, Juergen Gross wrote: >> On 15/12/15 14:30, Juergen Gross wrote: >>> On 15/12/15 14:19, Ian Campbell wrote: >>>> On Tue, 2015-12-15 at 13:53 +0100, Juergen Gross wrote: >

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-17 Thread Juergen Gross
On 15/12/15 16:44, Juergen Gross wrote: > On 15/12/15 16:01, Andrew Cooper wrote: >> On 15/12/15 14:57, Juergen Gross wrote: >>> On 15/12/15 15:06, Andrew Cooper wrote: >>>> On 15/12/15 12:55, Juergen Gross wrote: >>>>> On 15/12/15 13:52, Ian Campb

Re: [Xen-devel] [PATCH 0/4] Allow schedulers to be selectable through Kconfig

2015-12-18 Thread Juergen Gross
On 18/12/15 11:45, Ian Campbell wrote: > On Thu, 2015-12-17 at 14:59 -0600, Jonathan Creekmore wrote: >> Add machinery to allow the schedulers to be individually selectable >> through the Kconfig interface. > > So I don't want to pick on this series or schedulers specifically here, but > instead d

Re: [Xen-devel] [PATCH 0/4] Allow schedulers to be selectable through Kconfig

2015-12-18 Thread Juergen Gross
On 18/12/15 12:30, Jan Beulich wrote: On 18.12.15 at 12:08, wrote: >> What I'd really like to see in the config options are things like: >> >> CONFIG_BIGMEM (instead of doing it via environment variable), >> NR_CPUS, and possibly some other numerical bounds which won't select >> a feature, bu

[Xen-devel] [PATCH v2 13/13] tools: don't stop xenstore domain when stopping dom0

2015-12-18 Thread Juergen Gross
When restarting or shutting down dom0 the xendomains script tries to stop all other domains. Don't do this for the xenstore domain, as it might survive a dom0 reboot in the future. The same applies to xl shutdown --all. Signed-off-by: Juergen Gross --- tools/hotplug/Linux/xendomains.in

[Xen-devel] [PATCH v2 07/13] xenstore: add error messages to init-xenstore-domain

2015-12-18 Thread Juergen Gross
Additional add some diagnostic messages to the program to have an idea why it failed. Signed-off-by: Juergen Gross Acked-by: Ian Campbell Acked-by: Daniel De Graaf --- tools/helpers/init-xenstore-domain.c | 104 --- 1 file changed, 83 insertions(+), 21

[Xen-devel] [PATCH v2 03/13] libxl: provide a function to retrieve the xenstore domain id

2015-12-18 Thread Juergen Gross
Add libxl_xenstore_domid() to obtain the domain id of the xenstore domain. Signed-off-by: Juergen Gross --- tools/libxl/libxl.c | 24 tools/libxl/libxl.h | 11 +++ 2 files changed, 35 insertions(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index

[Xen-devel] [PATCH v2 02/13] libxc: support new xenstore domain flag in libxc

2015-12-18 Thread Juergen Gross
Support the xenstore domain flag for obtaining domain info. Signed-off-by: Juergen Gross --- tools/libxc/include/xenctrl.h | 2 +- tools/libxc/xc_domain.c | 17 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc

[Xen-devel] [PATCH v2 10/13] xenstore: add init-xenstore-domain parameter to specify cmdline

2015-12-18 Thread Juergen Gross
Add a parameter to init-xenstore-domain for support of arbitrary parameters for the xenstore domain. Signed-off-by: Juergen Gross Acked-by: Ian Campbell Acked-by: Daniel De Graaf --- tools/helpers/init-xenstore-domain.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions

[Xen-devel] [PATCH v2 04/13] xenstore: move init-xenstore-domain to tools/helpers

2015-12-18 Thread Juergen Gross
ing modify the coding style to the standard style used in the tools directory. Signed-off-by: Juergen Gross --- tools/Makefile| 1 + tools/helpers/Makefile| 34 + tools/helpers/init-xenstore-domain.c | 128 ++ tool

[Xen-devel] [PATCH v2 11/13] tools: split up xen-init-dom0.c

2015-12-18 Thread Juergen Gross
Split up tools/helpers/xen-init-dom0.c in order to prepare reusing generation of the json configuration by init-xenstore-domain.c. Signed-off-by: Juergen Gross --- tools/helpers/Makefile| 2 +- tools/helpers/init-dom-json.c | 59 ++ tools/helpers/init

[Xen-devel] [PATCH v2 05/13] libxl: move xen-init-dom0 to tools/helpers

2015-12-18 Thread Juergen Gross
Move xen-init-dom0 from tools/libxl to tools/helpers, as it is just a helper program. Signed-off-by: Juergen Gross --- tools/helpers/Makefile | 10 ++ tools/{libxl => helpers}/xen-init-dom0.c | 0 tools/libxl/Makefile | 14 +++--- 3 fi

[Xen-devel] [PATCH v2 00/13] xenstore: make it easier to run xenstore in a domain

2015-12-18 Thread Juergen Gross
d more xenstore entries, add error messages as requested by Ian Campbell - drop former patch 9 - add new patch 13 to avoid stopping xenstore domain on dom0 shutdown Juergen Gross (13): xen: add xenstore domain flag to hypervisor libxc: support new xenstore domain flag in libxc libxl: provid

[Xen-devel] [PATCH v2 08/13] xenstore: modify init-xenstore-domain parameter syntax

2015-12-18 Thread Juergen Gross
--memory [--flask ] [--ramdisk ] The flask label is made optional in order to support xenstore domains without the need of a flask enabled hypervisor. Signed-off-by: Juergen Gross --- tools/helpers/init-xenstore-domain.c | 82

[Xen-devel] [PATCH v2 06/13] xenstore: destroy xenstore domain in case of error after creating it

2015-12-18 Thread Juergen Gross
When creating a xenstore domain via init-xenstore-domain destroy it in case of an error occurred after calling xc_domain_create(). Signed-off-by: Juergen Gross Acked-by: Daniel De Graaf --- tools/helpers/init-xenstore-domain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[Xen-devel] [PATCH v2 09/13] xenstore: make use of the "xenstore domain" flag

2015-12-18 Thread Juergen Gross
Create the xenstore domain with the xs_domain flag specified. This enables us to test whether such a domain is already running before we create it. As there ought to be only one xenstore in the system we don't need to start another one. Signed-off-by: Juergen Gross --- tools/helpers

[Xen-devel] [PATCH v2 12/13] xenstore: write xenstore domain data to xenstore

2015-12-18 Thread Juergen Gross
x27;s name. Signed-off-by: Juergen Gross --- tools/helpers/Makefile | 5 ++-- tools/helpers/init-xenstore-domain.c | 44 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/tools/helpers/Makefile b/tools/helpers/Makefile index cf

[Xen-devel] [PATCH v2 01/13] xen: add xenstore domain flag to hypervisor

2015-12-18 Thread Juergen Gross
xenstore domain already being present to connect to. Cc: Jan Beulich Cc: Keir Fraser Cc: Tim Deegan Cc: Andrew Cooper Cc: David Vrabel Signed-off-by: Juergen Gross Acked-by: Daniel De Graaf --- xen/common/domain.c | 6 ++ xen/common/domctl.c | 14 +- xen

Re: [Xen-devel] [PATCH v2 03/13] libxl: provide a function to retrieve the xenstore domain id

2015-12-18 Thread Juergen Gross
On 18/12/15 14:53, Andrew Cooper wrote: > On 18/12/15 13:14, Juergen Gross wrote: >> Add libxl_xenstore_domid() to obtain the domain id of the xenstore >> domain. >> >> Signed-off-by: Juergen Gross > > What are the expected semantics here? Would you ex

[Xen-devel] [PATCH] libxl: remove the xl list limit of 1024 domains

2015-12-18 Thread Juergen Gross
xl list is currently limited to 1024 domains. Remove the limit. Signed-off-by: Juergen Gross --- tools/libxl/libxl.c | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 9207621..83e37a9

Re: [Xen-devel] [PATCH v2 13/13] tools: don't stop xenstore domain when stopping dom0

2015-12-18 Thread Juergen Gross
On 18/12/15 15:42, Andrew Cooper wrote: > On 18/12/15 13:14, Juergen Gross wrote: >> When restarting or shutting down dom0 the xendomains script tries to >> stop all other domains. Don't do this for the xenstore domain, as it >> might survive a dom0 reboot in the future.

Re: [Xen-devel] [PATCH v8 00/28] Kconfig conversion

2015-12-18 Thread Juergen Gross
On 18/12/15 15:20, Doug Goldstein wrote: > On 12/18/15 4:30 AM, Ian Campbell wrote: >> On Tue, 2015-12-15 at 07:12 -0600, Doug Goldstein wrote: >>> The following series is a follow on to the Kconfig conversion >>> patch series. >> >> It occurred to me this morning that we probably ought to stash >

Re: [Xen-devel] [PATCH] libxl: remove the xl list limit of 1024 domains

2015-12-18 Thread Juergen Gross
On 18/12/15 15:47, Andrew Cooper wrote: > On 18/12/15 14:34, Juergen Gross wrote: >> xl list is currently limited to 1024 domains. Remove the limit. >> >> Signed-off-by: Juergen Gross > > libxl_list_vm() needs similar treatment. In fact, it looks as if it > sho

Re: [Xen-devel] [PATCH] libxl: remove the xl list limit of 1024 domains

2016-01-04 Thread Juergen Gross
On 18/12/15 15:34, Juergen Gross wrote: > xl list is currently limited to 1024 domains. Remove the limit. > > Signed-off-by: Juergen Gross Found a bug, will send V2 soon (together with two other patches addressing a similar limitation in xl vm-list and tools/xenstat. Juergen >

[Xen-devel] [PATCH v2 3/3] xenstat: handle more than 1024 domains

2016-01-04 Thread Juergen Gross
get_domain_ids() in libxenstat used by read_attributes_qdisk() is limited to 1024 domains. Remove that limit. Signed-off-by: Juergen Gross --- tools/xenstat/libxenstat/src/xenstat_qmp.c | 67 +- 1 file changed, 29 insertions(+), 38 deletions(-) diff --git a/tools

[Xen-devel] [PATCH v2 2/3] libxl: base libxl_list_vm() on libxl_list_domain()

2016-01-04 Thread Juergen Gross
libxl_list_vm() is calling xc_domain_getinfolist() today with a limit of 1024 domains. To avoid open coding a loop around xc_domain_getinfolist() to avoid the 1024 domain limit just use libxl_list_domain() instead. Suggested-by: Andrew Cooper Signed-off-by: Juergen Gross --- tools/libxl

[Xen-devel] [PATCH v2 0/3] tools: remove 1024 domain limit at some places

2016-01-04 Thread Juergen Gross
There are some places in Xen tools which will work for only up to 1024 domains. Remove this limit. Changes in V2: - corrected a little error in patch 1 at end of loop (index -1 used in array) - added patches 2 and 3 Juergen Gross (3): libxl: remove the xl list limit of 1024 domains libxl

[Xen-devel] [PATCH v2 1/3] libxl: remove the xl list limit of 1024 domains

2016-01-04 Thread Juergen Gross
xl list is currently limited to 1024 domains. Remove the limit. Signed-off-by: Juergen Gross --- tools/libxl/libxl.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 9207621..86b08d9 100644 --- a

Re: [Xen-devel] [PATCH 0/6] grub-xen: support booting huge pv-domains

2016-01-05 Thread Juergen Gross
On 02/11/15 06:51, Juergen Gross wrote: > The Xen hypervisor supports starting a dom0 with large memory (up to > the TB range) by not including the initrd and p2m list in the initial > kernel mapping. Especially the p2m list can grow larger than the > available virtual space in the ini

Re: [Xen-devel] [PATCH v2 01/13] xen: add xenstore domain flag to hypervisor

2016-01-05 Thread Juergen Gross
On 05/01/16 16:46, Ian Campbell wrote: > On Fri, 2015-12-18 at 14:14 +0100, Juergen Gross wrote: >> diff --git a/xen/include/xsm/xsm.h b/xen/include/xsm/xsm.h >> index 3fc3824..6304eb9 100644 >> --- a/xen/include/xsm/xsm.h >> +++ b/xen/include/xsm/xsm.h >> @

Re: [Xen-devel] [PATCH v2 03/13] libxl: provide a function to retrieve the xenstore domain id

2016-01-06 Thread Juergen Gross
On 06/01/16 16:59, Ian Campbell wrote: > On Fri, 2015-12-18 at 15:10 +0100, Juergen Gross wrote: >> On 18/12/15 14:53, Andrew Cooper wrote: >>> On 18/12/15 13:14, Juergen Gross wrote: >>>> Add libxl_xenstore_domid() to obtain the domain id of the xenstore >&g

Re: [Xen-devel] [PATCH v2 02/13] libxc: support new xenstore domain flag in libxc

2016-01-06 Thread Juergen Gross
On 06/01/16 16:52, Ian Campbell wrote: > On Fri, 2015-12-18 at 14:14 +0100, Juergen Gross wrote: >> Support the xenstore domain flag for obtaining domain info. >> >> Signed-off-by: Juergen Gross >> --- >> tools/libxc/include/xenctrl.h | 2 +- >&

Re: [Xen-devel] [PATCH v2 04/13] xenstore: move init-xenstore-domain to tools/helpers

2016-01-06 Thread Juergen Gross
On 06/01/16 17:03, Ian Campbell wrote: > On Fri, 2015-12-18 at 14:14 +0100, Juergen Gross wrote: >> The program init-xenstore-domain to start a xenstore domain instead >> of the xenstored daemon is built, but not installed. Change that. >> >> Move the program to a new

Re: [Xen-devel] [PATCH v3 2/4] libxc: support of linear p2m list for migration of pv-domains

2016-01-07 Thread Juergen Gross
On 07/01/16 11:33, Wei Liu wrote: > On Thu, Jan 07, 2016 at 11:21:04AM +0100, Juergen Gross wrote: >> On 06/01/16 16:40, Wei Liu wrote: >>> On Wed, Dec 16, 2015 at 10:24:18AM +0100, Juergen Gross wrote: >>> [...] >>>> @@ -698,21 +868,19 @@ static int n

Re: [Xen-devel] [PATCH v2 03/13] libxl: provide a function to retrieve the xenstore domain id

2016-01-07 Thread Juergen Gross
On 07/01/16 11:55, Ian Campbell wrote: > On Thu, 2016-01-07 at 11:44 +0100, Juergen Gross wrote: >>>> IMO the generic concept you are asking for should be added in a >>>> separate patch handling stopping (and possibly rebooting) driver >>>> domains in a clea

[Xen-devel] [PATCH v4 4/4] libxc: set flag for support of linear p2m list in domain builder

2016-01-07 Thread Juergen Gross
limit themselves to 512 GB memory size in order not to break migration. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper Acked-by: Wei Liu Acked-by: Ian Campbell --- docs/features/migration.pandoc| 7 --- tools/libxc/xc_dom_compat_linux.c | 2 +- tools/libxc/xc_dom_core.c

Re: [Xen-devel] [PATCH] tools/libxc: Initialise parameters in map_p2m_list() for error paths

2016-01-07 Thread Juergen Gross
On 07/01/16 16:06, Ian Campbell wrote: > On Thu, 2016-01-07 at 14:55 +, Andrew Cooper wrote: >> c/s 7bf7458 "libxc: support of linear p2m list for migration of >> pv-domains" breaks compilation on CentOS 7 because of 'ptes' being >> possibly uninitialised after the 'err:' label. >> >> The migra

Re: [Xen-devel] [PATCH v4.2] libxc: Defer initialization of start_page for HVM guests

2016-01-07 Thread Juergen Gross
On 07/01/16 23:19, Boris Ostrovsky wrote: > With commit 8c45adec18e0 ("libxc: create unmapped initrd in domain > builder if supported") location of ramdisk may not be available to > HVMlite guests by the time alloc_magic_pages_hvm() is invoked if the > guest supports unmapped initrd. > > So let's

[Xen-devel] [PATCH v3 10/15] xenstore: make use of the "xenstore domain" flag

2016-01-08 Thread Juergen Gross
Create the xenstore domain with the xenstore flag specified. This enables us to test whether such a domain is already running before we create it. As there ought to be only one xenstore in the system we don't need to start another one. Signed-off-by: Juergen Gross --- V3: omit dom0 when che

<    2   3   4   5   6   7   8   9   10   11   >